body {
    font-family: "Segoe UI", sans-serif;
    margin: 0;
    padding: 0;
}

.invalid-input {
    border: 1px solid red !important;
    background-color: #fff0f0;
}

.stepsTeacher {
    padding: 10% 20px 50px;
    background-color: #fff;
}

.stepsTeacher .container {
    max-width: 800px;
    margin: auto;
    display: flex;
    flex-direction: column;
}

.steps-wrapper {
    width: 100%;
    margin: 20px 0 0 0;
    padding: 0 10px;
}

.steps-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 100%;
}

.step-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100px;
    text-align: center;
    font-size: 13px;
    color: #888;
    transition: all 0.3s ease;
    cursor: pointer;
}

.step-circle i {
    background-color: #e8e8e8;
    color: #888;
    border-radius: 50%;
    padding: 12px;
    font-size: 16px;
    margin-bottom: 5px;
    transition: 0.3s;
}

.step-circle.active i {
    background: linear-gradient(90deg, #fcff0d, #bba400);
    color: white;
    box-shadow: 0 0 10px rgba(255, 79, 161, 0.3);
}

.step-circle span {
    margin-top: 4px;
    font-weight: 500;
}

.steps-line::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #ddd;
    z-index: 0;
}

.step-circle::after {
    content: "";
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    height: 2px;
    width: 100%;
    background-color: transparent;
    z-index: -1;
}

.section-title {
    font-size: 50px;
    font-weight: bold;
    text-align: center;
    color: #333;
    margin-bottom: 20px; /* تعديل المسافة أسفل العنوان */
}

.section-desc {
    text-align: center;
    color: #5b5b5b;
    margin-bottom: 25px;
    font-size: 17px;
    padding: 0 50px;
    line-height: 1.6;
}

#teacherForm {
    background-color: #fff;
    border-radius: 14px;
    padding: 0 30px 30px 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 5%;
}

.teacher-step {
    display: none;
}

.teacher-step.active {
    display: block;
}

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 3%;
}

.input-group label {
    font-size: 17px;
    margin-bottom: 8px;
    color: #444;
    font-weight: 700;
}

.input-group input,
.input-group select,
.input-group textarea {
    padding: 15px 16px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 15px;
    background-color: #fafafa;
    transition: 0.3s ease;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #fff34f;
    background-color: #fff;
}

.input-group .addLanguage {
    margin-top: 10px;
    align-self: flex-start;
    color: #007bff;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.3s;
}
.input-group .addLanguage:hover {
    color: #0056b3;
    text-decoration: underline;
}

.phone-wrapper {
    display: flex;
    gap: 10px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
}

.submit-btn,
.back-btn {
    background: linear-gradient(45deg, #f7da00, #ffed67, #f7da00);
    color: #333;
    border: none;
    font-size: 18px;
    padding: 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 79, 161, 0.25);
}

.submit-btn:hover {
    background: linear-gradient(45deg, #d8bf00, #f3e15c, #c4ad02);
    transform: translateY(-1px);
}

#language-section {
    display: grid;
    gap: 12px;
}

.language-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.language-row input,
.language-row select {
    flex: 1 1 45%;
}

.photo-guidelines ul {
    list-style-type: none;
    padding: 0;
}

.photo-guidelines ul li {
    display: flex;
    align-items: center;
    font-size: 18px;
    margin-bottom: 10px;
}

.photo-guidelines ul li i {
    font-size: 20px;
    margin-right: 10px;
    color: #4caf50; /* اللون الأخضر */
    transition: color 0.3s ease;
}

.photo-guidelines ul li:hover i {
    color: #ffb300; /* تغيير اللون عند المرور بالماوس */
}

.photo-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    border: 2px dashed #ddd;
    width: 100%;
    max-width: 300px;
    margin: auto;
}

.photo-examples {
    display: flex;
    justify-content: center;
}

.upload-instruction {
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.upload-icon {
    background-color: #ffcd05;
    padding: 16px;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    margin-bottom: 15px;
    transition: background-color 0.3s ease;
}

.upload-text {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

input[type="file"] {
    display: none;
}

.upload-label:hover .upload-icon {
    background-color: #f7b700;
}

.upload-label:hover .upload-text {
    color: #ff9c00;
}

.upload-label:active .upload-icon {
    transform: scale(0.95);
}

.buttons-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 2%;
}

.back-btn {
    background: #ffffff;
    border: 1px solid;
    width: 13%;
    margin-right: 2%;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 70%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
}

.password-group {
    position: relative;
}

.upload-certificate {
    background: #f3f3f3;
    padding: 5px 18px;
    border-radius: 11px;
    font-size: 17px;
}

.uploadCer {
    width: 21%;
    font-size: 18px;
    padding: 8px;
    border-radius: 10px;
}

.video-step-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.video-area {
    flex: 2;
    min-width: 320px;
}

.info-list {
    flex: 1;
    min-width: 280px;
    display: flex;
    gap: 1.5rem;
    margin-top: 4%;
}

.video-wrapper {
    margin: 4% 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #f3f3f3;
    position: relative;
    width: 100%;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 0 10px #ccc;
}

.video-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1%;
}

.info-card {
    background: #fff;
    border-left: 6px solid #4caf50;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.info-card.dont {
    border-left-color: #f44336;
}

.info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
}

.info-card h3 .fa {
    font-size: 1.2rem;
}

.info-card ul {
    padding: 0;
    list-style: none;
}

.info-card li {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #555;
}

.info-card li .fa {
    font-size: 0.9rem;
    margin-top: 0.2rem;
    color: #4caf50;
}

.info-card.dont li .fa {
    color: #f44336;
}

.upload-option {
    margin: 5% 0;
    background: #f9f9f9;
    padding: 26px;
    border: 1px dashed #ccc;
    border-radius: 8px;
}

.upload-option input[type="url"] {
    width: 100%;
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-top: 0.5rem;
}

#startRecordBtn {
    background: linear-gradient(45deg, #6bf700, #a1ff67, #1bf700);
}

#retryRecordBtn {
    background: linear-gradient(45deg, #f73800, #ff6767, #f70000);
    color: #fff;
}

/* availability section styles */
.availability-container {
    display: flex;
    gap: 2rem;
}

.day-selector {
    flex: 0 0 180px;
    background: #f9f9f9;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #eee;
}

.day-selector ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.day-selector li {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 0.5rem;
    background: #f1f1f1;
    transition: background 0.3s;
}

.day-selector li:hover,
.day-selector li.active {
    background: #ffeb3b;
    font-weight: bold;
}

.slots-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.slots-group {
    background: #fefefe;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.slots-group.morning {
    border-left: 4px solid #4caf50;
}

.slots-group.evening {
    border-left: 4px solid #2196f3;
}

.times-title {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
}

.slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
}

.slot-button {
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
    background: #fff;
}

.slot-button.selected {
    background: #ffeb3b;
    font-weight: bold;
    border-color: #fbc02d;
}

.section-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.price-input-wrapper label {
    font-weight: 600;
    color: #444;
    margin-bottom: 0.5rem;
    display: block;
}

.price-input {
    position: relative;
    display: flex;
    align-items: center;
}

.price-input input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

.dollar-icon {
    position: absolute;
    right: 1rem;
    font-size: 1.2rem;
    color: #888;
}

.commission-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
    padding: 1rem;
    background: #fffa21;
    border: 1px solid #ffeeba;
    border-radius: 10px;
    font-weight: bold;
    transition: background 0.3s;
}

.commission-toggle:hover {
    background: #fff0b3;
}

.arrow-icon {
    font-size: 1.2rem;
    color: #333;
}

.commission-info {
    display: none;
    margin-top: 1rem;
    background: #fdfdfd;
    padding: 1.25rem;
    border: 1px solid #eee;
    border-radius: 10px;
    animation: fadeIn 0.5s ease;
}

.commission-table {
    width: 100%;
    margin-top: 1rem;
    border-collapse: collapse;
}

.commission-table th,
.commission-table td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: center;
}

.commission-table th {
    background: #f0f0f0;
}

.upload-section {
    margin: 20px 0;
    text-align: center;
    width: 100%;
}

.custom-file-upload {
    display: inline-block;
    padding: 15px 25px;
    background: #f6f955;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.custom-file-upload:hover {
    background: #e0a800;
}

input[type="file"] {
    display: none;
}

.dropdown-checkbox {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.dropdown-checkbox button {
    width: 185%;
    padding: 15px 16px;
    font-size: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-align: left;
    cursor: pointer;
}

.dropdown-checkbox .dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    width: 185%;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 10;
    display: none;
    padding: 10px;
}

.dropdown-checkbox.open .dropdown-content {
    display: block;
}

.grades-group {
    margin-bottom: 15px;
}

.grades-group h5 {
    margin-bottom: 5px;
    font-weight: bold;
    color: #000;
    font-size: 15px;
}

.grade-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.grade-options label {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.grade-options input[type="checkbox"] {
    margin-right: 5px;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

@media (max-width: 600px) {
    .section-title {
        font-size: 32px;
    }

    .section-desc {
        padding: 0 15px;
        font-size: 15px;
    }

    .step-circle {
        font-size: 11px;
    }

    .step-circle i {
        font-size: 14px;
        padding: 10px;
    }

    .submit-btn {
        font-size: 16px;
        padding: 12px;
    }
}

.error-message {
    color: red;
    font-size: 14px;
    margin-top: 5px;
}

.error-input {
    border-color: red !important;
}

@media (max-width: 768px) {
  .stepsTeacher {
    padding: 120px 15px 40px;
  }

  .steps-line {
    display: none;
  }

  .section-title {
    font-size: 26px;
  }

  .section-desc {
    padding: 0 10px;
    font-size: 14px;
  }

  .input-group input,
  .input-group select,
  .input-group textarea {
    font-size: 14px;
    padding: 12px;
  }

  .phone-wrapper {
    flex-direction: column;
  }

  .back-btn {
    width: 40%;
    margin-bottom: 10px;
  }

  .uploadCer {
    width: 100%;
  }

  .buttons-row {
    flex-direction: column;
    align-items: stretch;
  }

  .language-row {
    flex-direction: row;
  }

  .language-row input,
  .language-row select {
    width: 100%;
  }

    .photo-examples img{
        width: 65px;
        height: 65px;
    }
  .video-step-container {
    flex-direction: column;
  }

  .info-list {
    flex-direction: column;
  }

  .availability-container {
    flex-direction: column;
  }

  .day-selector {
    width: 100%;
  }

  .slots {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }

  .dropdown-checkbox button,
  .dropdown-checkbox .dropdown-content {
    width: 100% !important;
  }

  .commission-toggle {
    font-size: 14px;
    padding: 12px;
  }

  .custom-file-upload {
    width: 100%;
    font-size: 16px;
  }

  .price-input input {
    font-size: 16px;
  }

  .upload-option {
    padding: 15px;
  }

  .photo-box {
    max-width: 100%;
  }

  .step-circle span {
    font-size: 12px;
  }

  .upload-icon {
    padding: 12px;
    font-size: 22px;
  }

  .upload-text {
    font-size: 14px;
  }

  .submit-btn,
  .back-btn {
    font-size: 16px;
    padding: 12px;
    width: 100%;
  }

  .video-controls {
    flex-direction: column;
    gap: 10px;
  }

  .price-input-wrapper label {
    font-size: 14px;
  }
  
}

