@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');


/* =========================================================
   VARIABLES
========================================================= */

:root {
    --navy: #14213d;
    --navy-dark: #0b1428;

    --club-green: #014A0E;
    --club-green-dark: #01380A;
    --club-green-light: #075F18;

    --gold: #c9a227;

    --cream: #f7f5ef;
    --ink: #1d2738;
    --muted: #697386;
    --line: #e5e7eb;
    --white: #ffffff;
}


/* =========================================================
   BASE
========================================================= */

html {
    min-height: 100%;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--ink);
    margin: 0;
}


/* =========================================================
   DARK PUBLIC NAVBAR
========================================================= */

.club-nav {
    background: #222;
    min-height: 64px;
    color: #ffffff;
}

.club-nav .navbar-text {
    color: #ffffff !important;
    font-weight: 600;
    letter-spacing: .08em;
    font-size: .92rem;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;
    overflow: hidden;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 12% 50%,
            rgba(62, 139, 76, 0.32) 0%,
            rgba(62, 139, 76, 0.12) 28%,
            transparent 55%
        ),
        radial-gradient(
            circle at 88% 15%,
            rgba(201, 162, 39, 0.16) 0%,
            transparent 35%
        ),
        linear-gradient(
            120deg,
            var(--club-green-dark) 0%,
            var(--club-green) 42%,
            var(--club-green-light) 72%,
            var(--club-green) 100%
        );

    padding: 48px 0 58px;
}


/* =========================================================
   HERO DECORATION
========================================================= */

.hero::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    left: -220px;
    top: -260px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(130, 201, 119, 0.22) 0%,
            rgba(130, 201, 119, 0.08) 38%,
            transparent 70%
        );

    pointer-events: none;
}


.hero::after {
    content: "";

    position: absolute;

    width: 620px;
    height: 620px;

    right: -300px;
    bottom: -420px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(201, 162, 39, 0.17) 0%,
            rgba(201, 162, 39, 0.05) 35%,
            transparent 70%
        );

    pointer-events: none;
}


.hero-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(3px);
}


.hero-glow-one {
    width: 180px;
    height: 180px;

    left: 8%;
    top: 25%;

    background:
        radial-gradient(
            circle,
            rgba(119, 196, 110, 0.14),
            transparent 70%
        );
}


.hero-glow-two {
    width: 240px;
    height: 240px;

    right: 12%;
    top: -80px;

    background:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.08),
            transparent 70%
        );
}


/* =========================================================
   HERO CONTENT
========================================================= */

.hero-inner {
    position: relative;
    z-index: 2;

    /*
     * Important:
     * Do not use the old 850px max-width here.
     * The logo and heading need room to sit beside each other.
     */
    max-width: 1100px;
    margin: 0 auto;
}


.hero-title-row {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 38px;

    max-width: 1050px;
    margin: 0 auto;
}


/* =========================================================
   HERO LOGO
========================================================= */

.hero-logo-wrap {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;
}


/*
 * Outer circular logo frame.
 */

.hero-logo-circle {
    width: 190px;
    height: 190px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 35% 30%,
            rgba(255,255,255,0.20),
            rgba(255,255,255,0.07) 55%,
            rgba(255,255,255,0.02) 100%
        );

    border: 1px solid rgba(255,255,255,0.18);

    box-shadow:
        0 18px 45px rgba(0,0,0,0.18),
        inset 0 0 35px rgba(255,255,255,0.05);
}


/*
 * Actual logo image.
 *
 * The image itself is circular as well as the container.
 */

.hero-logo {
    display: block;

    width: 165px;
    height: 165px;

    border-radius: 50%;

    object-fit: cover;

    overflow: hidden;
}


/* =========================================================
   HERO TEXT
========================================================= */

.hero-title-content {
    max-width: 690px;
}


.hero .eyebrow {
    display: inline-block;

    color: #f0d76c;

    font-size: .68rem;
    font-weight: 700;

    letter-spacing: .2em;

    margin-bottom: 9px;
}


.hero-title-content h1 {
    font-family: 'Playfair Display', serif;

    font-size: clamp(1.65rem, 3vw, 2.45rem);

    line-height: 1.18;

    margin: 0 0 13px;

    color: #ffffff;

    max-width: 680px;
}


.hero-title-content p {
    color: rgba(255,255,255,0.84);

    font-size: .94rem;

    line-height: 1.6;

    max-width: 650px;

    margin: 0;
}


/* =========================================================
   FORM AREA
========================================================= */

/*
 * IMPORTANT:
 *
 * The previous -38px margin caused the Confidentiality
 * section to slide underneath the hero.
 *
 * It now starts cleanly underneath the hero.
 */

.form-shell {
    margin-top: 0;

    padding-top: 34px;
    padding-bottom: 70px;
}


/* =========================================================
   CONFIDENTIALITY NOTICE
========================================================= */

.notice-box {
    background: #ffffff;

    border-left: 4px solid var(--gold);

    padding: 18px 22px;

    box-shadow:
        0 12px 35px rgba(20,33,61,.07);

    border-radius: 8px;
}


.notice-box strong {
    color: var(--ink);
}


.notice-box p {
    color: var(--muted);
    line-height: 1.6;
}


/* =========================================================
   FORM CARDS
========================================================= */

.form-card,
.admin-card,
.stat-card {
    background: var(--white);

    border: 1px solid var(--line);

    border-radius: 12px;

    box-shadow:
        0 12px 35px rgba(20,33,61,.05);
}


.form-card {
    padding: 32px;
    margin-bottom: 24px;
}


/* =========================================================
   SECTION HEADINGS
========================================================= */

.section-heading {
    display: flex;

    gap: 18px;

    margin-bottom: 30px;

    align-items: flex-start;
}


/*
 * Section numbers now use the exact same green
 * as the hero.
 */

.section-heading > span {
    width: 46px;
    height: 46px;

    min-width: 46px;

    border-radius: 50%;

    background: var(--club-green);

    color: #ffffff;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    font-weight: 700;

    flex: 0 0 46px;

    box-shadow:
        0 6px 16px rgba(1, 74, 14, 0.18);
}


.section-heading h2 {
    font-family: 'Playfair Display', serif;

    font-size: 1.7rem;

    margin: 0 0 5px;
}


.section-heading p {
    margin: 0;

    color: var(--muted);

    line-height: 1.55;
}


/* =========================================================
   SUB HEADINGS
========================================================= */

.sub-heading {
    border-top: 1px solid var(--line);

    padding-top: 22px;

    margin-top: 10px;

    margin-bottom: 18px;

    font-weight: 700;
}


/* =========================================================
   FORM LABELS
========================================================= */

label {
    font-weight: 600;
    font-size: .9rem;
}


label span {
    color: #b42318;
}


/* =========================================================
   FORM CONTROLS
========================================================= */

.form-control {
    border-color: #d9dde5;

    min-height: 46px;

    border-radius: 7px;
}


.form-control:focus {
    border-color: var(--club-green);

    box-shadow:
        0 0 0 .15rem rgba(1,74,14,.10);
}


/* =========================================================
   CHECKBOX GRID
========================================================= */

.check-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;
}


.check-card {
    border: 1px solid var(--line);

    padding: 15px;

    border-radius: 8px;

    display: flex;

    gap: 10px;

    align-items: flex-start;

    cursor: pointer;

    font-weight: 500;

    margin: 0;

    transition: .15s ease;
}


.check-card:hover {
    border-color: var(--club-green);

    background: #f5faf6;
}


.check-card input {
    margin-top: 3px;
}


/* =========================================================
   PILLAR TABLE
========================================================= */

.pillar-table th {
    font-size: .75rem;

    text-transform: uppercase;

    letter-spacing: .05em;

    color: var(--muted);
}


.rating-col {
    width: 180px;
}


/* =========================================================
   COVENANT
========================================================= */

.covenant {
    background: #f8f8f6;

    border-radius: 9px;

    padding: 22px;

    margin-bottom: 28px;

    line-height: 1.65;
}


.covenant ul {
    padding-left: 20px;
}


/* =========================================================
   SIGNATURE
========================================================= */

.signature-pad-wrap {
    border: 1px dashed #aab1bd;

    border-radius: 8px;

    background: #fff;

    overflow: hidden;
}


#signaturePad {
    width: 100%;

    height: 240px;

    display: block;

    touch-action: none;

    cursor: crosshair;
}


.signature-actions {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top: 9px;
}


/* =========================================================
   DECLARATION
========================================================= */

.declaration {
    background: #fff9e7;

    border: 1px solid #ead68b;

    border-radius: 8px;

    padding: 16px;

    font-size: .9rem;

    line-height: 1.6;
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.btn-submit {
    background: var(--club-green);

    color: #ffffff;

    border: 0;

    border-radius: 7px;

    padding: 13px 24px;

    font-weight: 700;

    transition: .15s ease;
}


.btn-submit:hover {
    color: #ffffff;

    background: var(--club-green-dark);

    transform: translateY(-1px);
}


/* =========================================================
   DARK FOOTER
========================================================= */

.club-footer {
    background: #222;

    color: #ffffff;

    padding: 28px 0;

    font-size: .85rem;
}


.club-footer strong {
    color: #ffffff;
}


.club-footer a {
    color: #ffffff;
}


/* =========================================================
   SUCCESS PAGE
========================================================= */

.success-page {
    min-height: 100vh;
}


.success-card {
    background: white;

    max-width: 680px;

    margin: 80px auto;

    padding: 55px;

    text-align: center;

    border-radius: 14px;

    box-shadow:
        0 20px 60px rgba(20,33,61,.12);
}


.success-card h1 {
    font-family: 'Playfair Display', serif;
}


.success-icon {
    width: 70px;
    height: 70px;

    background: #e9f7ef;

    color: #16844a;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 2rem;

    font-weight: 700;

    margin: 0 auto 24px;
}


.reference-box {
    background: var(--cream);

    padding: 18px;

    border-radius: 8px;

    margin: 28px 0;
}


.reference-box small {
    display: block;

    color: var(--muted);

    letter-spacing: .1em;

    font-weight: 700;
}


.reference-box strong {
    display: block;

    font-size: 1.35rem;

    margin-top: 5px;
}


/* =========================================================
   ADMIN LOGIN
========================================================= */

.admin-login {
    min-height: 100vh;

    display: flex;

    align-items: center;
    justify-content: center;

    background: var(--navy-dark);
}


.login-card {
    background: white;

    width: 100%;

    max-width: 430px;

    padding: 42px;

    border-radius: 14px;

    box-shadow:
        0 25px 70px rgba(0,0,0,.2);
}


/* =========================================================
   ADMIN
========================================================= */

.admin-body {
    background: #f4f6f9;
}


.admin-nav {
    background: var(--navy-dark);

    color: white;

    padding: 16px 28px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.admin-nav strong {
    letter-spacing: .1em;
}


.admin-nav span {
    color: rgba(255,255,255,.65);

    margin-left: 12px;
}


.admin-content {
    padding-top: 35px;

    padding-bottom: 60px;
}


.stat-card {
    padding: 22px;
}


.stat-card small {
    display: block;

    color: var(--muted);

    margin-bottom: 6px;
}


.stat-card strong {
    font-size: 2rem;
}


.admin-card {
    padding: 25px;
}


.admin-card h3 {
    font-family: 'Playfair Display', serif;

    margin-bottom: 22px;
}


.admin-table th {
    font-size: .72rem;

    text-transform: uppercase;

    letter-spacing: .05em;

    color: var(--muted);

    border-top: 0;
}


/* =========================================================
   STATUS
========================================================= */

.status {
    display: inline-block;

    padding: 5px 10px;

    border-radius: 99px;

    font-size: .72rem;

    font-weight: 700;
}


.status-submitted {
    background: #fff3cd;
    color: #856404;
}


.status-reviewed {
    background: #dbeafe;
    color: #1d4ed8;
}


.status-approved {
    background: #dcfce7;
    color: #166534;
}


.status-declined {
    background: #fee2e2;
    color: #991b1b;
}


/* =========================================================
   DETAIL GRID
========================================================= */

.detail-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;
}


.detail-grid .wide {
    grid-column: span 3;
}


.detail-grid small {
    display: block;

    color: var(--muted);

    margin-bottom: 4px;
}


.detail-grid strong {
    display: block;

    font-weight: 600;
}


/* =========================================================
   SIGNATURE PREVIEW
========================================================= */

.signature-preview {
    border: 1px dashed #ccd2db;

    padding: 20px;

    background: #fff;

    border-radius: 8px;
}


.signature-preview img {
    max-width: 100%;

    height: auto;

    max-height: 180px;
}


/* =========================================================
   ADMIN LOGOS
========================================================= */

.admin-login-logo {
    margin-bottom: 22px;
}


.admin-login-logo img {
    display: block;

    width: auto;

    max-width: 230px;

    height: 75px;

    object-fit: contain;
}


.admin-brand {
    display: flex;

    align-items: center;

    gap: 18px;
}


.admin-brand img {
    display: block;

    width: auto;

    height: 46px;

    max-width: 190px;

    object-fit: contain;
}


.admin-brand span {
    color: rgba(255,255,255,.65);

    margin-left: 0;
}


/* =========================================================
   PRINT
========================================================= */

@media print {

    @page {
        size: A4;

        margin: 15mm;
    }


    body {
        background: #fff !important;

        color: #000 !important;
    }


    .club-nav,
    .admin-nav,
    .no-print {
        display: none !important;
    }


    .admin-content {
        width: 100% !important;

        max-width: none !important;

        margin: 0 !important;

        padding: 0 !important;
    }


    .admin-card {
        box-shadow: none !important;

        border: 1px solid #ddd !important;

        break-inside: avoid;

        page-break-inside: avoid;
    }


    h1 {
        font-size: 24pt;
    }


    h3 {
        font-size: 14pt;
    }


    .table {
        width: 100% !important;
    }


    .signature-preview img {
        max-width: 250px !important;
    }


    a {
        color: #000 !important;

        text-decoration: none !important;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767.98px) {

    .club-nav {
        min-height: 58px;
    }


    .club-nav .navbar-text {
        font-size: .82rem;

        letter-spacing: .06em;
    }


    .hero {
        padding: 38px 0 58px;
    }


    .hero-title-row {
        flex-direction: column;

        text-align: center;

        gap: 20px;
    }


    .hero-logo-circle {
        width: 145px;
        height: 145px;
    }


    .hero-logo {
        width: 125px;
        height: 125px;

        border-radius: 50%;

        object-fit: cover;
    }


    .hero-title-content {
        max-width: 100%;
    }


    .hero-title-content h1 {
        font-size: 1.65rem;

        line-height: 1.2;
    }


    .hero-title-content p {
        font-size: .88rem;
    }


    .hero .eyebrow {
        font-size: .62rem;
    }


    .form-shell {
        padding-top: 24px;

        padding-bottom: 45px;
    }


    .form-card {
        padding: 22px;
    }


    .section-heading {
        gap: 13px;
    }


    .section-heading > span {
        width: 42px;
        height: 42px;

        min-width: 42px;

        flex-basis: 42px;

        font-size: .9rem;
    }


    .section-heading h2 {
        font-size: 1.45rem;
    }


    .check-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }


    .detail-grid .wide {
        grid-column: auto;
    }


    .signature-actions {
        align-items: flex-start;

        flex-direction: column;

        gap: 8px;
    }


    .success-card {
        margin: 40px 15px;

        padding: 35px 22px;
    }


    .admin-nav {
        padding: 14px 16px;
    }


    .admin-nav span {
        display: none;
    }


    .admin-brand {
        gap: 10px;
    }


    .admin-brand img {
        height: 40px;

        max-width: 160px;
    }


    .club-footer {
        padding: 24px 15px;
    }

}


/* =========================================================
   VERY SMALL SCREENS
========================================================= */

@media (max-width: 480px) {

    .hero-logo-circle {
        width: 125px;
        height: 125px;
    }


    .hero-logo {
        width: 108px;
        height: 108px;
    }


    .hero-title-content h1 {
        font-size: 1.48rem;
    }


    .form-card {
        padding: 18px;
    }


    .section-heading {
        margin-bottom: 24px;
    }


    .section-heading h2 {
        font-size: 1.3rem;
    }


    .btn-submit {
        width: 100%;
    }

}