/* --- DESIGN SYSTEM (Your Original Variables) --- */
:root {
    --c-saffron: #FF9933;
    --c-saffron-dark: #e68629;
    --c-white: #ffffff;
    --c-green: #138808;
    --c-green-dark: #0e6b05;
    --c-navy: #1a2742; 
    --c-navy-dark: #0f172a;
    --c-bg: #f8fafc;
    --c-text-main: #334155;
    --c-text-muted: #64748b;
    --c-border: #e2e8f0;
    
    --glass-bg: rgba(26, 39, 66, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* --- GLOBAL RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--c-bg);
    color: var(--c-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; color: var(--c-navy-dark); font-weight: 700; }
button { font-family: inherit; cursor: pointer; border: none; transition: all 0.3s var(--ease-smooth); }
a { text-decoration: none; color: inherit; transition: all 0.3s var(--ease-smooth); }

/* --- NAVBAR --- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    padding: 1.2rem 5%;
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; height: 77px; z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.4s var(--ease-smooth);
}
.navbar.scrolled { padding: 0.8rem 5%; background: rgba(255, 255, 255, 0.95); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08); }

.brand { display: flex; align-items: center; gap: 14px; transition: transform 0.3s var(--ease-smooth); max-width: fit-content; }
.brand:hover { transform: translateY(-2px); }
.brand-text { display: flex; align-items: center; gap: 12px; }

/* REVERIFIED: Exact inline styles for Brand moved here */
.brand-logo-img {
    width: 75px; 
    height: 75px; 
    border-radius: 50%; 
    object-fit: cover; 
    display: block;
}
.brand-title {
    font-size: 35px; 
    color: #660000; /* Exact color from your inline style */
    font-weight: 800; /* Assumed from h1 default */
    line-height: 1.1;
}

.nav-actions { display: flex; gap: 12px; align-items: center; }
.btn-pulse {
    background: linear-gradient(135deg, var(--c-saffron), var(--c-saffron-dark));
    color: white; padding: 0.75rem 1.8rem;
    border-radius: 50px; font-weight: 700; font-size: 0.9rem;
    box-shadow: 0 4px 20px rgba(255, 153, 51, 0.35);
    display: flex; align-items: center; gap: 8px;
    position: relative; overflow: hidden;
}
.btn-pulse::before {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 0; height: 0; border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%); transition: width 0.6s, height 0.6s;
}
.btn-pulse:hover::before { width: 300px; height: 300px; }
.btn-pulse:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(255, 153, 51, 0.45); }

/* --- HERO SECTION --- */
.hero {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 70px; min-height: 100vh; padding: 140px 20px 100px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(26, 39, 66, 0.7) 50%, rgba(15, 23, 42, 0.9) 100%),
                url('./assets/Gemini_Generated_Image_ub19ytub19ytub19.png');
    background-size: cover; background-position: center; background-attachment: fixed; overflow: hidden;
}

.ina-info { max-width: 900px; text-align: center; z-index: 2; color: white; padding: 0 20px; }

/* REVERIFIED: Exact inline styles for Hero Headings moved here */
.hero-occasion-text {
    font-size: 24px; 
    font-weight: normal; 
    margin-bottom: 6px; 
    color: goldenrod;
}
.hero-main-title {
    font-size: 48px; 
    font-weight: bold; 
    margin: 4px 0; 
    color: orange;
}
.hero-sub-title {
    font-size: 24px; 
    font-weight: normal; 
    margin: 6px 0 42px; /* Specific margin from your inline style */
    color: goldenrod;
}

.ina-description {
    font-size: 1.0rem; line-height: 1.8; color: rgba(255, 255, 255, 0.95);
    max-width: 750px; margin: 0 auto 20px; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s 0.4s both;
}

/* REVERIFIED: Competition Details Inline Styles */
.comp-header { color: chocolate; }
.comp-details { color: azure; }

.ina-quote {
    font-size: 1.05rem; font-style: italic; color: var(--c-saffron);
    margin-top: 24px; padding: 20px; border-left: 3px solid var(--c-saffron);
    background: rgba(255, 153, 51, 0.1); border-radius: 8px;
    backdrop-filter: blur(10px); animation: fadeInUp 1s 0.6s both;
}

/* --- CARDS & SEARCH --- */
.search-container { width: 100%; max-width: 1100px; z-index: 10; padding: 0 20px; }
.search-card {
    background: rgba(26, 39, 66, 0.6); /* Slightly darker for better contrast */
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 24px; padding: 45px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 1s 0.8s both; transition: all 0.4s var(--ease-smooth);
    color: var(--c-white);
}
.search-header h2 { font-size: 2rem; margin-bottom: 10px; color: #ffffff; font-weight: 700; }
.search-header p { font-size: 1rem; color: rgba(255, 255, 255, 0.85); font-weight: 400; }
.search-header { text-align: center; margin-bottom: 30px; }

/* --- FORMS --- */
.search-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 35px; }
.form-group { position: relative; margin-bottom: 24px; }
.form-label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--c-saffron); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }

/* Select Inputs */
.form-select {
    width: 100%; padding: 16px 18px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 14px;
    background: rgba(255, 255, 255, 0.95); font-size: 1rem; color: var(--c-navy); font-weight: 500;
    transition: all 0.3s var(--ease-smooth); cursor: pointer;
}
.form-select:focus { outline: none; border-color: var(--c-saffron); background: #fff; box-shadow: 0 0 0 4px rgba(255, 153, 51, 0.1); }
.form-select:disabled { opacity: 0.5; cursor: not-allowed; }

/* Text Inputs (FIXED for icons inside) */
.form-input {
    width: 100%;
    height: 54px; /* Fixed height ensures icons always align perfectly */
    padding: 0 18px 0 50px; /* Adjusted padding: 0 top/bottom, 50px left for icon */
    border: none;
    border-radius: 14px;
    background: #f3f4f6;
    font-size: 1rem;
    color: var(--c-navy);
    font-weight: 500;
    font-family: 'Manrope', sans-serif;
    transition: all 0.3s var(--ease-smooth);
}

.form-input:focus {
    outline: none;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 153, 51, 0.2);
}

/* Input Icons (FIXED to be inside the input) */
.input-icon {
    position: absolute;
    left: 18px;
    
    /* REMOVE top: 50% to stop it centering on the label */
    top: auto; 
    
    /* ALIGN from bottom: (Input Height 54px - Icon Size ~20px) / 2 = ~17px */
    bottom: 17px; 
    
    transform: none; /* Remove translateY */
    color: #9ca3af;
    font-size: 1.1rem;
    pointer-events: none;
    transition: all 0.3s;
    z-index: 5;
}

/* 3. Ensure Focus Color Works */
.form-input:focus + .input-icon {
    color: var(--c-saffron);
}


/* --- ACTION BUTTONS --- */
.search-actions { margin-top: 35px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.btn-search {
    background: linear-gradient(135deg, var(--c-green), var(--c-green-dark));
    color: white; padding: 18px 52px; border-radius: 14px; font-weight: 700; font-size: 1.05rem;
    box-shadow: 0 6px 20px rgba(19, 136, 8, 0.35); display: flex; align-items: center; gap: 12px;
    position: relative; overflow: hidden; justify-content: center;
}
.btn-search::before {
    content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; border-radius: 50%;
    background: rgba(255, 255, 255, 0.2); transform: translate(-50%, -50%); transition: width 0.6s, height 0.6s;
}
.btn-search:hover::before { width: 500px; height: 500px; }
.btn-search:hover { background: linear-gradient(135deg, var(--c-green-dark), #0a5203); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(19, 136, 8, 0.45); }
.btn-reset {
    background: rgba(255, 255, 255, 0.15); color: white; border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 18px 40px; border-radius: 14px; font-weight: 600; font-size: 1.05rem; backdrop-filter: blur(10px);
}
.btn-reset:hover { background: rgba(255, 255, 255, 0.25); border-color: rgba(255, 255, 255, 0.5); transform: translateY(-3px); }

/* --- RESULTS SECTION --- */
.results-container { max-width: 1200px; margin: 80px auto 120px; padding: 0 20px; display: none; }
.results-container.active { display: block; animation: fadeIn 0.6s var(--ease-smooth); }
.results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; padding-bottom: 24px; border-bottom: 3px solid var(--c-border); }
.results-header h2 { font-size: 2.2rem; display: flex; align-items: center; gap: 14px; }
.results-count { background: linear-gradient(135deg, var(--c-saffron), var(--c-saffron-dark)); color: white; padding: 6px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 700; box-shadow: 0 4px 12px rgba(255, 153, 51, 0.3); }
.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 35px; }

/* --- VETERAN CARD --- */
.veteran-card {
    background: white; border-radius: 20px; overflow: hidden; border: 1px solid var(--c-border);
    transition: all 0.4s var(--ease-smooth); position: relative; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.veteran-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(to bottom, var(--c-saffron), var(--c-green)); }
.veteran-card:hover { transform: translateY(-10px); box-shadow: 0 25px 40px rgba(0, 0, 0, 0.12); border-color: var(--c-saffron); }
.card-header { padding: 28px 28px 14px; background: linear-gradient(135deg, rgba(255, 153, 51, 0.05), rgba(19, 136, 8, 0.05)); }
.card-rank { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--c-saffron-dark); font-weight: 700; display: block; margin-bottom: 10px; }
.card-name { font-size: 1.5rem; font-weight: 700; color: var(--c-navy-dark); line-height: 1.3; }
.card-body { padding: 20px 28px 28px; }
.card-row { display: flex; align-items: flex-start; gap: 12px; margin-top: 14px; font-size: 0.95rem; }
.card-icon { color: var(--c-text-muted); width: 20px; margin-top: 3px; }
.card-footer { padding: 18px 28px; background: var(--c-bg); border-top: 1px solid var(--c-border); }
.btn-card { width: 100%; padding: 12px; border-radius: 10px; border: 2px solid var(--c-border); background: white; font-weight: 600; font-size: 0.95rem; color: var(--c-navy); }
.btn-card:hover { background: var(--c-navy); color: white; border-color: var(--c-navy); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(26, 39, 66, 0.2); }

/* --- MODALS --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px);
    z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.active { display: flex; animation: fadeIn 0.3s var(--ease-smooth); }
.modal-content {
    background: #fffdf5; width: 90%; max-width: 520px; border-radius: 4px; box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 8px solid #3e2723; background-image: linear-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 100% 2rem; animation: modalSlideUp 0.4s var(--ease-bounce);
}
.modal-header { background: #3e2723; color: #d4af37; padding: 24px; display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { margin: 0; font-size: 1.4rem; color: #d4af37; }
.close-modal { background: none; color: white; font-size: 1.8rem; padding: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.close-modal:hover { background: rgba(255, 255, 255, 0.1); transform: rotate(90deg); }
.modal-body { padding: 35px; font-family: 'Courier New', monospace; }

/* REVERIFIED: Modal Inline Styles */
.modal-veteran-name { font-family: 'Playfair Display'; margin-bottom: 20px; color: #3e2723; }
.modal-quote-text { margin-top: 30px; text-align: center; font-style: italic; color: #3e2723; }

.stamp-mark {
    border: 3px double var(--c-green); color: var(--c-green); display: inline-block; padding: 6px 16px;
    font-weight: 700; text-transform: uppercase; transform: rotate(-5deg); margin-bottom: 24px;
    font-family: 'Manrope', sans-serif; font-size: 0.85rem;
}
.detail-row { margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px dotted #999; display: flex; justify-content: space-between; font-size: 0.95rem; }
.detail-label { font-weight: 700; color: #3e2723; }

/* --- FOOTER --- */
footer {
    background: linear-gradient(135deg, var(--c-navy-dark), #1e293b); color: rgba(255, 255, 255, 0.8);
    padding: 70px 20px 40px; text-align: center; position: relative; overflow: hidden;
}
footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--c-saffron), var(--c-green), var(--c-saffron)); }
.footer-content { max-width: 800px; margin: 0 auto; }
.footer-brand { font-size: 1.8rem; margin-bottom: 20px; }
footer h3 { font-size: 1.5rem; color: var(--c-saffron); margin-bottom: 12px; font-weight: 700; }
footer p { font-size: 0.95rem; line-height: 1.8; margin: 10px 0; }
.footer-bottom { margin-top: 40px; padding-top: 25px; border-top: 1px solid rgba(255, 255, 255, 0.15); font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); }

/* --- ANIMATIONS --- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: translateY(0); } }
@keyframes modalSlideUp { from { opacity: 0; transform: translateY(50px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* =========================================
   MOBILE REDESIGN (Professional View)
   ========================================= */
/* Mobile Menu Toggle (Hidden on Desktop) */
.menu-toggle { display: none; }

@media (max-width: 768px) {
    /* 1. NAVIGATION */
    .navbar { padding: 0.6rem 1rem; height: 70px; }
    
    /* Adjust specific desktop brand sizes for mobile */
    .brand-logo-img { width: 50px; height: 50px; }
    .brand-title { font-size: 1.2rem; }
    
    /* Hamburger Menu Logic */
    .menu-toggle { display: block; cursor: pointer; color: var(--c-navy-dark); font-size: 1.5rem; }
    .nav-actions {
        position: absolute; top: 70px; left: 0; width: 100%; 
        background: white; flex-direction: column; padding: 20px; gap: 15px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1); clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: all 0.4s var(--ease-smooth);
    }
    .nav-actions.active { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
    .btn-pulse { width: 100%; justify-content: center; }

    /* 2. HERO TYPOGRAPHY OVERRIDES */
    .hero { padding: 100px 15px 40px; gap: 30px; min-height: auto; background-attachment: scroll; }
    
    /* Override specific desktop pixel values with fluid clamp values for mobile */
    .hero-occasion-text { font-size: 1rem; }
    .hero-main-title { font-size: clamp(2rem, 10vw, 3.5rem); line-height: 1.1; }
    .hero-sub-title { font-size: 1.1rem; margin-bottom: 25px; }
    
    /* 3. SEARCH CARD MOBILE */
    .search-container { padding: 0; margin-top: 20px; }
    .search-card { padding: 30px 20px; border-radius: 20px 20px 0 0; background: rgba(15, 23, 42, 0.95); border: none; }
    .search-header h2 { font-size: 1.5rem; }
    .search-grid { grid-template-columns: 1fr; gap: 15px; margin-top: 25px; }
    
    /* Inputs for Touch */
    .form-select { height: 50px; font-size: 16px; background-color: #ffffff; border: none; }
    
    /* Form Inputs on Mobile (FIXED) */
    .form-input { 
        height: 50px; 
        font-size: 16px; 
        background-color: #ffffff; 
        border: none;
        padding-left: 50px; /* Keep space for icon */
    }
    .form-label { color: rgba(255, 255, 255, 0.9); }
    
    /* Buttons Stacked */
    .search-actions { flex-direction: column; width: 100%; gap: 12px; margin-top: 30px; }
    .btn-search, .btn-reset { width: 100%; padding: 16px; font-size: 1.1rem; }
    .btn-reset { background: transparent; border: 1px dashed rgba(255,255,255,0.3); color: rgba(255,255,255,0.7); }

    /* 4. RESULTS & MODAL */
    .results-container { margin: 40px auto; padding: 0 15px; }
    .results-grid { grid-template-columns: 1fr; gap: 20px; }
    .modal-content { width: 95%; max-height: 85vh; overflow-y: auto; }
    .detail-row { flex-direction: column; gap: 4px; }
}

/* =========================
   REGISTER PAGE SPECIFIC
   ========================= */

.registration-wrapper {
    width: 100%;
    max-width: 550px; /* Narrower width for a professional form look */
    margin: 0 auto;
    z-index: 10;
    padding: 0 10px;
}

/* Make sure the card inside the wrapper fills the space */
.registration-wrapper .search-card {
    width: 100%;
    padding: 40px 30px;
}

/* Register Button Styling */
.btn-register {
    width: 100%;
    margin-top: 20px;
    background: linear-gradient(135deg, var(--c-green), var(--c-green-dark));
    color: white; 
    padding: 16px; 
    border-radius: 14px; 
    font-weight: 700; 
    font-size: 1.05rem;
    box-shadow: 0 6px 20px rgba(19, 136, 8, 0.35);
    display: flex; 
    align-items: center; 
    justify-content: center;
    gap: 12px;
    position: relative; 
    overflow: hidden;
    transition: all 0.3s var(--ease-smooth);
}

.btn-register:hover {
    background: linear-gradient(135deg, var(--c-green-dark), #0a5203);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(19, 136, 8, 0.45);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .registration-wrapper .search-card {
        padding: 30px 20px;
    }
}
/* =========================
   ABOUT PAGE SPECIFIC STYLES
   (Extracted from your inline CSS)
   ========================= */

/* The glass container for the text */
.about-card {
    max-width: 900px;
    background: rgba(255, 255, 255, 0.15); /* Exact value from your code */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 40px;
    color: white; /* Exact value */
    text-align: left;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin: 0 auto; /* Centers the card */
}

/* The dark red heading */
.about-heading {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #660000; /* Exact color code preserved */
    font-weight: 700;
}

/* Paragraph spacing */
.about-text p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Bold text larger size */
.text-highlight {
    font-size: larger;
    font-weight: 700;
}

/* Jai Hind footer */
.jai-hind {
    margin-bottom: 15px;
    font-weight: 600;
}

/* MOBILE ADJUSTMENTS FOR ABOUT PAGE */
@media (max-width: 768px) {
    .about-card {
        padding: 25px 20px;
    }
    .about-heading {
        font-size: 1.8rem; /* Smaller font for mobile readability */
    }
}

/* =========================
   RULES PAGE SPECIFIC STYLES
   ========================= */

/* Reuse the glass card look but specific to Rules to be safe */
.rules-card {
    max-width: 900px;
    background: rgba(255, 255, 255, 0.15); /* Exact inline value */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 40px;
    color: white;
    text-align: left;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

.rules-main-heading {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #FFA500; /* Dark Red */
    font-weight: 700;
}

.rules-subheading {
    margin-bottom: 15px;
    font-weight: 600;
    font-size: x-large; /* Exact inline value */
    display: block;
}

.rules-list-item {
    margin-bottom: 10px;
    display: block;
}

.video-link {
    color: #ffcc00; /* Yellow */
    text-decoration: underline;
    font-weight: 600;
    transition: opacity 0.3s;
}
.video-link:hover {
    opacity: 0.8;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .rules-card { padding: 25px 20px; }
    .rules-main-heading { font-size: 1.8rem; }
    .rules-subheading { font-size: 1.3rem; }
}
/* =========================
   GMAIL-STYLE ADDRESS LIST
   (Add to end of style.css)
   ========================= */

/* Address List Container */
.address-list-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-width: 1100px;
    margin: 0 auto;
}

/* List Header */
.address-list-header {
    background: linear-gradient(135deg, var(--c-navy), var(--c-navy-dark));
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--c-saffron);
}

.address-list-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.address-list-header i {
    color: var(--c-saffron);
}

/* Scrollable Wrapper - Gmail Style */
.address-scroll-wrapper {
    max-height: 600px;
    overflow-y: auto;
    background: #f8f9fa;
}

/* Custom Scrollbar - Gmail Inspired */
.address-scroll-wrapper::-webkit-scrollbar {
    width: 12px;
}

.address-scroll-wrapper::-webkit-scrollbar-track {
    background: #e8eaed;
}

.address-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #c1c3c7;
    border-radius: 6px;
    border: 2px solid #e8eaed;
    transition: background 0.3s ease;
}

.address-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: #a0a2a6;
}

/* Individual Address Row - Gmail Card Style */
.address-row {
    background: white;
    border-bottom: 1px solid #e8eaed;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.address-row:hover {
    background: #f5f7fa;
    box-shadow: inset 4px 0 0 var(--c-saffron);
}

.address-row:active {
    background: #eef1f6;
}

.address-row:last-child {
    border-bottom: none;
}

/* Left Side - Name and Address Preview */
.address-row-main {
    flex: 1;
    min-width: 0; /* Allows text truncation */
}

.address-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--c-navy-dark);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.address-name i {
    color: var(--c-saffron);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.address-preview {
    color: var(--c-text-muted);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 500px;
}

/* Right Side - Meta Info (District & Pincode) */
.address-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
    margin-left: 20px;
}

.address-meta span {
    background: #e8f5e9;
    color: var(--c-green);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.address-meta span:first-child {
    background: #fff3e0;
    color: #e65100;
}

/* Empty State (When no results) */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--c-text-muted);
    background: white;
}

.empty-state i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
    display: block;
}

.empty-state p {
    font-size: 1rem;
    color: var(--c-text-muted);
}

/* Fix: Ensure address list container doesn't overflow */
.address-list-container {
    width: 100%;
    box-sizing: border-box;
}

/* Mobile Responsive for Address List */
@media (max-width: 768px) {
    .address-list-container {
        border-radius: 12px;
    }

    .address-list-header {
        padding: 16px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .address-list-header h2 {
        font-size: 1.2rem;
    }

    .address-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }

    .address-row:hover {
        box-shadow: inset 3px 0 0 var(--c-saffron);
    }

    .address-row-main {
        width: 100%;
    }

    .address-name {
        font-size: 0.95rem;
    }

    .address-preview {
        max-width: 100%;
        font-size: 0.85rem;
    }

    .address-meta {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
    }

    .address-meta span {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    .address-scroll-wrapper {
        max-height: 500px;
    }

    /* Thinner scrollbar on mobile */
    .address-scroll-wrapper::-webkit-scrollbar {
        width: 6px;
    }

    .empty-state {
        padding: 50px 15px;
    }

    .empty-state i {
        font-size: 48px;
    }
}
/* =====================================
   SEARCH BY LOCATION – FINAL (ROW FORM)
   ===================================== */

.location-hero {
    display: flex;
    justify-content: center;
    margin: 70px 0;
}

.location-hero-card {
    width: 100%;
    max-width: 1200px;
    padding: 48px 52px;
    border-radius: 30px;

    background: linear-gradient(
        180deg,
        rgba(44, 60, 87, 0.96),
        rgba(24, 36, 58, 0.96)
    );

    box-shadow:
        0 50px 90px rgba(0,0,0,0.55),
        inset 0 1px 0 rgba(255,255,255,0.12);

    border: 1px solid rgba(255,255,255,0.15);
}

/* Header */
.location-hero-card .search-header h2 {
    text-align: center;
    font-size: 2.3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
}

.location-hero-card .search-header p {
    text-align: center;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 40px;
}

/* ✅ FORM IN ONE HORIZONTAL ROW */
.location-hero-card .search-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 26px;
    align-items: end;
}

/* Labels */
.location-hero-card .form-label {
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: #fbbf24;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* Selects */
.location-hero-card .form-select {
    height: 54px;
    border-radius: 14px;
    font-size: 0.95rem;
    padding: 0 16px;
    background: rgba(255,255,255,0.96);
}

/* Buttons */
.location-hero-card .search-actions {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 42px;
}

/* Mobile fallback */
@media (max-width: 900px) {
    .location-hero-card .search-grid {
        grid-template-columns: 1fr;
    }

    .location-hero-card {
        padding: 36px 24px;
    }
}



