/* ============================================
   SMARTWAY GROUPS & BNS NETWORK - STYLESHEET
   ============================================ */

:root {
    --primary: #0a3d62;
    --primary-light: #1e6091;
    --accent: #ff8c1a;
    --accent-dark: #e67600;
    --gold: #f5a623;
    --success: #27ae60;
    --danger: #e74c3c;
    --text: #1a1a2e;
    --text-light: #5a6478;
    --bg: #ffffff;
    --bg-alt: #f6f8fb;
    --border: #e3e8f0;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 8px 30px rgba(10, 61, 98, 0.08);
    --shadow-lg: 0 20px 60px rgba(10, 61, 98, 0.14);
    --font: 'Poppins', 'Noto Sans Tamil', -apple-system, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============ TOPBAR ============ */
.topbar {
    background: var(--primary);
    color: #fff;
    font-size: 0.85rem;
    padding: 8px 0;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.topbar-info a, .topbar-links a {
    color: rgba(255,255,255,0.85);
    margin-right: 18px;
    transition: color var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.topbar-info a:hover, .topbar-links a:hover { color: var(--gold); }

/* ============ HEADER ============ */
.site-header {
    background: #fff;
    box-shadow: 0 2px 20px rgba(10,61,98,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    gap: 20px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 14px rgba(10,61,98,0.3);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-title { font-weight: 700; font-size: 1.05rem; color: var(--primary); }
.logo-sub { font-size: 0.75rem; color: var(--accent); font-weight: 600; letter-spacing: 1px; }

.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav > ul > li > a {
    display: block;
    padding: 10px 14px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active { color: var(--primary); background: var(--bg-alt); }
.main-nav .highlight > a {
    background: linear-gradient(135deg, var(--accent), var(--gold));
    color: #fff !important;
    font-weight: 600;
    padding: 10px 16px !important;
}
.main-nav .highlight > a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255,140,26,0.4);
}

.has-dropdown { position: relative; }
.has-dropdown > a i { font-size: 0.7rem; margin-left: 3px; }
.dropdown {
    position: absolute;
    top: 100%; left: 0;
    background: #fff;
    min-width: 200px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    padding: 8px;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a {
    display: block;
    padding: 10px 14px;
    font-size: 0.88rem;
    color: var(--text);
    border-radius: 6px;
    transition: all var(--transition);
}
.dropdown li a:hover { background: var(--bg-alt); color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 8px; }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.92rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    box-shadow: 0 4px 14px rgba(10,61,98,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(10,61,98,0.35); }
.btn-secondary {
    background: linear-gradient(135deg, var(--accent), var(--gold));
    color: #fff;
    box-shadow: 0 4px 14px rgba(255,140,26,0.3);
}
.btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,140,26,0.4); }
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 34px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(10,61,98,0.95), rgba(30,96,145,0.85)),
                url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?w=1600') center/cover;
    color: #fff;
    padding: 80px 0;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--bg), transparent);
}
.hero-content { position: relative; z-index: 2; max-width: 780px; }
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}
.hero p {
    font-size: clamp(1rem, 2vw, 1.15rem);
    opacity: 0.92;
    margin-bottom: 32px;
    max-width: 640px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============ PAGE HERO (inner pages) ============ */
.page-hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    padding: 80px 0 60px;
    text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 12px; font-weight: 700; }
.page-hero p { opacity: 0.9; font-size: 1.05rem; max-width: 700px; margin: 0 auto; }

/* ============ STATS ============ */
.stats {
    background: #fff;
    padding: 0 0 60px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 36px 28px;
}
.stat-card { text-align: center; padding: 10px; border-right: 1px solid var(--border); }
.stat-card:last-child { border-right: none; }
.stat-number {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label { font-size: 0.85rem; color: var(--text-light); font-weight: 500; }

/* ============ SECTION BASE ============ */
.section { padding: 90px 0; }
.section-header { margin-bottom: 50px; max-width: 720px; }
.section-header.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255,140,26,0.12), rgba(245,166,35,0.12));
    color: var(--accent-dark);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 6px 16px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.section-header h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.25;
    margin-bottom: 14px;
}
.section-header p { color: var(--text-light); font-size: 1.02rem; }

/* ============ ABOUT ============ */
.about { background: var(--bg-alt); }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: center;
}
.image-frame {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.image-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,61,98,0.15), rgba(255,140,26,0.15));
    z-index: 1;
}
.placeholder-img {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    gap: 16px;
}
.placeholder-img i { font-size: 5rem; opacity: 0.5; }
.placeholder-img span { font-weight: 600; font-size: 1.05rem; }
.about-text h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--primary); margin-bottom: 18px; line-height: 1.3; }
.about-text p { color: var(--text-light); margin-bottom: 24px; font-size: 1.02rem; }
.founder-quals { margin-bottom: 28px; display: grid; gap: 10px; }
.founder-quals li { display: flex; align-items: center; gap: 12px; color: var(--text); font-size: 0.95rem; }
.founder-quals i { color: var(--accent); font-size: 1.1rem; width: 24px; text-align: center; }

/* ============ ABOUT CONTENT (about.php) ============ */
.about-content { max-width: 900px; margin: 0 auto; }
.about-content h2 {
    color: var(--primary);
    font-size: 1.4rem;
    margin: 40px 0 18px;
    line-height: 1.35;
}
.about-content p { color: var(--text-light); margin-bottom: 16px; font-size: 1.02rem; }
.about-content ul { margin: 14px 0 24px 8px; display: grid; gap: 10px; }
.about-content ul li {
    padding-left: 26px;
    position: relative;
    color: var(--text-light);
}
.about-content ul li::before {
    content: '\f111';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 4px;
    top: 8px;
    color: var(--accent);
    font-size: 0.5rem;
}
.pull-quote {
    border-left: 5px solid var(--accent);
    background: var(--bg-alt);
    padding: 24px 30px;
    font-size: 1.15rem;
    font-weight: 500;
    font-style: italic;
    color: var(--primary);
    border-radius: var(--radius-sm);
    margin-bottom: 30px;
}
.about-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 40px; }

/* ============ BNS ============ */
.bns-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
}
.bns-section .section-tag { background: rgba(255,255,255,0.15); color: #fff; }
.bns-section .section-header h2 { color: #fff; }
.bns-section .section-header p { color: rgba(255,255,255,0.85); }
.bns-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.bns-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    padding: 40px 34px;
    transition: all var(--transition);
}
.bns-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.12); }
.card-icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 22px;
}
.bns-card.consumer .card-icon { background: linear-gradient(135deg, var(--accent), var(--gold)); }
.bns-card.merchant .card-icon { background: linear-gradient(135deg, #27ae60, #2ecc71); }
.bns-card h3 { font-size: 1.35rem; margin-bottom: 14px; }
.bns-card p { color: rgba(255,255,255,0.85); margin-bottom: 26px; }

/* ============ VERTICALS ============ */
.verticals-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.vertical-group {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: all var(--transition);
}
.vertical-group:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.vg-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--bg-alt);
}
.vg-header i {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.vg-header h3 { font-size: 1.1rem; color: var(--primary); }
.vertical-group ul li {
    padding: 9px 0 9px 24px;
    position: relative;
    color: var(--text-light);
    font-size: 0.92rem;
    border-bottom: 1px dashed var(--border);
}
.vertical-group ul li:last-child { border-bottom: none; }
.vertical-group ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--success);
    font-size: 0.8rem;
}

/* ============ FRANCHISE ============ */
.franchise { background: var(--bg-alt); }
.franchise-text { max-width: 800px; }
.franchise-text h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--primary); margin-bottom: 18px; }
.franchise-text p { color: var(--text-light); margin-bottom: 26px; font-size: 1.02rem; }
.check-list { margin-bottom: 30px; display: grid; gap: 12px; }
.check-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.check-list i { color: var(--success); font-size: 1.1rem; }
.franchise-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============ NEWS ============ */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.news-thumb {
    height: 180px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.55);
    font-size: 3.5rem;
}
.news-body { padding: 26px 24px; }
.news-tag {
    display: inline-block;
    background: rgba(255,140,26,0.12);
    color: var(--accent-dark);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.news-body h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: 10px; line-height: 1.4; }
.news-body p { color: var(--text-light); font-size: 0.9rem; }

/* ============ TESTIMONIALS ============ */
.testimonials { background: var(--bg-alt); }
.testimonial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.testimonial {
    background: #fff;
    border-radius: var(--radius);
    padding: 36px 32px;
    position: relative;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent);
}
.testimonial i { color: var(--accent); font-size: 1.8rem; opacity: 0.3; margin-bottom: 16px; }
.testimonial p { font-size: 1.02rem; color: var(--text); margin-bottom: 20px; font-style: italic; }
.testimonial footer { font-weight: 600; color: var(--primary); font-size: 0.92rem; }

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.contact-info h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--primary); margin-bottom: 26px; line-height: 1.3; }
.contact-list { display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; color: var(--text-light); font-size: 0.98rem; }
.contact-list i { color: var(--accent); font-size: 1.1rem; margin-top: 3px; width: 22px; flex-shrink: 0; }

.inquiry-form {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 34px;
    box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 0.95rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
    transition: all var(--transition);
    color: var(--text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(10,61,98,0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* ============ AUTH PAGES ============ */
.auth-section {
    padding: 70px 0;
    min-height: 70vh;
    background: linear-gradient(135deg, var(--bg-alt), #eef2f8);
}
.auth-container { max-width: 480px; }
.auth-wide { max-width: 620px; }
.auth-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 44px 40px;
    box-shadow: var(--shadow-lg);
}
.auth-header { text-align: center; margin-bottom: 30px; }
.auth-header h1 { font-size: 1.7rem; color: var(--primary); margin-bottom: 8px; }
.auth-header p { color: var(--text-light); font-size: 0.95rem; }
.auth-footer { text-align: center; margin-top: 24px; color: var(--text-light); font-size: 0.92rem; }
.auth-footer a { color: var(--accent); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

.radio-group { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    background: var(--bg-alt);
}
.radio-card:hover { border-color: var(--primary-light); }
.radio-card input { accent-color: var(--primary); }
.radio-card span { font-size: 0.88rem; display: flex; align-items: center; gap: 6px; }
.radio-card:has(input:checked) { border-color: var(--primary); background: rgba(10,61,98,0.05); }
.radio-card:has(input:checked) span { color: var(--primary); font-weight: 600; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 0.9rem; font-weight: 500; }
.alert-error { background: #fdeaea; color: var(--danger); border: 1px solid #f5c6c6; }
.alert-success { background: #eafaf1; color: var(--success); border: 1px solid #b8e6cc; }
.flash { padding: 14px 24px; font-size: 0.92rem; font-weight: 500; text-align: center; }
.flash-success { background: #eafaf1; color: var(--success); }
.flash-error { background: #fdeaea; color: var(--danger); }

/* ============ FOOTER ============ */
.site-footer {
    background: #071f33;
    color: rgba(255,255,255,0.75);
    padding: 70px 0 0;
    font-size: 0.9rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.3fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
}
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 20px; font-weight: 600; }
.footer-col p { margin-bottom: 12px; line-height: 1.7; }
.footer-col i { color: var(--accent); margin-right: 8px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { transition: all var(--transition); }
.footer-col ul li a:hover { color: var(--accent); padding-left: 4px; }
.brand-col .logo { margin-bottom: 16px; }
.brand-col .logo-title { color: #fff; }
.brand-col p { margin-bottom: 20px; }
.social-links { display: flex; gap: 10px; }
.social-links a {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    transition: all var(--transition);
}
.social-links a:hover { background: var(--accent); transform: translateY(-3px); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 22px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* ============ MOBILE ============ */
.mobile-toggle {
    display: none;
    background: var(--bg-alt);
    border: none;
    width: 42px; height: 42px;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    color: var(--primary);
    cursor: pointer;
}

@media (max-width: 1024px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: #fff;
        box-shadow: var(--shadow-lg);
        padding: 16px 24px;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
    .main-nav > ul > li > a { padding: 12px 14px; }
    .dropdown {
        position: static;
        opacity: 1; visibility: visible; transform: none;
        box-shadow: none; padding-left: 16px;
    }
    .mobile-toggle { display: block; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .verticals-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; padding: 28px 20px; }
    .stat-card { border-right: none; }
    .bns-cards, .news-grid, .testimonial-grid { grid-template-columns: 1fr; }
    .verticals-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .topbar-info a { display: none; }
    .topbar-info a:first-child { display: inline-flex; }
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 60px 0; }
    .hero { min-height: 500px; }
    .auth-card { padding: 32px 24px; }
    .radio-group { grid-template-columns: 1fr; }
    .header-actions .btn { padding: 8px 14px; }
}

@media (max-width: 480px) {
    .header-inner { padding: 12px 16px; }
    .container { padding: 0 16px; }
    .logo-title { font-size: 0.95rem; }
    .logo-mark { width: 42px; height: 42px; font-size: 1rem; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; }
    .stats-grid { grid-template-columns: 1fr; }
}

/* ============================================
   REGISTER PAGE — corrected layout
   ============================================ */

.breadcrumb-bar {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}
.breadcrumb-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.breadcrumb-inner h3 { font-size: 1.05rem; color: var(--primary); margin: 0; }
.breadcrumb-links {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.88rem; color: var(--text-light);
}
.breadcrumb-links a { color: var(--primary); font-weight: 500; }
.breadcrumb-links a:hover { color: var(--accent); }
.breadcrumb-links i { font-size: 0.6rem; opacity: 0.6; }

/* ---------- Section wrapper ---------- */
.register-section {
    padding: 60px 0 80px;
    background: linear-gradient(180deg, var(--bg-alt) 0%, #eef2f8 100%);
}

/* ---------- Card ---------- */
.register-card {
    max-width: 820px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(10, 61, 98, 0.12);
    padding: 48px 52px;
    border: 1px solid rgba(10, 61, 98, 0.06);
}

/* ---------- Header ---------- */
.register-head { text-align: center; margin-bottom: 36px; }
.register-icon {
    width: 70px; height: 70px;
    margin: 0 auto 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 10px 24px rgba(10, 61, 98, 0.28);
}
.register-head h2 { font-size: 1.7rem; color: var(--primary); margin-bottom: 8px; font-weight: 700; }
.register-head p { color: var(--text-light); font-size: 0.98rem; }

/* ---------- Row (2 columns on desktop) ---------- */
.reg-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* ---------- Field: label ABOVE input, icon INSIDE input ---------- */
.reg-field {
    display: block;          /* NOT flex-column */
    position: relative;
}
.reg-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;      /* small gap between label and input */
    line-height: 1.2;
}
.req { color: var(--accent); margin-left: 2px; }

/* ---------- Input wrapper (icon container) ---------- */
.reg-input {
    position: relative;
    width: 100%;
    height: 52px;            /* explicit height so icon centers correctly */
}

/* icon centered vertically inside the input */
.reg-input > i {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #9aa5b8;
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 2;
    transition: color 0.25s;
}

/* the actual input/select fills the wrapper */
.reg-input input,
.reg-input select {
    display: block;
    width: 100%;
    height: 100%;            /* fills the 52px wrapper */
    padding: 0 46px 0 46px;  /* left space for icon, right for toggle/arrow */
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    background: #f8fafc;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}
.reg-input input::placeholder { color: #a8b3c4; }

.reg-input input:focus,
.reg-input select:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(10, 61, 98, 0.08);
}
.reg-input input:focus ~ i,
.reg-input select:focus ~ i { color: var(--primary); }

/* select chevron */
.reg-input select {
    padding-right: 42px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2364748b'%3e%3cpath d='M8 11L3 6h10z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    cursor: pointer;
}
.reg-input select:invalid { color: #a8b3c4; }

/* password toggle — sits inside the input, right side */
.pw-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    cursor: pointer;
    color: #8a94a8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    z-index: 2;
}
.pw-toggle:hover { background: #eef2f8; color: var(--primary); }

/* hint under field */
.reg-hint { margin-top: 6px; font-size: 0.82rem; min-height: 18px; }
.reg-hint .ok { color: var(--success); font-weight: 500; }
.reg-hint .err { color: var(--danger); font-weight: 500; }

/* info note */
.reg-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #fff8ec;
    border: 1px solid #ffe2b3;
    color: #8a6d1f;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 4px 0 28px;
}
.reg-note i { color: var(--accent); margin-top: 2px; }

/* actions */
.reg-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.reg-actions .btn { flex: 1; min-width: 160px; }
.reg-actions .btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.reg-actions .btn-primary:hover { transform: translateY(-2px); }

/* footer */
.reg-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.92rem;
    color: var(--text-light);
}
.reg-footer a { color: var(--accent); font-weight: 600; }
.reg-footer a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .register-card { padding: 32px 24px; border-radius: 16px; }
    .reg-row { grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
    .register-head h2 { font-size: 1.4rem; }
    .register-icon { width: 60px; height: 60px; font-size: 1.4rem; }
    .reg-actions .btn { min-width: 0; }
}
@media (max-width: 480px) {
    .register-section { padding: 40px 0 60px; }
    .register-card { padding: 26px 18px; }
    .reg-input { height: 48px; }
    .reg-input input,
    .reg-input select { font-size: 0.9rem; }
}