/* ==========================================================================
   1. RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f4f6f9;
    background: linear-gradient(to bottom, #f4f6f9, #eef2f7);
    color: #111827;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

/* ==========================================================================
   2. GLOBAL LAYOUT
   ========================================================================== */
.container {
    max-width: 1150px;
    margin: auto;
    padding: 0 20px;
}

/* Header */
.header {
    height: 58px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.logo {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

/* Footer */
.footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 18px 0;
    margin-top: 40px;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    font-size: 13px;
    color: #6b7280;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #6b7280;
    font-size: 13px;
    white-space: nowrap;
}

.footer-links a:hover {
    color: #111827;
}

.footer-links a:not(:last-child)::after {
    content: "|";
    margin-left: 12px;
    color: #d1d5db;
}

/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */
.hero {
    text-align: center;
    padding: 80px 20px 40px;
}

.hero h1 {
    font-size: 42px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.hero p {
    margin-top: 12px;
    color: #6b7280;
    max-width: 650px;
    margin-inline: auto;
    font-size: 15px;
}

/* ==========================================================================
   4. COMPONENTS (Filters, Cards, Search)
   ========================================================================== */

/* Filter Buttons */
.filters {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.filter-btn {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}

.filter-btn.active {
    background: #111827;
    color: white;
}

/* Cards Grid */
.cards {
    max-width: 1150px;
    margin: 50px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    justify-content: center;
    gap: 24px;
}

/* Card Base */
.card {
    position: relative;
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.25s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 30px rgba(0,0,0,0.06);
}

.card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.card p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
}

/* Card - Coming Soon State */
.card-soon {
    background: #f3f4f6;
    cursor: not-allowed;
}

.soon-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #111827;
    color: #ffffff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
}

/* Search Dropdown */
.search-container {
    position: relative;
}

.search-results {
    position: absolute;
    top: 105%;
    width: 100%;
    background: white;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    max-height: 220px;
    overflow-y: auto;
    z-index: 100;
}

.search-item {
    padding: 10px;
    cursor: pointer;
}

.search-item:hover {
    background: #f3f4f6;
}

/* ==========================================================================
   5. PAGE SECTIONS (Why, Legal, Forms)
   ========================================================================== */

/* Why Section */
.why-section {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: left;
}

.why-section h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.why-section p {
    color: #6b7280;
    line-height: 1.6;
}

/* Policy/Contact Main Card */
.policy-card {
    max-width: 650px;
    width: 100%;
    margin: 40px auto;
    padding: 28px 24px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.policy-card h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.policy-card h2 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 8px;
}

.policy-card p {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 16px;
}

.policy-card ul {
    padding-left: 18px;
}

.policy-card li {
    margin-bottom: 6px;
    color: #4b5563;
}

.policy-subtext {
    color: #6b7280;
    font-size: 15.5px;
    margin-bottom: 25px;
}

/* Buttons & Links in Policy */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: #f3f4f6;
    color: #111827;
}

/* Highlight Box */
.highlight-box {
    margin-top: 28px;
    padding: 28px;
    border-radius: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    text-align: center;
    transition: 0.2s;
}

.highlight-box:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
}

.highlight-box h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.highlight-box .email {
    display: inline-block;
    font-size: 19px;
    font-weight: 600;
    color: #111827;
    letter-spacing: 0.3px;
}

.highlight-box .email:hover {
    color: #2563eb;
}

.highlight-box p {
    font-size: 14px;
    color: #6b7280;
    margin-top: 6px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

label {
    font-size: 14px;
    margin-bottom: 6px;
    display: block;
}

.input-field, 
select {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    font-size: 14px;
    transition: all 0.25s ease;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.input-field:focus, 
select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
    outline: none;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    background: #0f172a;
    color: white;
    font-weight: 600;
    border: none;
    cursor: pointer;
    margin-top: 15px;
    transition: 0.2s;
}

.submit-btn:hover {
    background: #020617;
}

/* ==========================================================================
   6. RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Tablets and below (900px) */
@media (max-width: 900px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Standard (768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .header {
        height: 55px;
    }

    .logo {
        font-size: 16px;
        text-align: center;
        width: 100%;
    }

    .hero {
        padding: 50px 10px 25px;
    }

    .hero h1 {
        font-size: 26px;
        line-height: 1.3;
    }

    .hero p {
        font-size: 14px;
        padding: 0 5px;
    }

    .filters {
        flex-wrap: wrap;
        gap: 8px;
    }

    .filter-btn {
        font-size: 13px;
        padding: 6px 14px;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 25px;
    }

    .card {
        width: 100%;
        padding: 18px;
        min-height: auto;
    }

    .card h3 {
        font-size: 16px;
    }

    .card p {
        font-size: 13px;
    }

    .why-section {
        margin: 40px auto;
        text-align: center;
    }

    .why-section h2 {
        font-size: 20px;
    }

    .policy-card {
        margin: 20px 12px;
        padding: 18px;
        border-radius: 16px;
        width: calc(100% - 24px); /* Fixed width for mobile */
    }

    .policy-card h1 {
        font-size: 24px;
        line-height: 1.3;
    }

    label {
        font-size: 13px;
    }

    .input-field, select {
        padding: 12px 14px;
    }

    .date-row {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .date-field {
        width: 100%;
    }

    .form-group {
        margin-bottom: 22px;
    }

    .footer .container {
        flex-direction: column;
        gap: 8px;
    }

    .footer-links {
        justify-content: center;
        gap: 10px;
    }

    input[type="date"] {
        min-height: 45px;
    }
}

/* Small Mobile (600px) */
@media (max-width: 600px) {
    .cards {
        grid-template-columns: 1fr;
    }
    
    .soon-badge {
        font-size: 10px;
        padding: 4px 8px;
    }
}