/* Frontend styles for Tutor Request Form v1.2 */
.trf-open-btn{
  padding:10px 16px;
  background:#0b8f86;
  color:#fff;
  border:none;
  border-radius:6px;
  cursor:pointer;
  font-weight:600;
}
.trf-popup{
  position:fixed;
  top:0; left:0; right:0; bottom:0;
  background:rgba(0,0,0,0.5);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
  padding:20px;
  box-sizing:border-box;
}
.trf-popup-inner{
  background:#fff;
  width:100%;
  max-width:980px;
  max-height:92vh;
  overflow:auto;
  border-radius:8px;
  padding:32px;
  box-sizing:border-box;
  position:relative;
  padding-top: 50px;
}
input[type=checkbox]:checked {
  accent-color: #17a4a5;
}
.progress-bar{
  width:100%;
  background:#e9ecec;
  height:10px;
  border-radius:10px;
  overflow:hidden;
  margin-bottom:18px;
}
.progress-fill{
  width:0%;
  height:100%;
  background:linear-gradient(90deg,#3ea69a,#6bd0c4);
  transition: width 600ms cubic-bezier(.2,.9,.2,1);
}

/* Grades layout */
.grades-row{ display:flex; gap:16px; align-items:flex-start; flex-wrap:wrap; }
.grade-group{ min-width:180px; }
.grade-items{ display:flex; gap:12px; margin-top:8px; flex-wrap:wrap; }
.grade-box{ display:inline-block; border:1px solid #e0e0e0; border-radius:6px; padding:12px 14px; cursor:pointer; background:#fff; }
.grade-box input{ display:none; }
.grade-box span{ color:#333; }
.grade-box input:checked + span, .grade-box input:checked + span + * { background:transparent; }
.grade-box input:checked + span{ background:#0b8f86; color:#fff; padding:6px 8px; border-radius:4px; }

.subjects, .exam-prep, .other-subjects{ margin-top:12px; display:block; }
.subject-box{ display:inline-block; border:1px solid #e6e6e6; padding:10px 14px; border-radius:6px; margin:6px; cursor:pointer; background:#fff; }
.subject-box input{ display:none; }
.subject-box input:checked + * { background:#0b8f86; color:#fff; }

/* Senior group styling */
.senior-group{ margin-bottom:14px; }
.senior-group h4{ margin:8px 0; font-weight:700; }

.trf-form input[type=text], .trf-form input[type=email], .trf-form select, .trf-form textarea{
  width:100%; padding:10px; margin:8px 0 12px; box-sizing:border-box; border:1px solid #e6e6e6; border-radius:6px;
}
.nav-buttons{ margin-top:20px; display:flex; gap:12px; justify-content:space-between; }
.nav-buttons button{ padding:10px 18px; border-radius:8px; border:none; cursor:pointer; font-weight:700; }
.next-btn{ background:#9fe0da; color:#fff; }
.prev-btn{ background:#8b9096; color:#fff; }

@media (max-width:700px){
  .grades-row{ flex-direction:column; }
  .grade-items{ gap:8px; }
  .nav-buttons{ flex-direction:column-reverse; }
}

#tutorForm input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Style the label as a button */
#tutorForm label {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

/* Hover effect */
#tutorForm label:hover {
  background-color: #f5f5f5;
}
.step-5 .form-field label{
  padding: 0 !important;
  border: 0 !important;
}
/* Active (checked) state */
#tutorForm input[type="radio"]:checked + span,
#tutorForm input[type="radio"]:checked {
  background-color: #17a4a5;
  color: #fff;
  border-color: #17a4a5;
}

/* Trick to style label when its inner input is checked */
#tutorForm label:has(input[type="radio"]:checked) {
  background-color: #17a4a5;
  color: #fff;
  border-color: #17a4a5;
}


#tutorForm label.subject-box.active {
  background-color: #17a4a5;
  color: #fff;
  border-color: #17a4a5;
}
#tutorForm  .next-btn{
background-color: #17A4A5;
color: #fff;
}
#tutorForm  .prev-btn{
background-color: #9ca3af;
color: #fff;
}
.roles {
    display: flex;
    justify-content: center;
    gap: 16px;
}
.large-heading{
font-size:24px!important;
text-align: center;
}
.full-name {
    display: flex;
	gap:24px;
}
.fields{
width:100%;
}
.lessons {
    display: flex;
    gap: 16px;
}
.left-col {
    background-color: #f3f4f6;
}
.left-col h4, .right-col h4{
font-size:20px;
}
.left-col, .right-col {
    padding: 24px;
    border-radius: 8px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
}
.submit-btn{
background-color: #17A4A5 !important;
color: #fff !important;
}
span.summary-subjects {
    font-weight: 400;
}
.right-col p{
    margin-bottom: 12px;
}
.right-col p strong {
    color: #374151;
    display: inline-block;
}

/* Form Field Labels */
.form-field {
    margin-bottom: 16px;
}
.form-field label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
}
.form-field input,
.form-field textarea {
    width: 100% !important;
    margin: 0 !important;
}
.trf-top {
    position: relative;
    margin-bottom: 10px;
}
.trf-close-btn {
  position: absolute;
  top: -43px;
  right: -16px;
  background: transparent;
  border: none !important;
  line-height: 1;
  align-items: center;
  z-index: 10;
  padding: 0 !important;
  font-size: 40px !important;
  font-weight: 600 !important;
  color: #4b5563 !important;
  width: 33px !important;
  height: 47px !important;
}
.trf-close-btn:hover {
    color: #333;
    background-color: transparent !important;
}
.prev-btn:disabled {
    background-color: #d1d5db !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}
#tutorForm h4 {
  margin-bottom: 10px !important;
}

/* Schedule Table Styling */
.trf-schedule {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}
.trf-schedule th {
    background-color: #f9fafb;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    line-height: 1.4;
}
.trf-schedule td {
    padding: 10px;
    text-align: center;
    border: 1px solid #e5e7eb;
}
.trf-schedule td:first-child {
    text-align: left;
    font-weight: 500;
}
.trf-schedule .time-detail {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    display: block;
    margin-top: 3px;
}
.trf-schedule input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}
.trf-schedule input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
.trf-schedule td:has(input[type="checkbox"]:disabled) {
    background-color: #f9fafb;
}

/* Custom Duration and Frequency Fields */
#custom_duration_field label,
#custom_frequency_field label {
    margin-bottom: 8px;
    padding: 0;
    border: 0;
    background: transparent;
}

#custom_duration,
#custom_frequency {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    margin: 0 !important;
}

#custom_duration:focus,
#custom_frequency:focus {
    outline: none;
    border-color: #17a4a5;
    box-shadow: 0 0 0 3px rgba(23, 164, 165, 0.1);
}

/* Number input spinner styling */
#custom_duration::-webkit-inner-spin-button,
#custom_duration::-webkit-outer-spin-button,
#custom_frequency::-webkit-inner-spin-button,
#custom_frequency::-webkit-outer-spin-button {
    opacity: 1;
    height: 30px;
}

/* Submit button loading state */
.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}