/* =========================================================
   BRAND FONTS
========================================================= */

@font-face {
    font-family: 'Questa Sans';
    src: url('../fonts/Questa Sans.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Editorial New';
    src: url('../fonts/PP Editorial New Ultralight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Editorial New';
    src: url('../fonts/pp-editorial-new-ultra-light-italic.otf') format('opentype');
    font-weight: 200;
    font-style: italic;
    font-display: swap;
}


/* =========================================================
   BRAND COLORS
========================================================= */

:root {
    --brand-black: #0e0e0e;
    --brand-dark-red: #410c12;
    --brand-red: #951D2F;
    --brand-gray: #d6d6d7;
    --brand-light: #f4f2f1;

    --text-dark: #0e0e0e;
    --text-muted: #555;
    --white: #fff;
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Questa Sans', sans-serif;
    font-weight: 300;
    background: var(--brand-light);
    color: var(--text-dark);
    line-height: 1.5;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}


/* =========================================================
   MAIN CONTAINER
========================================================= */

.signup-container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 40px;
    background: var(--white);
    min-height: 100vh;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    width: 100%;
    text-align: center;
    margin-bottom: 40px;
}

.hero img {
    width: auto;
    max-width: 180px;
    max-height: 90px;
    margin: 0 auto 25px;
}

.hero h1 {
    margin: 0 0 20px;
    font-family: 'Editorial New', serif;
    font-weight: 200;
    font-size: 48px;
    line-height: 1.05;
    color: var(--brand-black);
}

.hero p {
    margin: 8px 0;
    font-family: 'Questa Sans', sans-serif;
    font-weight: 300;
    font-size: 17px;
    line-height: 1.5;
    color: var(--text-muted);
}

.hero p:last-child {
    color: var(--brand-red);
    font-weight: 300;
}


/* =========================================================
   FORM
========================================================= */

#signup-form {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}


/* =========================================================
   TWO COLUMN ROW
========================================================= */

.form-row {
    display: flex;
    width: 100%;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row > div {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
}


/* =========================================================
   LABELS
   Questa Sans
   Uppercase + letter spacing
========================================================= */

#signup-form label {
    color: var(--text-dark);
    font-family: 'Questa Sans', sans-serif;
    font-weight: 300;
}

#signup-form > label:not(.checkbox) {
    display: block;
    width: 100%;
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}


/* =========================================================
   FORM INPUTS
========================================================= */

#signup-form input[type="text"],
#signup-form input[type="email"],
#signup-form input[type="tel"],
#signup-form input[type="date"] {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 52px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--brand-gray);
    border-radius: 7px;
    background: var(--white);
    color: var(--brand-black);

    font-family: 'Questa Sans', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.4;

    outline: none;
    box-sizing: border-box;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

#signup-form input[type="text"]:focus,
#signup-form input[type="email"]:focus,
#signup-form input[type="tel"]:focus,
#signup-form input[type="date"]:focus {
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(149, 29, 47, 0.12);
}


/* =========================================================
   INDIVIDUAL FIELD SPACING
========================================================= */

#signup-form > label:not(.checkbox) + input {
    margin-bottom: 20px;
}


/* =========================================================
   MEMBERSHIP HEADING
   Editorial New
========================================================= */

#signup-form h2 {
    width: 100%;
    margin: 45px 0 20px;

    font-family: 'Editorial New', serif;
    font-size: 34px;
    font-weight: 200;
    line-height: 1.1;

    color: var(--brand-black);
}


/* =========================================================
   MEMBERSHIP OPTIONS
========================================================= */

.membership-option {
    position: relative;
    display: flex !important;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-height: 78px;
    margin: 0 0 12px !important;
    padding: 15px 18px;
    gap: 13px;

    border: 2px solid var(--brand-gray);
    border-radius: 8px;
    background: var(--white);

    cursor: pointer;
    box-sizing: border-box;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.membership-option:hover {
    border-color: var(--brand-red);
}

.membership-option input[type="radio"] {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--brand-red);
}

.membership-option span {
    flex: 1 1 auto;
    min-width: 0;
}

.membership-option strong {
    display: block;

    font-family: 'Editorial New', serif;
    font-size: 24px;
    font-weight: 200;
    line-height: 1.15;

    color: var(--brand-black);
}

.membership-option:has(
    input[type="radio"]:checked
) {
    border-color: var(--brand-red);
    background: var(--brand-light);
    box-shadow: 0 2px 8px rgba(65, 12, 18, 0.10);
}


/* =========================================================
   TERMS
========================================================= */

.terms {
    width: 100%;
    max-width: 100%;
    margin-top: 30px;
    padding: 20px;

    border: 1px solid var(--brand-gray);
    border-radius: 8px;
    background: var(--brand-light);
}

.terms h3 {
    margin: 0 0 12px;

    font-family: 'Editorial New', serif;
    font-size: 28px;
    font-weight: 200;
    line-height: 1.15;

    color: var(--brand-dark-red);
}

.terms p {
    margin: 7px 0;

    font-family: 'Questa Sans', sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.5;

    color: var(--text-muted);
}


/* =========================================================
   CHECKBOXES
========================================================= */

.checkbox {
    display: flex !important;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    gap: 10px;
    margin: 17px 0 0;

    font-family: 'Questa Sans', sans-serif;
    font-size: 14px !important;
    font-weight: 300 !important;
    line-height: 1.5;

    box-sizing: border-box;
}

.checkbox input[type="checkbox"] {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    accent-color: var(--brand-red);
}


/* =========================================================
   PAYMENT NOTICE
========================================================= */

.payment-notice {
    width: 100%;
    margin-top: 25px;
    padding: 18px 20px;

    border: 1px solid var(--brand-gray);
    border-left: 4px solid var(--brand-red);
    border-radius: 8px;
    background: var(--brand-light);
}

.payment-notice strong {
    display: block;
    margin-bottom: 6px;

    font-family: 'Editorial New', serif;
    font-size: 28px;
    font-weight: 200;
    line-height: 1.15;

    color: var(--brand-dark-red);
}

.payment-notice p {
    margin: 0;

    font-family: 'Questa Sans', sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.5;

    color: var(--text-muted);
}


/* =========================================================
   CARD SECTION
========================================================= */

.card-section {
    width: 100%;
    max-width: 100%;
    margin-top: 25px;
    padding: 20px;

    border: 1px solid var(--brand-gray);
    border-radius: 8px;
    background: var(--white);

    overflow: hidden;
}

.card-section h3 {
    margin: 0 0 10px;

    font-family: 'Editorial New', serif;
    font-size: 28px;
    font-weight: 200;
    line-height: 1.15;

    color: var(--brand-dark-red);
}

.card-section p {
    margin: 0 0 18px;

    font-family: 'Questa Sans', sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.5;

    color: var(--text-muted);
}


/*
   Square Web Payments SDK
*/

#card-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}


/* =========================================================
   ERROR MESSAGE
========================================================= */

#form-message {
    display: none;
    width: 100%;
    max-width: 100%;
    margin-top: 18px;
    padding: 12px 14px;

    border: 1px solid var(--brand-red);
    border-radius: 7px;
    background: #fdf0f2;

    color: var(--brand-dark-red);

    font-family: 'Questa Sans', sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.5;
}


/* =========================================================
   SUBMIT BUTTON
   Questa Sans
   Uppercase + letter spacing
========================================================= */

#submit-button {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 54px;
    margin-top: 25px;
    padding: 14px 20px;

    border: 0;
    border-radius: 7px;

    background: var(--brand-red);
    color: var(--white);

    font-family: 'Questa Sans', sans-serif;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.1s ease;
}

#submit-button:hover {
    background: var(--brand-dark-red);
}

#submit-button:active {
    transform: translateY(1px);
}

#submit-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}


/* =========================================================
   CONFIRMATION
========================================================= */

.confirmation {
    width: 100%;
    max-width: 650px;
    margin: 40px auto;
    padding: 60px 40px;

    background: var(--white);
    text-align: center;
}

.confirmation img {
    width: auto;
    max-width: 180px;
    max-height: 90px;
    margin: 0 auto 30px;
}

.confirmation h1 {
    margin: 0 0 20px;

    font-family: 'Editorial New', serif;
    font-size: 48px;
    font-weight: 200;
    line-height: 1.05;

    color: var(--brand-black);
}

.confirmation p {
    margin: 10px auto;
    max-width: 520px;

    font-family: 'Questa Sans', sans-serif;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.5;

    color: var(--text-muted);
}


/* =========================================================
   ACCENT / ITALIC TEXT
   Editorial New Ultra Light Italic
========================================================= */

.brand-accent {
    font-family: 'Editorial New', serif;
    font-size: 14px;
    font-weight: 200;
    font-style: italic;
    line-height: 1.4;
}


/* =========================================================
   DESKTOP
========================================================= */

@media (min-width: 768px) {

    body {
        padding: 30px 15px;
    }

    .signup-container {
        min-height: auto;
        border-radius: 12px;
        box-shadow: 0 5px 30px rgba(14, 14, 14, 0.10);
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 767px) {

    .signup-container {
        padding: 30px 20px 40px;
    }

    .hero h1 {
        font-size: 40px;
    }

    #signup-form h2 {
        font-size: 30px;
    }

    .terms h3,
    .card-section h3 {
        font-size: 25px;
    }

    .payment-notice strong {
        font-size: 25px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    body {
        background: var(--white);
        padding: 0;
    }

    .signup-container {
        width: 100%;
        max-width: 100%;
        padding: 22px 16px 40px;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .hero {
        margin-bottom: 30px;
    }

    .hero img {
        max-width: 150px;
        max-height: 75px;
        margin-bottom: 20px;
    }

    .hero h1 {
        font-size: 36px;
        line-height: 1.05;
    }

    .hero p {
        font-size: 15px;
    }

    .form-row {
        display: block;
        width: 100%;
        margin-bottom: 0;
    }

    .form-row > div {
        display: block;
        width: 100%;
        margin-bottom: 18px;
    }

    #signup-form h2 {
        margin-top: 35px;
        font-size: 28px;
    }

    .membership-option strong {
        font-size: 22px;
    }

    .terms {
        padding: 16px;
    }

    .terms h3 {
        font-size: 24px;
    }

    .payment-notice {
        padding: 16px;
    }

    .payment-notice strong {
        font-size: 24px;
    }

    .card-section {
        padding: 16px;
    }

    .card-section h3 {
        font-size: 24px;
    }

    .confirmation {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 55px 20px;
    }

    .confirmation h1 {
        font-size: 36px;
    }

}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 380px) {

    .signup-container {
        padding-left: 13px;
        padding-right: 13px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 14px;
    }

    .membership-option {
        padding: 13px;
    }

    .membership-option strong {
        font-size: 20px;
    }

    .terms,
    .card-section {
        padding: 14px;
    }

}