﻿/* =========================================
   BASE
========================================= */

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    background: #edf1f5;
    font-family: "Rubik", sans-serif;
}

h4 {
    font-weight: 500;
}

/* =========================================
   RESET / UTILITIES
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.hr {
    margin: 8px 0px;
}

/* =========================================
   FORMS
========================================= */

.form-base {
    border: 10px;
    border-radius: 7px;
    min-height: 60vh;
    margin-top: 10px;
    padding: 30px;
    background-color: #F2F3F4;
}

.form-control {
    line-height: 1.5;
}

.btn-custom-font {
    font-weight: bold;
    font-size: 12px;
}

/* =========================================
   SAFE CUSTOM COLORS (NO BOOTSTRAP OVERRIDES)
========================================= */

.bg-gold {
    background-color: white;
    color: black;
    font-weight: 300;
}

.bg-navy {
    background-color: #121261;
    height: 20px;
    color: white;
    font-weight: 300;
}

/* FIX: do NOT override Bootstrap .bg-light */
.custom-bg-light {
    background-color: #EDE4E4;
}

/* FIX: do NOT override Bootstrap .text-dark */
.custom-text-dark {
    color: #02021F !important;
}

/* =========================================
   GENERAL UI
========================================= */

.btn-quick-link {
    min-width: 215px;
    font-weight: bold;
}

.nav-link {
    font-weight: 400;
    font-size: 14px;
}

.large {
    font-size: 16px;
}

.text-danger {
    color: red;
    font-size: 10px;
    font-weight: bold;
}

.bg-policy-summary {
    background-color: white;
    border: 1px;
    border-radius: 3px;
}

.policy-summary-header {
    border: 10px;
    border-radius: 7px;
    background-color: white;
    text-align: center;
}

.card-width {
    width: 100%;
    margin-right: 10px;
}

.logo-img {
    max-height: 60vh;
    object-fit: contain;
}

.welcome-text {
    font-size: 2rem;
    font-weight: bold;
}

.full-height {
    min-height: 100vh;
}

.custom-min-vh-90 {
    min-height: 75vh;
}

.wide-nav-item {
    min-width: 120px;
}

/* =========================================
   VALIDATION
========================================= */

.validation-summary-valid ul,
.validation-summary-errors ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}

/* =========================================
   SPACING
========================================= */

.mt-6 {
    margin-top: 6rem !important;
}

.mt-7 {
    margin-top: 8rem !important;
}

.mt-8 {
    margin-top: 10rem !important;
}

.mt-9 {
    margin-top: 12rem !important;
}

/* =========================================
   MENU SYSTEM
========================================= */

.menu-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.menu-hero {
    background: linear-gradient(135deg, #02021F 0%, #0d6efd 100%);
    color: #fff;
    border-radius: 1rem;
}

.menu-card {
    border: 0;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
    background: rgba(255,255,255,.85);
    backdrop-filter: saturate(180%) blur(8px);
}

    .menu-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(0,0,0,.08);
    }

    .menu-card .card-header {
        background: linear-gradient(135deg, #02021F 0%, #0d6efd 100%) !important;
        color: #fff !important;
        border: 0;
        padding: 1rem 1.25rem .5rem;
    }

.menu-section-title {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 700;
}

.menu-actions {
    display: grid;
    gap: .75rem;
}

.menu-action {
    position: relative;
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .6rem .85rem .6rem 2.5rem;
    border-radius: .5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    background: #fff;
    border: 1px solid rgba(13,110,253,.25);
    box-shadow: 0 8px 20px rgba(0,0,0,.06);
}

    .menu-action:hover {
        box-shadow: 0 8px 20px rgba(0,0,0,.08);
    }

/* =========================================
   TABLES (CUSTOM DARK)
========================================= */

.table-dark {
    --bs-table-color: #fff;
    --bs-table-bg: #02021F;
}

/* =========================================
   NAFUPA DESIGN SYSTEM
========================================= */

:root {
    --conafpa-navy: #0b2f5b;
    --conafpa-teal: #58c6d5;
    --conafpa-light: #f4f8fb;
    --conafpa-muted: #6c757d;
}

/* HERO */
.hero-section {
    background: linear-gradient(135deg, rgba(11,47,91,0.95), rgba(88,198,213,0.88)), url('/images/conafpa-hero.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    border-radius: 18px;
    padding: 80px 50px;
    margin-top: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.1rem;
    max-width: 700px;
}

/* SECTIONS */
.section-block {
    margin: 45px 0;
}

.section-title {
    color: var(--conafpa-navy);
    font-weight: 700;
}

.section-subtitle {
    color: var(--conafpa-muted);
}

/* CARDS */
.info-card {
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* LEADERS */
.leader-card {
    text-align: center;
    padding: 1.25rem;
    transition: all 0.2s ease;
}

    .leader-card:hover {
        transform: translateY(-5px);
    }

.leader-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.leader-role {
    color: var(--conafpa-teal);
    font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-section {
        padding: 45px 25px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .leader-image {
        width: 100px;
        height: 100px;
    }
}

.membership-info-card {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
}

.membership-info-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    background: rgba(88, 198, 213, 0.16);
    color: var(--conafpa-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.membership-benefit-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1rem;
}

.membership-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(11, 47, 91, 0.08);
    color: #334155;
    font-size: 0.96rem;
    line-height: 1.5;
}

.membership-check {
    color: #16a34a;
    font-size: 1rem;
    line-height: 1.4;
    margin-top: 0.08rem;
}

@media (max-width: 991.98px) {
    .membership-info-card {
        margin-top: 0.5rem;
    }
}

/* ===== COMPACT HERO ===== */
.hero-compact {
    padding: 25px 25px !important;
    border-radius: 14px;
}

    /* Smaller title */
    .hero-compact h4 {
        font-size: 1.4rem;
    }

/* ===== SMALL INFO CARD ===== */
.membership-info-card-sm {
    border-radius: 14px;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

/* Smaller icon */
.membership-info-icon-sm {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(88,198,213,0.15);
    color: var(--conafpa-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* Mobile tightening */
@media (max-width: 768px) {
    .hero-compact {
        padding: 20px 15px !important;
    }
}

.membership-payment-card {
    border-radius: 14px;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.membership-payment-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(88,198,213,0.15);
    color: var(--conafpa-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.membership-payment-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--conafpa-navy);
    line-height: 1.2;
}

.membership-payment-subtitle {
    font-size: 0.78rem;
    color: var(--conafpa-muted);
    line-height: 1.4;
    margin-top: 2px;
}

.membership-fee-box {
    background: linear-gradient(135deg, rgba(11,47,91,0.06), rgba(88,198,213,0.10));
    border: 1px solid rgba(11,47,91,0.08);
    border-radius: 12px;
    padding: 0.85rem 1rem;
}

.membership-fee-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--conafpa-muted);
    margin-bottom: 0.2rem;
}

.membership-fee-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--conafpa-navy);
    line-height: 1.1;
}

.membership-bank-details {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.membership-bank-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid rgba(11,47,91,0.08);
}

.membership-bank-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--conafpa-muted);
    min-width: 110px;
}

.membership-bank-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1f2937;
    text-align: right;
    word-break: break-word;
}

.membership-payment-note {
    font-size: 0.76rem;
    line-height: 1.45;
    color: var(--conafpa-muted);
    background: rgba(88,198,213,0.08);
    border-radius: 10px;
    padding: 0.7rem 0.85rem;
}

@media (max-width: 991.98px) {
    .membership-bank-row {
        flex-direction: column;
        gap: 0.2rem;
    }

    .membership-bank-value {
        text-align: left;
    }
}

/* ===== ULTRA COMPACT HERO ===== */
.hero-ultra-compact {
    padding: 12px 18px !important;
    border-radius: 12px;
}

    /* Reduce title size */
    .hero-ultra-compact h5 {
        font-size: 1.05rem;
    }

/* ===== MINI PAYMENT CARD ===== */
.membership-payment-card-compact {
    background: rgba(255,255,255,0.95);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.8rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

/* Inline bank details */
.membership-bank-mini {
    display: flex;
    gap: 6px;
    font-size: 0.75rem;
    color: #6c757d;
}

/* Reference */
.membership-ref-mini {
    font-size: 0.72rem;
    color: #495057;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .hero-ultra-compact {
        padding: 10px 12px !important;
    }

    .membership-payment-card-compact {
        margin-top: 5px;
    }
}
