/* West Bretton CC - Members Area UI helpers
   Keeps account-page spacing consistent even when Tailwind utilities
   are not present in the pre-built production CSS bundle. */

.account-card {
    padding: 2rem;
}

.account-notice {
    padding: 1.25rem 1.375rem;
    border-radius: 0.75rem;
    line-height: 1.6;
}

.account-notice h2,
.account-notice p,
.account-notice ul {
    margin-top: 0;
    margin-bottom: 0;
}

.account-notice p + p,
.account-notice h2 + p,
.account-notice p + ul,
.account-notice h2 + ul {
    margin-top: 0.65rem;
}

.account-notice ul {
    padding-left: 1.25rem;
}

.account-form-field + .account-form-field {
    margin-top: 1.25rem;
}

.account-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.8rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.6rem;
    background: #fff;
    line-height: 1.35;
}

.account-input:focus {
    outline: 2px solid rgba(249, 115, 22, 0.28);
    outline-offset: 1px;
    border-color: #f97316;
}

.account-actions {
    margin-top: 1.5rem;
}

.account-actions > * + * {
    margin-top: 0.75rem;
}

@media (max-width: 640px) {
    .account-card {
        padding: 1.5rem;
    }

    .account-notice {
        padding: 1rem 1.125rem;
    }
}

/* Account layout */

.account-form-wrap {
    width: calc(100% - 2rem);
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.account-card {
    padding: 2rem;
}


/* Form fields */

.account-field {
    margin-top: 1.25rem;
}

.account-field:first-child {
    margin-top: 0;
}

.account-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1E293B;
}

.account-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.8rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #1E293B;
    font-size: 1rem;
    line-height: 1.5;
}

.account-input:focus {
    outline: none;
    border-color: #F97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}

.account-input:disabled {
    background: #f3f4f6;
    color: #64748b;
    cursor: not-allowed;
}


/* Status / confirmation boxes */

.account-notice {
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid;
    line-height: 1.6;
}

.account-notice p {
    margin-bottom: 0;
}

.account-notice p + p {
    margin-top: 0.75rem;
}

.account-notice--success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.account-notice--error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.account-notice--info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}


/* Mobile */

@media (max-width: 640px) {

    .account-card {
        padding: 1.5rem;
    }

    .account-form-wrap {
        width: calc(100% - 1rem);
    }
}
/* =========================================================
   Members Area Dashboard
   ========================================================= */

.account-dashboard-main {
    padding: 3rem 1rem 4rem;
}

.account-dashboard-wrap {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
}

.account-dashboard-heading {
    margin-bottom: 2rem;
}

.account-dashboard-heading h1 {
    margin: 0.5rem 0 0;
    color: #1E293B;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.account-dashboard-heading p {
    margin: 0.75rem 0 0;
    color: #64748b;
    font-size: 1rem;
}

.dashboard-profile-prompt {
    margin-bottom: 1.5rem;
}

.dashboard-notice-link {
    display: inline-block;
    margin-top: 0.9rem;
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: none;
}

.dashboard-notice-link:hover {
    text-decoration: underline;
}


/* Summary cards */

.dashboard-status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.dashboard-status-card {
    padding: 1.4rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.dashboard-status-card-top {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.dashboard-status-icon {
    font-size: 1.2rem;
}

.dashboard-status-label {
    color: #1E293B;
    font-weight: 700;
}

.dashboard-status-card p {
    margin: 0.75rem 0 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}


/* Status pills */

.dashboard-status {
    display: inline-block;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.dashboard-status--success {
    background: #dcfce7;
    color: #166534;
}

.dashboard-status--warning {
    background: #fff7ed;
    color: #c2410c;
}

.dashboard-status--error {
    background: #fee2e2;
    color: #b91c1c;
}

.dashboard-status--muted {
    background: #f1f5f9;
    color: #475569;
}


/* Dashboard action cards */

.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.dashboard-action-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 105px;
    padding: 1.25rem 3rem 1.25rem 1.25rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    color: #1E293B;
    text-decoration: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}

a.dashboard-action-card:hover {
    border-color: #F97316;
    box-shadow: 0 5px 15px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.dashboard-action-icon {
    flex: 0 0 auto;
    font-size: 1.65rem;
}

.dashboard-action-card strong {
    display: block;
    color: #1E293B;
    font-size: 1rem;
}

.dashboard-action-card p {
    margin: 0.35rem 0 0;
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.45;
}

.dashboard-action-arrow {
    position: absolute;
    right: 1.25rem;
    color: #F97316;
    font-size: 1.4rem;
    font-weight: 700;
}

.dashboard-action-card--disabled {
    opacity: 0.65;
}


/* Signed-in footer */

.dashboard-account-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.25rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
}

.dashboard-account-footer span {
    display: block;
    color: #64748b;
    font-size: 0.8rem;
}

.dashboard-account-footer strong {
    color: #1E293B;
    font-size: 0.9rem;
}

.dashboard-signout {
    padding: 0.65rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #1E293B;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.dashboard-signout:hover {
    border-color: #F97316;
    color: #F97316;
}


/* Responsive dashboard */

@media (max-width: 800px) {

    .dashboard-status-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {

    .account-dashboard-main {
        padding: 2rem 1rem 3rem;
    }

    .account-dashboard-heading h1 {
        font-size: 1.8rem;
    }

    .dashboard-account-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-signout {
        width: 100%;
    }

    .dashboard-account-footer form {
        width: 100%;
    }
}

/* =========================================================
   Membership
   ========================================================= */

.membership-page-wrap {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.membership-notice {
    margin-bottom: 1.5rem;
}

.membership-notice ul {
    margin: 0.75rem 0 0;
    padding-left: 1.25rem;
}

.membership-person-summary {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
}

.membership-person-summary span,
.membership-summary-grid span,
.membership-small-label {
    display: block;
    margin-bottom: 0.3rem;
    color: #64748b;
    font-size: 0.78rem;
}

.membership-person-summary strong {
    color: #1E293B;
}

.membership-options {
    display: grid;
    gap: 1rem;
}

.membership-option {
    display: block;
    cursor: pointer;
}

.membership-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.membership-option-body {
    padding: 1.35rem 1.5rem;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 0.9rem;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.membership-option:hover .membership-option-body {
    border-color: #fdba74;
}

.membership-option input:checked + .membership-option-body {
    border-color: #F97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.membership-option-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.membership-option-heading strong {
    color: #1E293B;
    font-size: 1.05rem;
}

.membership-option-heading span {
    color: #F97316;
    font-size: 1.1rem;
    font-weight: 700;
}

.membership-option-body p {
    margin: 0.5rem 0 0;
    color: #64748b;
    font-size: 0.9rem;
}

.membership-option-body small {
    display: block;
    margin-top: 0.65rem;
    color: #475569;
}

.membership-terms {
    margin-top: 1.5rem;
    padding: 1.1rem 1.25rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.55;
}

.membership-terms p {
    margin: 0;
}

.membership-terms p + p {
    margin-top: 0.75rem;
}

.membership-submit {
    display: block;
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.85rem 1.25rem;
    border-radius: 0.6rem;
}

.membership-current-card {
    padding: 1.75rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.membership-current-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.membership-current-top h2 {
    margin: 0;
    color: #1E293B;
    font-size: 1.5rem;
}

.membership-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.membership-summary-grid strong {
    color: #1E293B;
}

.membership-payment-next {
    margin-top: 1.5rem;
    padding: 1.1rem 1.25rem;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 0.75rem;
    color: #9a3412;
}

.membership-payment-next p {
    margin: 0.4rem 0 0;
    font-size: 0.9rem;
}

.membership-back {
    margin-top: 1.5rem;
    text-align: center;
}

.membership-back a {
    color: #F97316;
    font-weight: 600;
    text-decoration: none;
}

.membership-back a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {

    .membership-person-summary {
        flex-direction: column;
        gap: 1rem;
    }

    .membership-summary-grid {
        grid-template-columns: 1fr;
    }

    .membership-current-top {
        flex-direction: column;
    }
}

/* Add to /assets/css/account.css */

.membership-season-block {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.membership-season-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.membership-season-heading h2 {
    margin: 0;
    color: #1E293B;
    font-size: 1.5rem;
}

.membership-season-heading p {
    margin: 0.45rem 0 0;
    color: #64748b;
    line-height: 1.5;
}

.membership-free-badge {
    display: inline-block;
    flex: 0 0 auto;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 0.8rem;
    font-weight: 700;
}

.membership-season-block .membership-current-card {
    box-shadow: none;
}

.membership-payment-form {
    margin-top: 1rem;
}

@media (max-width: 640px) {
    .membership-season-block {
        padding: 1.1rem;
    }

    .membership-season-heading {
        flex-direction: column;
    }
}
