﻿/* =========================
   HOS Register Page
========================= */

.teacher-register-panel .title,
.school-register-panel .title {
    text-align: center;
}

.teacher-register-panel .form-fields,
.school-register-panel .form-fields {
    max-width: 720px;
    margin: 0 auto;
}

/* =========================
   Register Option Cards
   Used by Teacher + School/PTA
========================= */

.hos-register-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 20px;
    border: 1px solid #dfe7f1;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 58%, #eef8f2 100%);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

.hos-register-option--teacher {
    background: linear-gradient(135deg, #fffaf3 0%, #ffffff 58%, #eef8f2 100%);
}

.hos-register-option--school {
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 58%, #eef8f2 100%);
}

.hos-register-option__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: #eaf7ef;
    font-size: 28px;
    line-height: 1;
}

.hos-register-option__icon--teacher {
    background: #fff1df;
    font-size: 30px;
}

.hos-register-option__content h3 {
    margin: 0 0 6px;
    color: #102033;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.25;
}

.hos-register-option__content p {
    margin: 0;
    color: #536171;
    font-size: 15px;
    line-height: 1.55;
}

.hos-register-option__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 14px 0 0;
    color: #27364a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    cursor: pointer;
}

/* Keep theme checkbox styling from hiding or duplicating the checkbox */
.hos-register-option__checkbox input[type="checkbox"] {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
    flex: 0 0 auto;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    margin: 1px 0 0 !important;
    padding: 0 !important;
    appearance: auto;
    -webkit-appearance: checkbox;
}

.hos-register-option__checkbox::before,
.hos-register-option__checkbox::after,
.hos-register-option__checkbox span::before,
.hos-register-option__checkbox span::after {
    display: none !important;
    content: none !important;
}

.hos-register-option__checkbox span {
    display: block;
}

/* =========================
   Teacher Details Panel
========================= */

.teacher-details-shell {
    max-width: 720px;
    margin: 18px auto 0;
}

.teacher-details-card {
    padding: 22px;
    border: 1px solid #dfeee5;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef7f1 100%);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.teacher-details-card__head {
    margin-bottom: 18px;
    text-align: center;
}

.teacher-details-card__head span {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 8px;
    padding: 6px 11px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #dfeee5;
    color: #257a3e;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.teacher-details-card__head h3 {
    margin: 0 0 7px;
    color: #172033;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 900;
}

.teacher-details-card__head p {
    max-width: 620px;
    margin: 0 auto;
    color: #526072;
    font-size: 14px;
    line-height: 1.55;
}

.teacher-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.teacher-details-field {
    margin: 0 !important;
}

.teacher-details-field--full {
    grid-column: 1 / -1;
}

.teacher-details-field label {
    font-weight: 800;
}

.teacher-register-panel .teacher-school-search-wrap,
.teacher-register-panel .teacher-school-picker {
    position: relative;
    max-width: 100%;
}

.teacher-register-panel .teacher-school-search {
    width: 100%;
    max-width: 100%;
}

.teacher-register-panel .teacher-school-actions {
    margin-top: 8px;
}

.teacher-register-panel .teacher-school-actions a {
    color: #2f8f46;
    font-weight: 800;
    text-decoration: none;
}

.teacher-register-panel .teacher-school-actions a:hover {
    text-decoration: underline;
}

.teacher-register-panel .teacher-school-results {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    background: #fff !important;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    z-index: 9999;
}

.teacher-register-panel .teacher-school-item {
    padding: 11px 13px;
    cursor: pointer;
    background: #fff !important;
    color: #222 !important;
    line-height: 1.4;
}

.teacher-register-panel .teacher-school-item:hover {
    background: #f4f6fb !important;
    color: #111 !important;
}

.teacher-register-panel .teacher-school-item * {
    color: inherit !important;
}

.teacher-register-panel .teacher-token-message {
    margin-top: 8px;
    color: #526072;
    font-size: 13px;
    line-height: 1.5;
}

/* =========================
   Newsletter / Attributes
========================= */

.register-options-panel .newsletter-input-row .newsletter-toggle-control {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.register-options-panel .newsletter-input-row .newsletter-toggle-control input[type="checkbox"] {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    appearance: auto;
    -webkit-appearance: checkbox;
}

.register-options-panel .newsletter-input-row .newsletter-toggle-label {
    margin: 0 !important;
    font-weight: 400;
}

.register-options-panel .newsletter-input-row .newsletter-toggle-label::before,
.register-options-panel .newsletter-input-row .newsletter-toggle-label::after {
    display: none !important;
    content: none !important;
}

.register-options-panel .register-customer-attributes-wrap input[type="checkbox"],
.register-options-panel .register-customer-attributes-wrap input[type="radio"] {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 8px 0 0 !important;
    appearance: auto;
    -webkit-appearance: checkbox;
}

.register-options-panel .register-customer-attributes-wrap input[type="radio"] {
    -webkit-appearance: radio;
}

.register-options-panel .register-customer-attributes-wrap .forcheckbox::before,
.register-options-panel .register-customer-attributes-wrap .forcheckbox::after {
    display: none !important;
    content: none !important;
}

/* =========================
   Responsive
========================= */

@media (max-width: 768px) {
    .teacher-register-panel .form-fields,
    .school-register-panel .form-fields {
        max-width: 100%;
    }

    .hos-register-option {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hos-register-option__icon {
        margin: 0 auto;
    }

    .hos-register-option__checkbox {
        justify-content: center;
        text-align: left;
    }

    .teacher-details-card {
        padding: 18px;
    }

    .teacher-details-grid {
        grid-template-columns: 1fr;
    }

    .teacher-details-field--full {
        grid-column: auto;
    }

    .teacher-register-panel .teacher-school-search-wrap,
    .teacher-register-panel .teacher-school-picker,
    .teacher-register-panel .teacher-school-search {
        max-width: 100%;
    }
}