/* ====================================================
   public.css - Common CSS for all JSHB public pages
   ==================================================== */

/* Page Background */
.page-bg {
    background-color: #f1f5f9;
}

/* ---- Page Hero Section (Common for all sub-pages) ---- */
.page-hero {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 100%);
    padding: 7rem 0 3.5rem 0; /* Top padding clears fixed navbar */
    color: white;
    border-bottom: 5px solid var(--primary);
}

.hero-inner {
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-inner {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hero-icon-circle {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    border: 3px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    flex-shrink: 0;
}

.hero-titles h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    letter-spacing: 0.02em;
}

.hero-titles h2 {
    color: var(--primary);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-titles p {
    font-size: 0.875rem;
    color: #cbd5e1;
    line-height: 1.4;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.hero-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    color: var(--primary);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.feature-text h4 {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.feature-text p {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0;
}

/* ---- Page Section Wrapper ---- */
.page-section {
    padding: 3rem 0;
    background-color: #f1f5f9;
}

/* ---- Section Heading ---- */
.section-heading {
    color: var(--secondary);
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.section-sub {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* ---- Sidebar Boxes ---- */
.sidebar-box {
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.box-navy {
    background-color: var(--secondary);
    color: white;
}

.box-yellow {
    background-color: var(--primary);
    color: var(--secondary-dark);
}

.box-light {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--text-dark);
}

.box-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.box-light .box-header {
    border-bottom-color: #e2e8f0;
}

.box-yellow .box-header {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.box-header i {
    font-size: 1.25rem;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #ffffff;
}

.info-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: white;
    font-weight: bold;
}

/* ---- Content Cards ---- */
.content-card {
    background-color: white;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

/* ---- Form Styles ---- */
.form-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--secondary);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
}

.form-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .form-grid.two-cols {
        grid-template-columns: 1fr 1fr;
    }
    .form-grid.three-cols {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-dark);
}

.form-label .text-danger {
    color: #ef4444;
}

.form-control {
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

/* ---- File Upload ---- */
.file-upload-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    overflow: hidden;
    background: white;
}

.file-upload-btn {
    background-color: #f1f5f9;
    padding: 0.75rem 1rem;
    border-right: 1px solid #cbd5e1;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.file-upload-text {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    flex-grow: 1;
}

.file-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ---- Checkbox ---- */
.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.checkbox-wrapper input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 1rem;
    height: 1rem;
    cursor: pointer;
    accent-color: var(--secondary);
}

.checkbox-wrapper label {
    font-size: 0.875rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* ---- Form Action Buttons ---- */
.form-actions {
    display: grid;
    gap: 1rem;
}

@media (min-width: 576px) {
    .form-actions {
        grid-template-columns: 1fr 1fr;
    }
}

.btn-submit {
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-submit:hover {
    background-color: var(--secondary-dark);
}

.btn-reset {
    background-color: white;
    color: var(--secondary);
    border: 1px solid var(--secondary);
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-reset:hover {
    background-color: #f8fafc;
}

.btn-outline-dark {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    font-weight: 700;
    border-radius: 0.5rem;
    transition: all 0.2s;
    margin-top: 1rem;
}

.btn-outline-dark:hover {
    background-color: var(--secondary);
    color: white;
}

/* ---- Alert Boxes ---- */
.alert-warning {
    background-color: #fef9c3;
    border: 1px solid #fde047;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.alert-warning i {
    color: var(--primary-dark);
    font-size: 1.25rem;
    margin-top: 0.1rem;
}

.alert-warning p {
    margin: 0;
    font-size: 0.875rem;
    color: #854d0e;
    font-weight: 600;
    line-height: 1.5;
}

.alert-info {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.alert-info i {
    color: #2563eb;
    font-size: 1.25rem;
    margin-top: 0.1rem;
}

.alert-info p {
    margin: 0;
    font-size: 0.875rem;
    color: #1e40af;
    font-weight: 600;
    line-height: 1.5;
}

/* ---- Scheme Card Styles ---- */
.schemes-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.scheme-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.scheme-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: var(--secondary);
}

.scheme-header {
    padding: 18px 24px;
    background: #fafbfc;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.scheme-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.scheme-sno {
    width: 36px;
    height: 36px;
    background: var(--secondary);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.scheme-name-section h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}

.scheme-name-hindi {
    font-size: 14px;
    color: #068d23;
    margin: 0;
    font-weight: 700;
}

.scheme-code {
    font-size: 14px;
    color: white;
    font-family: monospace;
    background: #10b981;
    padding: 4px 12px;
    border-radius: 6px;
    margin-top: 6px;
    font-weight: 600;
    display: inline-block;
}

.scheme-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-status.active {
    background: #d1fae5;
    color: #065f46;
}

.badge-status.inactive {
    background: #fee2e2;
    color: #991b1b;
}

.badge-lease {
    background: #e0e7ff;
    color: #3730a3;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.scheme-body {
    padding: 20px 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #f0f0f0;
}

.info-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 600;
}

.info-value {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

.price-value {
    color: #059669;
    font-size: 14px;
    font-weight: 800;
}

.down-price-value {
    color: #cc050f;
    font-size: 14px;
    font-weight: 800;
}

.emi-price-value {
    color: #084ee7;
    font-size: 14px;
    font-weight: 800;
}

.scheme-footer {
    padding: 14px 24px;
    background: #fafbfc;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.created-info {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

.apply-btn {
    background-color: var(--primary);
    color: var(--secondary-dark);
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.apply-btn:hover {
    background-color: #eab308;
    color: var(--secondary-dark);
}

@media (max-width: 768px) {
    .scheme-body {
        grid-template-columns: 1fr;
    }

    .scheme-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---- Contact List (used in sidebar) ---- */
.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.contact-list i {
    font-size: 1.25rem;
    margin-top: 0.1rem;
}

/* ---- Tender Card ---- */
.tender-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    transition: all 0.2s;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.tender-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transform: translateY(-1px);
    border-color: var(--secondary);
}

.tender-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.tender-icon.tender { background: #eff6ff; color: #2563eb; }
.tender-icon.notice { background: #fef9c3; color: #ca8a04; }
.tender-icon.result { background: #d1fae5; color: #065f46; }

.tender-body { flex: 1; }

.tender-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
}

.tender-body p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.tender-meta {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.tender-meta span { display: flex; align-items: center; gap: 0.35rem; }

.tender-download {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border: 1.5px solid var(--secondary);
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: center;
}

.tender-download:hover {
    background: var(--secondary);
    color: white;
}

/* ---- About Page ---- */
.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.about-stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.about-stat-card .stat-num {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--secondary);
    line-height: 1;
}

.about-stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 0.5rem;
}

.about-stat-card .stat-icon {
    font-size: 1.75rem;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.about-prose h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--secondary);
    margin: 2rem 0 0.75rem;
}

.about-prose p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-prose ul {
    padding-left: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 2;
}

/* ---- Contact Page ---- */
.contact-info-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: all 0.2s;
}

.contact-info-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.contact-info-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    background: var(--secondary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-info-icon.yellow {
    background: var(--primary);
    color: var(--secondary-dark);
}

.contact-info-card h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-info-card p, .contact-info-card a {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.5;
}

.contact-info-card a:hover { color: var(--secondary); }

/* ---- Map Embed ---- */
.map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}

.map-wrapper iframe {
    width: 100%;
    height: 280px;
    display: block;
    border: none;
}
