/*
#00338D Blue
#EBB700 Gold
##013E74 Blue Lettering
##BF9B06 Gold shadow on text
#EBE6C0 Body Background
#1D4F99 Footer Background
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Highly recommended to keep layout sizing predictable */
}

.header-container {
    height: 20vw;
    width: 100%;
    background-image: linear-gradient(rgba(99, 99, 99, 0.7), rgba(144, 144, 144, 0.7)), url(../images/Lucas_Ballfield.jpg);
    background-position: center;   /* Centers the image horizontally and vertically */
    background-repeat: no-repeat;  /* Prevents the image from tiling */
    background-size: cover;        /* Scales the image to fill the container */
}

.header-row {
    display: flex;
}

.header-text {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 5vw;
    font-weight: bold;
    color: #013e74;
    -webkit-text-stroke: 1px black;
    text-shadow: 2px 2px #bf9b06
}

.emblem {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.emblem img {
    width:20vw;
}

.main-content {
    background-color: #EBE6C0;
    padding: 40px 0;
}

.main-content figure {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 25px;
}

.main-content figure img {
    width: 70%;
    border-radius: 15px;
}

.main-content figure figcaption {
    width: 70%;
    text-align: center;
    padding-top: 10px;
    font-size: 20px;
}

.club {
    display: flex;
    padding-top: 25px;
}

.club .officers,
.club .meetings {
    width: 50%;
    padding-left: 10vw;
    font-size: 20px;
}

.club .officers h2,
.club .meetings h2 {
    padding-left: 50px;
    padding-bottom: 20px;
}

.club .officers ul li,
.club .meetings ul li {
    list-style: none;
    padding-bottom: 10px;
}

.footer {
    width: 100%;
    background-color: #1D4F99;
    padding-bottom: 45px;
}

.footer a:link {
    color: #EBE6C0;
}

.footer a:visited {
    color: #ffe521;
}

.footer a:hover {
    color: #857500;
}

.copy {
    padding: 40px;
    color: #EBE6C0;
    text-align: center;
    font-size: 20px;
}

.lower-copy {
    display: flex;
    color: #EBE6C0;
}

.contact {
    padding-left: 2vw;
}

.contact {
    width: 50%;
    display: flex;
    flex-direction: column;
}

.contact ul li {
    list-style: none;
}

.contact h3 {
    padding-bottom: 15px;
}

.design-by {
    width: 50%;
    display: flex;
    justify-content: right;
    padding-right: 2vw;
}

.same-as-payer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    font-weight: 600;
}

.same-as-payer input {
    width: 18px;
    height: 18px;
}

.dues-page {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
}

@media (min-width: 900px) {
    .dues-page {
        max-width: 850px;
        margin-left: 6%;
        margin-right: auto;
        padding-left: 30px;
        padding-right: 30px;
    }
}

.membership-options legend {
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0 6px;
}

.membership-options label {
    display: block;
    margin: 10px 0;
    font-weight: 500;
}

.membership-options {
    margin-top: 12px;
    padding: 16px;
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    background: #fafafa;
}

.add-member-button {
    display: block;
    width: auto;
    margin-top: 1rem;
    padding: 16px 20px;
    font-size: 1.1rem;
    font-weight: 700;
    border: 2px solid #0057b8;
    border-radius: 8px;
    background: #fff;
    color: #0057b8;
    cursor: pointer;
}

.add-member-button:hover {
    background: #eef5ff;
}

.add-member-button:focus-visible,
.payment-button:focus-visible {
    outline: 3px solid #222;
    outline-offset: 3px;
}

.processing-fee-note {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid #0057b8;
    border-radius: 6px;
    background: #eef5ff;
    color: #17324d;
    line-height: 1.6;
}

.processing-fee-note strong {
    font-size: 1.1em;
}

.payment-button {
    display: block;
    width: auto;
    margin-top: 1.5rem;
    padding: 18px 24px;
    font-size: 1.2rem;
    font-weight: 700;
    border: 2px solid #0057b8;
    border-radius: 8px;
    background: #0057b8;
    color: #fff;
    cursor: pointer;
}

.payment-button:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

@media only screen and (max-width: 767px) {
    .club {
        flex-direction: column;
    }

    .club .officers,
    .club .meetings {
        width: 100%;
        padding-bottom: 45px;
        padding-left: 0;
        font-size: 20px;
        text-align: center;
    }

    .club .officers h2,
    .club .meetings h2 {
        padding-left: 0;
    }

    .lower-copy {
        flex-direction: column;
    }

    .contact {
        width: 100%;
        justify-content: center;
        align-items: center;
        padding: 15px 0;
    }

    .design-by {
        width: 100%;
        justify-content: center;
        padding: 15px 0;
    }

    .copy {
        padding: 40px 0 20px 0;
    }
}

/* Annual dues: scoped styles preserve the rest of the site. */
.dues-page {
    background: #f5f3e7;
    color: #182b40;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    line-height: 1.55;
    padding: 48px 24px 56px;
    color-scheme: light;
}

.dues-content { max-width: 780px; margin: 0 auto; }
.dues-intro { margin-bottom: 28px; }
.dues-eyebrow { color: #315475; font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.dues-intro h1 { color: #013e74; font-size: clamp(28px, 4vw, 38px); line-height: 1.2; margin-bottom: 12px; }
.dues-form { background: #fff; border: 1px solid #d5dce3; border-radius: 14px; padding: 32px; }
.dues-form h2 { color: #013e74; font-size: 24px; line-height: 1.3; margin-bottom: 8px; }
.dues-help { color: #46566a; margin-bottom: 28px; }
.dues-name-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 28px; }
.dues-field label { display: block; font-weight: 700; margin-bottom: 8px; }
.dues-field input {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 50px;
    border: 1px solid #738398;
    border-radius: 6px;
    padding: 10px 12px;
    font: inherit;
    background: #fff;
    color: #182b40;
}
.dues-options { border: 0; min-width: 0; }
.dues-options legend { font-weight: 700; margin-bottom: 12px; }
.dues-option {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    border: 2px solid #d5dce3;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 12px;
    cursor: pointer;
    background: #fff;
}
.dues-option:hover { border-color: #557a9f; }
.dues-option:has(input:checked) { border-color: #00338d; background: #f0f5fc; }
.dues-option input { width: 22px; height: 22px; accent-color: #00338d; }
.dues-option-text { display: flex; flex-direction: column; gap: 4px; }
.dues-option-text > span { font-size: 16px; color: #46566a; }
.dues-price { color: #013e74; font-size: 22px; white-space: nowrap; }
.dues-form input:focus-visible { outline: 3px solid #00338d; outline-offset: 3px; }
.dues-option:focus-within { outline: 3px solid #00338d; outline-offset: 3px; }
.dues-availability { font-size: 16px; color: #46566a; border-top: 1px solid #d5dce3; margin-top: 24px; padding-top: 18px; }

@media (max-width: 600px) {
    .dues-page { padding: 28px 16px 36px; }
    .dues-form { padding: 24px 18px; }
    .dues-name-fields { grid-template-columns: 1fr; gap: 18px; }
    .dues-option { grid-template-columns: 22px minmax(0, 1fr); gap: 10px 12px; padding: 16px; }
    .dues-price { grid-column: 2; }
}


/* Multiple memberships share one payment summary. */
.dues-member + .dues-member { margin-top: 28px; padding-top: 28px; border-top: 1px solid #d5dce3; }
.dues-member-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.dues-member-header h3 { font-size: 21px; color: #013e74; }
.dues-form button { font: inherit; min-height: 44px; cursor: pointer; border-radius: 6px; padding: 10px 16px; }
.dues-add { width: 100%; background: #00338d; color: #fff; border: 2px solid #00338d; margin-top: 12px; font-weight: 700 !important; }
.dues-add:hover { background: #00276c; }
.dues-remove { background: #fff; color: #8c2634; border: 1px solid #b4848b; font-size: 16px !important; }
.dues-remove:hover { background: #fff1f3; }
.dues-form button:focus-visible { outline: 3px solid #00338d; outline-offset: 3px; }
.dues-summary { margin-top: 32px; padding-top: 24px; border-top: 1px solid #d5dce3; }
.dues-summary-total { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; margin-top: 12px; }
.dues-summary-total strong { color: #013e74; font-size: 26px; }
.dues-summary-note { font-size: 16px; color: #46566a; margin-top: 8px; }

/* Validation feedback stays beside the editable dues form. */
.validation-error {
    border: 2px solid #a12622;
    border-radius: 6px;
    background: #fff4f3;
    padding: 16px;
    margin: 20px 0;
    color: #721b18;
}
.field-error { color: #a12622; font-weight: 600; }
input[aria-invalid="true"] { border: 2px solid #a12622; }
