/* ============================================
   Bank Job Eligibility Checker – Custom Styles
   ============================================ */

/* ---- Self-hosted Inter Font (WOFF2) ---- */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/inter-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/inter-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/inter-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/inter-700.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../fonts/inter-800.woff2') format('woff2');
}

/* ---- Base / Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; }

/* ---- Animated gradient hero ---- */
.hero-gradient {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 40%, #2563eb 70%, #3b82f6 100%);
}
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: blobFloat 8s ease-in-out infinite alternate;
}
@keyframes blobFloat {
    0%   { transform: translate(0,0) scale(1); }
    100% { transform: translate(30px, -20px) scale(1.05); }
}

/* ---- Card hover effects ---- */
.exam-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.exam-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(30,64,175,0.15);
}

/* ---- Eligibility result cards ---- */
.result-eligible {
    border-left: 4px solid #16a34a;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    animation: slideInUp 0.4s ease both;
}
.result-ineligible {
    border-left: 4px solid #dc2626;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    animation: slideInUp 0.4s ease both;
}
@keyframes slideInUp {
    from { opacity:0; transform: translateY(20px); }
    to   { opacity:1; transform: translateY(0); }
}

/* ---- Form inputs ---- */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    outline: none;
    color: #1f2937;
    appearance: none;
    -webkit-appearance: none;
}
.form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
.form-input:hover:not(:focus) {
    border-color: #93c5fd;
}

/* ---- Check button pulse ---- */
.check-btn {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.check-btn::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%,-50%);
    transition: width 0.6s, height 0.6s;
}
.check-btn:active::after { width: 300px; height: 300px; }
.check-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(30,64,175,0.4); }

/* ---- Progress bar ---- */
.eligibility-bar {
    height: 8px;
    border-radius: 9999px;
    background: #e5e7eb;
    overflow: hidden;
}
.eligibility-bar-fill {
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, #16a34a, #22c55e);
    transition: width 1s ease;
}

/* ---- Step indicator ---- */
.step-circle {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem; color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(30,64,175,0.3);
}

/* ---- FAQ accordion ---- */
.faq-item { border-bottom: 1px solid #e5e7eb; }
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    cursor: pointer;
    font-weight: 600;
    color: #1e3a8a;
    transition: color 0.2s;
}
.faq-question:hover { color: #2563eb; }
.faq-answer { display: none; padding: 0 0 1rem; color: #4b5563; line-height: 1.7; font-size: 0.95rem; }
.faq-answer.open { display: block; animation: fadeIn 0.3s ease; }
.faq-icon { transition: transform 0.3s; }
.faq-icon.rotated { transform: rotate(45deg); }

/* ---- Footer links ---- */
.footer-link { transition: color 0.2s, padding-left 0.2s; }
.footer-link:hover { padding-left: 4px; }

/* ---- Social buttons ---- */
.social-btn { transition: all 0.25s ease; }
.social-btn:hover { transform: translateX(4px); }

/* ---- Nav links ---- */
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 2px;
    background: #3b82f6;
    transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }

/* ---- Table styles ---- */
.eligibility-table th { background: #1e40af; color: #fff; }
.eligibility-table tr:nth-child(even) { background: #f8fafc; }
.eligibility-table tr:hover { background: #eff6ff; }

/* ---- Loading spinner ---- */
.spinner {
    width: 24px; height: 24px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Fade animations ---- */
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
.fade-in { animation: fadeIn 0.5s ease both; }

/* ---- Badge ---- */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .hero-gradient h1 { font-size: 1.6rem !important; }
    .hero-gradient p  { font-size: 0.9rem; }
}

/* ---- Print / PDF ---- */
@media print {
    nav, footer, .ad-banner-footer, #backToTop, #subscribeForm { display: none !important; }
    body { background: #fff; }
    .result-eligible, .result-ineligible { border-radius: 0; }
}
