/* =================================================================================
   I OWN HYDERABAD - 100 BIKE SCHEME PORTAL STYLESHEET
   Strict Bilingual Standard: English on LEFT, Urdu on RIGHT
   Colors: Royal Blue (#0B3B60), Emerald Green (#059669), Gold (#D97706)
   ================================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary-blue: #0B3B60;
    --primary-blue-dark: #07263F;
    --primary-blue-light: #165384;
    --emerald-green: #059669;
    --emerald-hover: #047857;
    --emerald-light: #ECFDF5;
    --gold-accent: #D97706;
    --gold-light: #FEF3C7;
    --slate-dark: #0F172A;
    --slate-text: #334155;
    --slate-muted: #64748B;
    --slate-border: #CBD5E1;
    --bg-soft: #F8FAFC;
    --card-shadow: 0 10px 30px -5px rgba(11, 59, 96, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --hover-shadow: 0 20px 40px -10px rgba(11, 59, 96, 0.16);
    --border-radius-lg: 18px;
    --border-radius-md: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--slate-text);
    background-color: var(--bg-soft);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Base Urdu Font Class */
.urdu-font {
    font-family: 'Noto Nastaliq Urdu', serif;
    direction: rtl;
    line-height: 2.0;
}

/* -------------------------------------------------------------------------
   Navbar (Strict Dual Language: EN Left, UR Right)
   ------------------------------------------------------------------------- */
.portal-navbar {
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(11, 59, 96, 0.06);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.portal-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.portal-brand img.brand-emblem {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(11, 59, 96, 0.2);
}

.portal-brand .brand-text h1 {
    font-size: 19px;
    font-weight: 800;
    color: var(--primary-blue);
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.portal-brand .brand-text span {
    font-size: 12px;
    font-weight: 600;
    color: var(--slate-muted);
    display: block;
}

.nav-link-dual {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    color: var(--slate-text);
    padding: 6px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.nav-link-dual:hover {
    color: var(--primary-blue);
    background: rgba(11, 59, 96, 0.05);
}

.nav-link-dual .en-title {
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.2;
}

.nav-link-dual .ur-title {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--slate-muted);
    line-height: 1.4;
}

.btn-portal-primary {
    background: linear-gradient(135deg, var(--emerald-green) 0%, var(--emerald-hover) 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-portal-primary:hover {
    background: var(--emerald-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

.btn-portal-outline {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 10px;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-portal-outline:hover {
    background: #ffffff;
    color: var(--primary-blue);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* -------------------------------------------------------------------------
   Hero Section
   ------------------------------------------------------------------------- */
.hero-section {
    background: linear-gradient(145deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    position: relative;
    padding: 65px 0 95px;
    color: #ffffff;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge-dual {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: rgba(217, 119, 6, 0.25);
    border: 1px solid rgba(217, 119, 6, 0.6);
    color: #FDE68A;
    padding: 7px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 22px;
}

.hero-title-urdu {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 38px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 2.1;
    direction: rtl;
    text-align: right;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

.hero-subtitle-en {
    font-size: 18px;
    font-weight: 600;
    color: #93C5FD;
    margin-bottom: 15px;
    line-height: 1.5;
}

.hero-desc-en {
    font-size: 15px;
    color: #E2E8F0;
    margin-bottom: 28px;
    line-height: 1.7;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.hero-poster-frame {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(217, 119, 6, 0.45);
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.hero-poster-frame:hover {
    transform: translateY(-5px);
}

.hero-poster-frame img {
    border-radius: 12px;
    width: auto;
    max-width: 100%;
    max-height: 620px;
    margin-inline: auto;
    object-fit: contain;
    display: block;
}

/* -------------------------------------------------------------------------
   Stats Strip (EN Left, UR Right)
   ------------------------------------------------------------------------- */
.stats-strip {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    padding: 20px 18px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--slate-border);
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    min-height: 110px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(5, 150, 105, 0.4);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.stat-icon.blue { background: rgba(11, 59, 96, 0.1); color: var(--primary-blue); }
.stat-icon.green { background: var(--emerald-light); color: var(--emerald-green); }
.stat-icon.gold { background: var(--gold-light); color: var(--gold-accent); }
.stat-icon.purple { background: #F3E8FF; color: #7E22CE; }

.stat-content {
    flex-grow: 1;
}

.stat-row-dual {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    width: 100%;
}

.stat-row-dual .en-side {
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: var(--slate-dark);
}

.stat-row-dual .ur-side {
    text-align: right;
    direction: rtl;
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.8;
}

.stat-sub-dual {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 2px;
    font-size: 11.5px;
    color: var(--slate-muted);
}

/* -------------------------------------------------------------------------
   Section Headers (Dual Language)
   ------------------------------------------------------------------------- */
.section-tag-dual {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--emerald-green);
    background: var(--emerald-light);
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--slate-dark);
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 15px;
    color: var(--slate-muted);
    max-width: 680px;
    margin: 0 auto;
}

/* -------------------------------------------------------------------------
   Cards & Feature Boxes (3-Step Process)
   ------------------------------------------------------------------------- */
.feature-box {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    padding: 28px 22px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--slate-border);
    height: 100%;
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(11, 59, 96, 0.25);
}

.feature-box .step-number {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--primary-blue);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 16px;
}

.step-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #F1F5F9;
}

.step-card-header .en-step {
    font-size: 16px;
    font-weight: 700;
    color: var(--slate-dark);
}

.step-card-header .ur-step {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-blue);
    direction: rtl;
}

/* -------------------------------------------------------------------------
   Strict Dual Form Labels: EN Left, UR Right
   ------------------------------------------------------------------------- */
.dual-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    width: 100%;
}

.dual-label .en-lbl {
    font-size: 13px;
    font-weight: 700;
    color: var(--slate-dark);
    text-align: left;
}

.dual-label .ur-lbl {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--slate-dark);
    text-align: right;
    direction: rtl;
    line-height: 1.8;
}

.dual-label span.req {
    color: #DC2626;
    margin: 0 3px;
    font-weight: 800;
}

.form-control-custom {
    width: 100%;
    height: 48px;
    border-radius: 10px;
    border: 1.5px solid #CBD5E1;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--slate-dark);
    background: #FAFAFA;
    transition: all 0.25s ease;
}

.form-control-custom:focus {
    background: #ffffff;
    border-color: var(--emerald-green);
    outline: none;
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.12);
}

.form-card {
    background: #fff;
    border: 1px solid var(--slate-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.form-header-bar {
    background: var(--primary-blue);
    color: #fff;
    padding: 24px 32px;
}

.form-header-bar h2 { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.form-header-bar p { margin: 0; color: #E2E8F0; }
.form-body { padding: 32px; }
#portalApplicationForm[inert] { opacity: .65; }
.row > [class*="col-"] > .dual-label { min-height: 42px; }
.form-body .row > [class*="col-"]:has(> .dual-label) { display: flex; flex-direction: column; }
.form-body .row > [class*="col-"] > .dual-label { flex: 1; }
.form-body .form-check { display: flex; align-items: flex-start; gap: 12px; }
.form-body .form-check-input { flex-shrink: 0; margin-left: 0 !important; width: 1.15em; height: 1.15em; }
.form-body .form-check-label { min-width: 0; }
.form-control-custom:user-invalid { border-color: #DC2626; }
.document-upload-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-inline: 0; }
.document-upload-grid > * { width: auto; max-width: 100%; padding: 0; margin: 0; }

#home, #eligibility, #how-to-apply, #track, #apply, #termsSection { scroll-margin-top: 95px; }
.dual-label, .form-section-dual-header, .upload-dropzone .dual-title { gap: 10px; }
.upload-dropzone:focus-visible { outline: 3px solid var(--emerald-green); outline-offset: 3px; }
.upload-preview-filename { font-size: 12px; overflow-wrap: anywhere; margin: 8px 0 0; }
.upload-preview-img { max-width: 100%; object-fit: contain; }
.track-input-group > * { min-width: 0; }
.track-input-group > input { flex: 1 1 0; }
.track-input-group > button { flex: 0 0 auto; }
.stat-content { min-width: 0; }
.stat-row-dual, .stat-sub-dual { flex-wrap: wrap; }
#btnSubmitApplication { max-width: 100%; white-space: normal; justify-content: center; }
#btnSubmitApplication > span { min-width: 0; }

textarea.form-control-custom {
    height: auto;
    min-height: 90px;
}

/* Form Section Header */
.form-section-dual-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: 22px;
    border-bottom: 2px solid #F1F5F9;
}

.form-section-dual-header .en-heading {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section-dual-header .ur-heading {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-blue);
    direction: rtl;
}

/* Document Upload Dropzones with EN Left / UR Right */
.upload-dropzone {
    border: 2px dashed #CBD5E1;
    border-radius: 14px;
    padding: 18px 14px;
    background: #F8FAFC;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    height: 100%;
    min-height: 155px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.upload-dropzone:hover {
    border-color: var(--emerald-green);
    background: var(--emerald-light);
}

.upload-dropzone .upload-icon-row {
    display: flex;
    justify-content: center;
    font-size: 30px;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.upload-dropzone .dual-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 4px;
}

.upload-dropzone .dual-title .en-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--slate-dark);
}

.upload-dropzone .dual-title .ur-name {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary-blue);
    direction: rtl;
}

.upload-preview-img {
    max-height: 80px;
    border-radius: 8px;
    display: none;
    margin: 8px auto 0;
    border: 1px solid var(--slate-border);
}

.upload-status-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    display: none;
}

/* -------------------------------------------------------------------------
   Tracking Box
   ------------------------------------------------------------------------- */
.track-box {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--slate-border);
    padding: 32px;
}

.track-input-group {
    display: flex;
    gap: 12px;
}

.track-result-card {
    margin-top: 25px;
    border-radius: var(--border-radius-md);
    background: #F8FAFC;
    border: 1px solid var(--slate-border);
    padding: 24px;
    display: none;
}

.track-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
}

.track-status-pill.pending { background: #FEF3C7; color: #B45309; }
.track-status-pill.approved { background: #D1FAE5; color: #047857; }
.track-status-pill.rejected { background: #FEE2E2; color: #B91C1C; }

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.portal-footer {
    background: var(--primary-blue-dark);
    color: #cbd5e1;
    padding: 55px 0 25px;
    margin-top: 80px;
}

.portal-footer h5 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
}

.portal-footer p {
    font-size: 13.5px;
    line-height: 1.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 22px;
    margin-top: 40px;
    font-size: 12.5px;
}

/* Anti-bot honeypot hidden */
.hp-secure-hidden {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
}

/* -------------------------------------------------------------------------
   Terms & Conditions Mandatory Section
   ------------------------------------------------------------------------- */
.terms-card-container {
    background: #FFFBEB;
    border: 1.5px solid #FCD34D;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.08);
}

.terms-header-bar {
    background: linear-gradient(135deg, #0B3B60 0%, #155E75 100%);
    color: #FFFFFF;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-weight: 700;
    font-size: 14px;
}

.terms-header-bar .en-side {
    text-align: left;
    display: flex;
    align-items: center;
}

.terms-header-bar .ur-side {
    text-align: right;
    direction: rtl;
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 15px;
    line-height: 1.8;
}

.term-item-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 14px 16px;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.term-item-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #CBD5E1;
}

.term-badge {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: #0B3B60;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.term-text {
    flex: 1;
}

.term-text .urdu-font {
    direction: rtl;
    text-align: right;
    line-height: 1.9;
    font-size: 13.5px;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-title-urdu { font-size: 28px; line-height: 2.0; }
    .hero-section { padding: 50px 0 70px; }
    .hero-poster-frame { margin-top: 35px; }
    .stats-strip { margin-top: 20px; }
    .track-input-group { flex-direction: column; }
    .hero-badge-dual { flex-direction: column; gap: 4px; text-align: center; }
    .document-upload-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .form-header-bar, .form-body, .track-box { padding: 20px; }
    .section-title { font-size: 24px; }
    .row > [class*="col-"] > .dual-label { min-height: 0; }
    .terms-header-bar, .form-section-dual-header { flex-wrap: wrap; }
    .terms-header-bar .ur-side, .form-section-dual-header .ur-heading { width: 100%; }
    .hero-cta-group > a { width: 100%; justify-content: center; white-space: normal; }
    .track-input-group > button { width: 100%; justify-content: center; }
    .track-input-group > input { flex: auto; }
    #btnSubmitApplication { width: 100%; padding-inline: 16px !important; }
    .hero-poster-frame img { max-height: none; object-fit: contain; }
}

@media (max-width: 420px) {
    .portal-brand { gap: 8px; min-width: 0; }
    .portal-brand img.brand-emblem { width: 40px; height: 40px; flex-shrink: 0; }
    .portal-brand .brand-text h1 { font-size: 14px; }
    .portal-brand .brand-text span { font-size: 10px; }
    .portal-navbar .d-lg-none { flex-shrink: 0; }
    .hero-title-urdu { font-size: 24px; }
    .form-header-bar, .form-body, .track-box { padding: 16px; }
    .dual-label, .upload-dropzone .dual-title { align-items: flex-start; }
    .form-control-custom { padding: 10px 12px; }
    .stat-card { padding: 16px 12px; gap: 10px; }
    .stat-row-dual, .stat-sub-dual { gap: 6px; }
}

@media (max-width: 575px) {
    .document-upload-grid { grid-template-columns: minmax(0, 1fr); }
}
