/* Graduation Save the Date template (page-save-the-date.php) */

.save-the-date-page .graduation-label {
    margin-bottom: 18px;
}

.save-the-date-badge {
    display: inline-flex;
    align-items: center;
    margin: 0 0 22px;
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--gold-500);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.save-the-date-page .intro-highlight::before {
    content: var(--std-watermark, "2027");
}

.event-time-tbd {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--teal-500);
    font-size: 13px;
}

.coming-soon-box {
    max-width: 950px;
    margin: 0 auto;
    padding: 48px;
    border: 1px dashed var(--gray-200);
    border-radius: 20px;
    background: var(--white);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.coming-soon-box .coming-soon-icon {
    display: block;
    margin-bottom: 16px;
    font-size: 2.6rem;
}

.coming-soon-box .section-title {
    margin-bottom: 14px;
}

.coming-soon-box p {
    max-width: 680px;
    margin: 0 auto;
    color: var(--gray-500);
}

.save-the-date-page .celebration-section .celebration-signoff {
    margin-top: 28px;
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
}

/* Graduate information form (Contact Form 7), styled like the ticket form */

.save-the-date-page .set-register {
    max-width: 950px;
    margin: 60px auto 0;
}

.save-the-date-page .set-register__intro h3 {
    margin: 0 0 12px;
    color: var(--navy-900);
    font-family: var(--font-heading);
    font-size: 1.8rem;
}

.save-the-date-page .set-register__intro p {
    color: var(--gray-500);
}

.save-the-date-page .set-kicker {
    margin: 0 0 10px;
    color: var(--teal-500) !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ttec-grad-form .wpcf7-form {
    display: grid;
    gap: 20px;
}

.ttec-grad-form .wpcf7-form > p {
    margin: 0;
}

/* Contact Form 7 wraps lines in <p>; let the labels sit directly in the grid */
.ttec-grad-form .set-grid > p,
.ttec-grad-form .set-paybox > p {
    display: contents;
}

.ttec-grad-form br {
    display: none;
}

.ttec-grad-form .set-card,
.ttec-grad-form .set-paybox {
    margin: 0;
    padding: 28px;
    border: 1px solid var(--gray-100);
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.ttec-grad-form .set-card legend {
    padding: 0 8px;
    color: var(--teal-500);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ttec-grad-form .set-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ttec-grad-form label {
    display: grid;
    gap: 8px;
    color: var(--navy-900);
    font-size: 13px;
    font-weight: 700;
}

.ttec-grad-form input:not([type="submit"]):not([type="hidden"]),
.ttec-grad-form select,
.ttec-grad-form textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    background: var(--surface);
    color: var(--navy-900);
    font: inherit;
    font-weight: 500;
}

.ttec-grad-form .set-paybox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--surface);
}

.ttec-grad-form .set-submit-note strong {
    display: block;
    color: var(--navy-900);
}

.ttec-grad-form .set-submit-note span {
    display: block;
    margin-top: 4px;
    color: var(--gray-500);
    font-size: 14px;
    font-weight: 500;
}

/* The theme styles every CF7 submit navy with !important; this form uses the gold button */
.ttec-grad-form .wpcf7-submit.button-gold {
    background: var(--gold-500) !important;
    color: var(--navy-950) !important;
}

.ttec-grad-form .wpcf7-submit.button-gold:hover {
    background: #f0bc5e !important;
}

.ttec-grad-form input[type="submit"] {
    width: auto;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.ttec-grad-form .wpcf7-spinner {
    margin: 0 0 0 8px;
}

.ttec-grad-form .wpcf7-not-valid-tip {
    margin-top: 6px;
    color: #b42318;
    font-size: 13px;
    font-weight: 600;
}

.ttec-grad-form .wpcf7 form .wpcf7-response-output {
    margin: 0;
    padding: 16px 20px;
    border-radius: 12px;
    font-weight: 700;
}

.ttec-grad-form .wpcf7 form.sent .wpcf7-response-output {
    border-color: #a6f4c5;
    background: #ecfdf3;
    color: #05603a;
}

.ttec-grad-form .wpcf7 form.invalid .wpcf7-response-output,
.ttec-grad-form .wpcf7 form.failed .wpcf7-response-output {
    border-color: #fecdca;
    background: #fef3f2;
    color: #b42318;
}

@media (max-width: 700px) {
    .coming-soon-box {
        padding: 32px 22px;
    }

    .ttec-grad-form .set-grid {
        grid-template-columns: 1fr;
    }

    .ttec-grad-form .set-paybox {
        flex-direction: column;
        align-items: stretch;
    }

    .ttec-grad-form input[type="submit"] {
        width: 100%;
    }
}

/* Gown size chart popup (inside the Contact Form 7 form) */

.ttec-grad-form .ttec-label-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ttec-grad-form .ttec-size-chart-btn {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid var(--gray-200);
    border-radius: 50%;
    background: var(--white);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}

.ttec-grad-form .ttec-size-chart-btn:hover,
.ttec-grad-form .ttec-size-chart-btn:focus-visible {
    border-color: var(--teal-500);
    background: #edf8f8;
}

.ttec-size-popover {
    position: fixed;
    inset: 0;
    width: min(560px, calc(100% - 32px));
    max-height: calc(100% - 48px);
    height: fit-content;
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 0;
    border-radius: 16px;
    background: var(--white);
    color: var(--gray-900);
    box-shadow: var(--shadow-lg);
    font-family: var(--font-body);
}

.ttec-size-popover::backdrop {
    background: rgba(7, 21, 34, 0.55);
}

/* Older browsers without the popover feature: assets/js/save-the-date-form.js toggles .is-open */
@supports not selector(:popover-open) {
    .ttec-size-popover:not(.is-open) {
        display: none;
    }

    .ttec-size-popover.is-open {
        z-index: 10000;
    }
}

.ttec-size-popover-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--gray-100);
}

/* Contact Form 7 wraps inline content in <p>; keep the popup layout intact */
.ttec-size-popover-head > p,
.ttec-size-popover th > p,
.ttec-size-popover td > p {
    display: contents;
}

.ttec-size-popover-head strong {
    color: var(--navy-900);
    font-family: var(--font-heading);
    font-size: 1.15rem;
}

.ttec-size-popover-close {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--surface);
    color: var(--navy-900);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.ttec-size-popover-close:hover {
    background: var(--gray-100);
}

.ttec-size-popover .ttec-size-chart-body {
    padding: 8px 22px 22px;
}

.ttec-size-popover table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ttec-size-popover th,
.ttec-size-popover td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--gray-100);
    text-align: left;
}

.ttec-size-popover th {
    color: var(--gray-500);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ttec-size-popover td:first-child {
    color: var(--navy-900);
    font-weight: 700;
}

.ttec-size-popover tr:last-child td {
    border-bottom: 0;
}

.ttec-size-popover .ttec-size-chart-body p {
    margin: 14px 0 0;
    color: var(--gray-500);
    font-size: 13px;
}
