* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}
.head {
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
}

.logo {
    max-width: 900px;
    margin: 0 auto;
    padding: 0px;
    width: 100%;
}

form {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}


h2 {
    color: #2c3e50;
    margin: 30px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    font-size: 1.5em;
}


#educationContainer,
#experienceContainer,
#trainingContainer,
#languageContainer {
    margin-bottom: 25px;
    border-left: 3px solid #3498db;
    padding-left: 15px;
}


label {
    display: block;
    margin: 15px 0 5px 0;
    font-weight: 600;
    color: #2c3e50;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="decimal"],
textarea,
select {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="decimal"]:focus,
textarea:focus,
select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1em;
}


input[type="radio"] {
    margin-right: 8px;
}

label > input[type="radio"] {
    margin-right: 5px;
}


button,
input[type="submit"] {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

button:hover,
input[type="submit"]:hover {
    background-color: #2980b9;
}


#addExperience,
#addEducation,
#addTraining,
#addLanguage {
    background-color: #27ae60;
    margin-bottom: 20px;
}

#addExperience:hover,
#addEducation:hover,
#addTraining:hover,
#addLanguage:hover {
    background-color: #219653;
}


.remove-experience,
.remove-education,
.remove-training,
.remove-language {
    background-color: #e74c3c;
    padding: 8px 15px;
    font-size: 14px;
    margin-top: 10px;
}

.remove-experience:hover,
.remove-education:hover,
.remove-training:hover,
.remove-language:hover {
    background-color: #c0392b;
}

.education-entry,
.experience-entry,
.training-entry,
.language-entry {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.education-entry:hover,
.experience-entry:hover,
.training-entry:hover,
.language-entry:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}


#charCounter {
    font-size: 0.85em;
    color: #7f8c8d;
    text-align: right;
    margin-top: -10px;
    margin-bottom: 15px;
}

.warning {
    color: #f39c12;
}

.limit-reached {
    color: #e74c3c;
}


br {
    margin-bottom: 10px;
}


@media (max-width: 768px) {
    form {
        padding: 20px;
    }
    
    h2 {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    form {
        padding: 15px;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="date"],
    input[type="decimal"],
    textarea,
    select {
        padding: 10px;
    }
    
    button,
    input[type="submit"] {
        padding: 10px 15px;
        width: 100%;
    }
}


h2 {
    position: relative;
    padding-left: 15px;
}

h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background-color: #3498db;
    border-radius: 3px;
}


input:required,
select:required,
textarea:required {
    border-left: 3px solid #e74c3c;
}

input:required:valid,
select:required:valid,
textarea:required:valid {
    border-left: 3px solid #27ae60;
}


::placeholder {
    color: #95a5a6;
    opacity: 1;
}

:-ms-input-placeholder {
    color: #95a5a6;
}

::-ms-input-placeholder {
    color: #95a5a6;
}


.form-sections {
    position: relative;
    min-height: 500px;
  }
  
  .form-section {
    display: none;
    animation: fadeIn 0.5s ease;
  }
  
  .form-section.active {
    display: block;
  }
  

  .form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
  }
  
  .prev-btn, .next-btn {
    padding: 12px 25px;
  }
  
  .prev-btn {
    background-color: #95a5a6;
  }
  
  .prev-btn:hover {
    background-color: #7f8c8d;
  }
  

  .progress-container {
    margin-bottom: 30px;
  }
  
  .progress-bar {
    height: 5px;
    background-color: #ecf0f1;
    border-radius: 5px;
    overflow: hidden;
  }
  
  .progress {
    height: 100%;
    background-color: #3498db;
    transition: width 0.3s ease;
  }
  
  .progress-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
  }
  
  .progress-step {
    text-align: center;
    font-size: 12px;
    color: #95a5a6;
    position: relative;
    flex: 1;
  }
  
  .progress-step.active {
    color: #3498db;
    font-weight: bold;
  }
  
  .progress-step::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background-color: #ecf0f1;
    border-radius: 50%;
  }
  
  .progress-step.active::before {
    background-color: #3498db;
  }
  

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
.error-message {
    color: #ff0000;
    font-size: 0.8em;
    margin-top: 5px;
    display: block;
  }
  
  input:invalid {
    border-color: #ff0000;
  }