/*
 * css/eligibility.css
 * Premium, dynamic stylesheet for the WBP & KP Eligibility & PMT/PET Standards page
 * Features glassmorphism, interactive calculator styles, responsive data tables, and animations
 */

:root {
    --elig-primary: #2563eb;
    --elig-primary-dark: #1e40af;
    --elig-success: #10b981;
    --elig-warning: #f59e0b;
    --elig-danger: #ef4444;
    --elig-purple: #8b5cf6;
    --elig-dark: #0f172a;
    --elig-text: #1e293b;
    --elig-text-muted: #64748b;
    --elig-border: #e2e8f0;
    --elig-card: #ffffff;
    --elig-bg-alt: #f8fafc;
    --elig-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.07);
    --elig-shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.14);
}

.eligibility-wrapper {
    max-width: 1320px;
    margin: 0 auto;
    padding: 1.5rem 2rem 4rem;
    color: var(--elig-text);
    font-family: 'Inter', sans-serif;
}

/* Breadcrumb */
.elig-breadcrumb {
    font-size: 0.88rem;
    color: var(--elig-text-muted);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.elig-breadcrumb a {
    color: var(--elig-primary);
    text-decoration: none;
    font-weight: 600;
}
.elig-breadcrumb a:hover {
    text-decoration: underline;
}

/* Hero Section */
.elig-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #1d4ed8 100%);
    border-radius: 24px;
    padding: 38px 44px;
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.3);
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.elig-hero::after {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.elig-hero-left {
    z-index: 2;
    max-width: 760px;
}

.elig-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 16px;
    backdrop-filter: blur(6px);
}

.elig-hero h1 {
    font-size: 2.3rem;
    font-weight: 900;
    margin: 0 0 14px 0;
    line-height: 1.25;
}

.elig-hero p {
    font-size: 1.08rem;
    color: #cbd5e1;
    margin: 0 0 26px 0;
    line-height: 1.6;
    font-weight: 500;
}

.elig-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.elig-btn-gold {
    background: #f59e0b;
    color: #ffffff;
    padding: 13px 28px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.98rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}
.elig-btn-gold:hover {
    background: #d97706;
    transform: translateY(-2px);
    color: #ffffff;
}

.elig-btn-outline {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 13px 26px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
}
.elig-btn-outline:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
    color: #ffffff;
}

.elig-hero-right {
    z-index: 2;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 24px 30px;
    backdrop-filter: blur(12px);
    text-align: center;
    min-width: 240px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}
.elig-hero-right .hero-icon {
    font-size: 3.5rem;
    color: #6ee7b7;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}
.elig-hero-right h3 {
    margin: 0 0 6px 0;
    font-size: 1.25rem;
    font-weight: 800;
}
.elig-hero-right p {
    margin: 0;
    font-size: 0.85rem;
    color: #e2e8f0;
}

/* Interactive Calculator Section */
.elig-calc-section {
    background: #ffffff;
    border: 1px solid var(--elig-border);
    border-radius: 26px;
    padding: 36px;
    box-shadow: var(--elig-shadow-lg);
    margin-bottom: 44px;
    position: relative;
    overflow: hidden;
    border-top: 6px solid var(--elig-primary);
}

.calc-header {
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
}
.calc-header h2 {
    margin: 0 0 6px 0;
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--elig-text);
    display: flex;
    align-items: center;
    gap: 12px;
}
.calc-header p {
    margin: 0;
    color: var(--elig-text-muted);
    font-size: 0.98rem;
    font-weight: 500;
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    margin-bottom: 28px;
}

.calc-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.calc-form-group label {
    font-weight: 700;
    font-size: 0.92rem;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 6px;
}

.calc-select, .calc-input {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid var(--elig-border);
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--elig-text);
    background: var(--elig-bg-alt);
    transition: all 0.2s;
    outline: none;
    box-sizing: border-box;
}

.calc-select:focus, .calc-input:focus {
    border-color: var(--elig-primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.calc-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 24px;
}

.btn-calc-submit {
    background: var(--elig-primary);
    color: white;
    border: none;
    padding: 14px 36px;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}
.btn-calc-submit:hover {
    background: var(--elig-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.45);
}

.btn-calc-reset {
    background: var(--elig-bg-alt);
    color: var(--elig-text-muted);
    border: 1px solid var(--elig-border);
    padding: 14px 22px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-calc-reset:hover {
    background: #e2e8f0;
    color: var(--elig-text);
}

/* Result Box */
.calc-result-box {
    border-radius: 18px;
    padding: 24px 28px;
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.4s ease;
}

.calc-result-box.eligible {
    background: #ecfdf5;
    border: 2px solid #10b981;
    color: #065f46;
}

.calc-result-box.not-eligible {
    background: #fef2f2;
    border: 2px solid #ef4444;
    color: #991b1b;
}

.result-icon-area {
    font-size: 2.8rem;
    flex-shrink: 0;
}
.calc-result-box.eligible .result-icon-area { color: #10b981; }
.calc-result-box.not-eligible .result-icon-area { color: #ef4444; }

.result-text-area h3 {
    margin: 0 0 6px 0;
    font-size: 1.25rem;
    font-weight: 900;
}
.result-text-area p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 600;
}
.result-details-list {
    margin: 12px 0 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.result-details-list li {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Section Titles */
.sec-title-wrap {
    margin-bottom: 26px;
}
.sec-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--elig-text);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.sec-title .bar {
    width: 6px;
    height: 30px;
    background: var(--elig-primary);
    border-radius: 4px;
}
.sec-desc {
    color: var(--elig-text-muted);
    font-size: 0.98rem;
    margin: 0 0 0 18px;
    font-weight: 500;
}

/* Eligibility Criteria Cards Grid */
.elig-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 26px;
    margin-bottom: 46px;
}

.elig-info-card {
    background: #ffffff;
    border: 1px solid var(--elig-border);
    border-radius: 22px;
    padding: 28px;
    box-shadow: var(--elig-shadow);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.elig-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--elig-shadow-lg);
    border-color: #93c5fd;
}

.card-icon-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--elig-border);
}

.icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    font-weight: 900;
}

.box-blue { background: #eff6ff; color: #2563eb; }
.box-green { background: #ecfdf5; color: #10b981; }
.box-purple { background: #f5f3ff; color: #8b5cf6; }
.box-orange { background: #fff7ed; color: #f97316; }
.box-red { background: #fef2f2; color: #ef4444; }

.card-icon-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--elig-text);
}
.card-icon-header span {
    font-size: 0.82rem;
    color: var(--elig-text-muted);
    font-weight: 600;
    display: block;
    margin-top: 3px;
}

.card-body-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #334155;
    flex-grow: 1;
}

.age-relax-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.age-relax-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--elig-bg-alt);
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    border: 1px solid var(--elig-border);
}
.age-relax-list li span.badge {
    background: #dcfce7;
    color: #15803d;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
}

/* Physical Standards Tables Section */
.table-card {
    background: #ffffff;
    border: 1px solid var(--elig-border);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--elig-shadow);
    margin-bottom: 44px;
}

.table-responsive {
    overflow-x: auto;
    margin-top: 20px;
}

.pmt-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--elig-border);
    border-radius: 14px;
    overflow: hidden;
}

.pmt-table th {
    background: #0f172a;
    color: white;
    padding: 16px 18px;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 800;
    border-bottom: 2px solid var(--elig-border);
}

.pmt-table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--elig-border);
    font-size: 0.92rem;
    font-weight: 600;
    color: #334155;
    vertical-align: middle;
}

.pmt-table tr:last-child td {
    border-bottom: none;
}

.pmt-table tbody tr {
    transition: background 0.2s;
}
.pmt-table tbody tr:hover {
    background: #f1f5f9;
}

.badge-gender {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 800;
}
.gender-male { background: #eff6ff; color: #1d4ed8; }
.gender-female { background: #fdf2f8; color: #ec4899; }
.gender-third { background: #f0fdf4; color: #15803d; }

/* PET Running Standards Cards */
.pet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
    margin-bottom: 48px;
}

.pet-card {
    background: #ffffff;
    border: 1px solid var(--elig-border);
    border-radius: 22px;
    padding: 26px;
    box-shadow: var(--elig-shadow);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.pet-card:hover {
    transform: translateY(-4px);
    border-color: #10b981;
}

.pet-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.pet-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}
.pet-title h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
}
.pet-title span {
    font-size: 0.82rem;
    color: var(--elig-text-muted);
}

.pet-metrics {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}
.metric-box {
    flex: 1;
    background: var(--elig-bg-alt);
    border: 1px solid var(--elig-border);
    border-radius: 14px;
    padding: 12px;
    text-align: center;
}
.metric-box label {
    font-size: 0.75rem;
    color: var(--elig-text-muted);
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}
.metric-box strong {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--elig-primary);
}

.pet-note {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
    background: #fefce8;
    border: 1px solid #fef08a;
    padding: 10px 14px;
    border-radius: 10px;
    margin-top: auto;
}

/* FAQ Accordion */
.elig-faq-section {
    background: #ffffff;
    border: 1px solid var(--elig-border);
    border-radius: 24px;
    padding: 34px 40px;
    box-shadow: var(--elig-shadow);
    margin-bottom: 48px;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 22px;
}
.faq-item {
    border: 1px solid var(--elig-border);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.2s;
}
.faq-item:hover { border-color: #93c5fd; }
.faq-btn {
    width: 100%;
    background: #f8fafc;
    padding: 18px 22px;
    text-align: left;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.03rem;
    font-weight: 800;
    color: var(--elig-text);
    cursor: pointer;
    transition: background 0.2s;
}
.faq-btn:hover { background: #f1f5f9; }
.faq-btn i.fa-chevron-down {
    transition: transform 0.3s;
    color: #64748b;
}
.faq-btn.active i.fa-chevron-down {
    transform: rotate(180deg);
    color: var(--elig-primary);
}
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out;
    background: #ffffff;
}
.faq-content p {
    padding: 14px 22px 22px;
    margin: 0;
    font-size: 0.93rem;
    line-height: 1.6;
    color: #475569;
    font-weight: 500;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .elig-hero { flex-direction: column; align-items: flex-start; }
    .elig-hero-right { width: 100%; box-sizing: border-box; }
}

@media (max-width: 768px) {
    .eligibility-wrapper { padding: 1rem 1rem 3rem; }
    .elig-hero { padding: 24px; }
    .elig-hero h1 { font-size: 1.75rem; }
    .calc-header { flex-direction: column; }
    .elig-calc-section { padding: 24px 20px; }
    .table-card { padding: 20px 14px; }
    .elig-faq-section { padding: 24px 18px; }
}
