/* style.css - Find My Bank Pro 2026 */

/* --- 1. GLOBAL VARIABLES & RESET --- */
:root {
    --primary: #0056b3;
    /* Trust Blue (SBI Type) */
    --primary-dark: #003d80;
    --accent: #f59e0b;
    /* Action Orange */
    --bg-light: #f8fafc;
    /* Light Gray BG */
    --white: #ffffff;
    --text-dark: #1e293b;
    /* Dark Slate */
    --text-muted: #64748b;
    /* Muted Text */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* --- 2. HERO SECTION (Full Screen Banner) --- */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    min-height: 50vh;
    /* Adjusted for better visibility */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    color: var(--white);
    position: relative;
    border-radius: 0 0 30px 30px;
    /* Modern Curve */
}

/* Curve Effect at Bottom */
.hero::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--bg-light);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* --- 3. SEARCH BOX (Floating) --- */
.search-box {
    background: var(--white);
    padding: 0.6rem;
    border-radius: 50px;
    display: flex;
    width: 100%;
    max-width: 650px;
    position: relative;
    z-index: 10;
    /* Above the curve */
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-box input {
    flex: 1;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
    outline: none;
    border-radius: 50px;
    color: var(--text-dark);
}

.search-box button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

.search-box button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* --- 4. MAIN CONTAINER --- */
.container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 5;
    flex: 1;
    /* Pushes footer down */
}

/* Section Titles */
.section-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 3.5rem 0 1.5rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 5px solid var(--primary);
    padding-left: 15px;
}

/* --- 5. BANK GRID & CARDS (Logo Style) --- */
/* --- 5. BANK GRID & CARDS --- */
.bank-grid {
    display: grid;
    /* Desktop Default: 3 columns */
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Card design remains same... */
.bank-card {
    background: var(--white);
    padding: 1.5rem 1rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bank-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.bank-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 12px;
    transition: transform 0.3s;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.bank-card:hover .bank-logo {
    transform: scale(1.1);
}

.bank-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-muted);
}

/* --- 6. FILTER & RESULT SECTION --- */
#filterSection {
    display: none;
    /* Hidden by default */
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 3rem;
    border: 1px solid #e2e8f0;
    animation: slideUp 0.4s ease-out;
}

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}

select {
    width: 100%;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    background: var(--white);
    cursor: pointer;
    transition: 0.2s;
}

select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

/* Result Ticket Style */
#resultTicket {
    display: none;
    margin-top: 2.5rem;
    background: #f0f9ff;
    border: 2px dashed var(--primary);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
}

#resultTicket::before {
    content: 'VERIFIED';
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary);
    color: white;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: bold;
}

.ticket-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 0.8rem;
}

.ticket-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ticket-row span {
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
}

.ticket-row strong {
    color: var(--text-dark);
    font-size: 1.1rem;
    text-align: right;
}

/* --- 7. FOOTER STYLES (Professional) --- */
footer {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #94a3b8;
    padding: 3rem 1.5rem;
    text-align: center;
    border-top: 4px solid var(--primary);
    font-size: 0.95rem;
    margin-top: 4rem;
}

footer p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

footer a {
    color: var(--white);
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

footer a:hover {
    color: #3b82f6;
    transform: translateY(-2px);
    text-shadow: 0 4px 10px rgba(59, 130, 246, 0.5);
}

footer strong {
    font-weight: 700;
    color: #ffffff;
}

/* Divider Line */
footer p:nth-last-child(2) {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- 8. ANIMATIONS & RESPONSIVE --- */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .ticket-row span {
        font-size: 0.8rem;
    }

    .ticket-row strong {
        font-size: 0.8rem;
    }


    .search-box {
        flex-direction: column;
        background: transparent;
        box-shadow: none;
        border: none;
    }

    .search-box input {
        width: 100%;
        margin-bottom: 12px;
        box-shadow: var(--shadow-lg);
        font-size: 0.8rem;
        font-weight: 700;
    }

    .search-box button {
        width: 100%;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
    }

    .container {
        padding: 0 1rem;
    }

    .bank-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on mobile */
    }
}

#loadingOverlay {
    display: none;
    /* શરૂઆતમાં બંધ રહેશે */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.92);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.3s ease;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #e2e8f0;
    border-top: 6px solid #0056b3;
    /* Primary Blue */
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 1.2rem;
    color: #1e293b;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

/* --- HOW TO USE SECTION CSS --- */
.how-it-works {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.step-box {
    flex: 1;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    min-width: 250px;
    border: 1px solid #eef2f6;
}

.step-box:hover {
    transform: translateY(-5px);
    border-color: #0056b3;
}

.step-icon {
    width: 50px;
    height: 50px;
    background: #e6f0fa;
    color: #0056b3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    font-size: 1.2rem;
}

.step-title {
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.step-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}