
/* ==========================================
   QU MUSIC CLUB — SIGNUP PAGE
   ========================================== */

/* COLOURS */

:root {
    --black: #11100f;
    --dark: #191715;
    --card: #1d1a18;
    --beige: #e8dfce;
    --cream: #f4eee3;
    --maroon: #641d2b;
    --red: #a8323e;
    --rose: #c18a82;
    --muted: #aaa298;
    --border: rgba(232, 223, 206, 0.13);

    --heading-font: 'Playfair Display', serif;
    --body-font: 'DM Sans', sans-serif;
}


/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--black);
    color: var(--cream);
    font-family: var(--body-font);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}


/* HEADER */

.header {
    min-height: 82px;
    padding: 0 7%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(17, 16, 15, 0.97);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--beige);
}

.logo span {
    color: var(--rose);
}

.back-link {
    color: var(--muted);
    font-size: 0.9rem;
    transition: color 0.25s ease;
}

.back-link:hover {
    color: var(--rose);
}


/* PAGE INTRO */

.page-intro {
    padding: 85px 8% 65px;
    text-align: center;

    background:
        radial-gradient(
            ellipse at top,
            rgba(100, 29, 43, 0.2),
            transparent 65%
        );
}

.eyebrow {
    color: var(--rose);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.page-intro h1 {
    font-family: var(--heading-font);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 20px;
}

.page-intro h1 span {
    color: var(--rose);
    font-style: italic;
}

.intro-description {
    max-width: 590px;
    margin: auto;
    color: var(--muted);
    font-size: 1rem;
}

.review-notice {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-top: 28px;
    padding: 10px 17px;

    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.025);

    color: var(--beige);
    font-size: 0.8rem;
}

.notice-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rose);
}


/* FORM WRAPPER */

.form-wrapper {
    width: min(850px, 90%);
    margin: 0 auto 90px;
}

#signupForm {
    display: flex;
    flex-direction: column;
    gap: 25px;
}


/* FORM CARDS */

.form-card {
    padding: 38px 42px;

    background: var(--card);
    border: 1px solid var(--border);

    transition: border-color 0.25s ease;
}

.form-card:focus-within {
    border-color: rgba(193, 138, 130, 0.4);
}


/* CARD HEADINGS */

.card-heading {
    display: flex;
    align-items: center;
    gap: 20px;

    margin-bottom: 32px;
}

.step-number {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    background: rgba(100, 29, 43, 0.35);
    border: 1px solid rgba(193, 138, 130, 0.3);

    color: var(--rose);
    font-family: var(--heading-font);
    font-size: 1.1rem;
}

.card-heading h2 {
    font-family: var(--heading-font);
    font-size: 1.65rem;
    font-weight: 500;
    color: var(--beige);
}

.card-heading p {
    color: var(--muted);
    font-size: 0.85rem;
}


/* TEXT INPUTS */

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;

    margin-bottom: 25px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    color: var(--beige);
    font-size: 0.92rem;
    font-weight: 600;
}

.required {
    color: var(--rose);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 17px;

    background: #13110f;
    border: 1px solid rgba(232, 223, 206, 0.2);

    color: var(--cream);
    outline: none;

    transition: border-color 0.25s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #77716a;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--rose);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.form-group small {
    color: var(--muted);
    font-size: 0.77rem;
}


/* OPTION LIST */

.option-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.option-row {
    display: flex;
    align-items: center;
    gap: 17px;

    min-height: 58px;
    padding: 12px 15px;

    color: var(--beige);
    font-size: 0.93rem;

    cursor: pointer;

    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.option-row:hover {
    background: rgba(232, 223, 206, 0.04);
}

.option-row:has(input:checked) {
    background: rgba(100, 29, 43, 0.2);
    border-color: rgba(193, 138, 130, 0.35);
}


/* HIDE DEFAULT CHECKBOXES AND RADIO BUTTONS */

.option-row input,
.day-option input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}


/* CUSTOM CHECKBOX */

.custom-checkbox {
    width: 21px;
    height: 21px;

    flex-shrink: 0;

    border: 1.5px solid #898078;
    background: transparent;

    display: grid;
    place-items: center;

    transition: all 0.2s ease;
}

.option-row input:checked + .custom-checkbox {
    background: var(--maroon);
    border-color: var(--rose);
}

.option-row input:checked + .custom-checkbox::after {
    content: "✓";
    color: white;
    font-size: 13px;
    font-weight: 700;
}

.option-row input:focus-visible + .custom-checkbox,
.option-row input:focus-visible + .custom-radio {
    outline: 2px solid var(--rose);
    outline-offset: 4px;
}


/* CUSTOM RADIO BUTTON */

.custom-radio {
    width: 21px;
    height: 21px;

    flex-shrink: 0;

    border: 1.5px solid #898078;
    border-radius: 50%;

    display: grid;
    place-items: center;
}

.option-row input:checked + .custom-radio {
    border-color: var(--rose);
}

.option-row input:checked + .custom-radio::after {
    content: "";
    width: 9px;
    height: 9px;

    border-radius: 50%;
    background: var(--rose);
}


/* SKILL DESCRIPTIONS */

.radio-row {
    min-height: 76px;
}

.option-description {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.option-description strong {
    color: var(--beige);
    font-weight: 600;
}

.option-description small {
    color: var(--muted);
    font-size: 0.8rem;
}


/* OTHER INSTRUMENT FIELD */

.other-field {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.other-field[hidden] {
    display: none;
}


/* AVAILABLE DAYS */

.day-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.day-option {
    cursor: pointer;
}

.day-option span {
    min-height: 52px;

    display: grid;
    place-items: center;

    background: #13110f;
    border: 1px solid var(--border);

    color: var(--beige);
    font-size: 0.88rem;

    transition: all 0.2s ease;
}

.day-option:hover span {
    border-color: var(--rose);
}

.day-option input:checked + span {
    background: var(--maroon);
    border-color: var(--rose);
    color: white;
}

.day-option input:focus-visible + span {
    outline: 2px solid var(--rose);
    outline-offset: 3px;
}


/* TIMINGS */

.time-list .option-row {
    border-bottom: 1px solid rgba(232, 223, 206, 0.06);
}

.time-list .option-row:last-child {
    border-bottom: none;
}


/* SUBMIT SECTION */

.submit-section {
    padding: 35px;
    text-align: center;

    background: rgba(100, 29, 43, 0.12);
    border: 1px solid rgba(193, 138, 130, 0.2);
}

.submit-section > p {
    max-width: 480px;
    margin: 0 auto 25px;

    color: var(--muted);
    font-size: 0.85rem;
}

.submit-btn {
    padding: 16px 32px;

    background: var(--maroon);
    border: 1px solid var(--maroon);

    color: white;
    font-size: 0.9rem;
    font-weight: 700;

    cursor: pointer;

    transition: all 0.25s ease;
}

.submit-btn span {
    margin-left: 15px;
}

.submit-btn:hover {
    background: var(--red);
    border-color: var(--red);
    transform: translateY(-3px);
}

.submit-btn:focus-visible {
    outline: 2px solid var(--rose);
    outline-offset: 4px;
}


/* ERRORS AND SUCCESS */

.form-error {
    padding: 14px 18px;
    color: #ffd0d0;
    background: rgba(168, 50, 62, 0.15);
    border: 1px solid rgba(168, 50, 62, 0.5);
}

.success-message {
    margin-top: 22px;
    padding: 20px;

    background: rgba(80, 130, 85, 0.12);
    border: 1px solid rgba(120, 180, 120, 0.4);

    color: #c8e6c8;
}

.success-message p {
    margin-top: 5px;
    font-size: 0.85rem;
}

[hidden] {
    display: none !important;
}


/* FOOTER */

.footer {
    padding: 28px 7%;
    text-align: center;

    background: #0b0a09;
    border-top: 1px solid var(--border);

    color: var(--muted);
    font-size: 0.78rem;
}


/* RESPONSIVE */

@media (max-width: 700px) {

    .header {
        padding: 18px 5%;
        flex-wrap: wrap;
        gap: 12px;
    }

    .logo {
        font-size: 1.25rem;
    }

    .page-intro {
        padding: 65px 7% 45px;
    }

    .form-wrapper {
        width: 92%;
    }

    .form-card {
        padding: 27px 22px;
    }

    .card-heading {
        gap: 13px;
    }

    .card-heading h2 {
        font-size: 1.4rem;
    }

    .day-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .submit-section {
        padding: 28px 18px;
    }
}

@media (max-width: 420px) {

    .header {
        justify-content: center;
    }

    .back-link {
        font-size: 0.82rem;
    }

    .page-intro h1 {
        font-size: 3rem;
    }

    .form-card {
        padding: 23px 17px;
    }

    .option-row {
        padding: 10px 8px;
        gap: 12px;
        font-size: 0.85rem;
    }
}


/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

}
