/* ═══════════════════════════════════════════════════════════════
   FARMER ID CARD PORTAL — COMPACT GOVT PORTAL STYLE CSS
   portal.css — Professional Form Aesthetics
   ═══════════════════════════════════════════════════════════════ */

/* ── Portal Wrapper ── */
.govt-portal-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

/* ── Tiranga Strip ── */
.tiranga-strip {
    height: 6px;
    background: linear-gradient(to right, #FF9933 33.33%, #FFFFFF 33.33%, #FFFFFF 66.66%, #138808 66.66%);
    border-radius: 4px 4px 0 0;
    margin-bottom: 0;
}

/* ═══════════ PORTAL HEADER ═══════════ */
.portal-header-block {
    background: linear-gradient(135deg, #0c1929 0%, #162a4a 50%, #0e2240 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-top: none;
    padding: 24px 28px;
    border-radius: 0 0 12px 12px;
    margin-bottom: 12px;
}

.portal-header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.portal-emblem {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #1a3a5c, #0d2748);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,153,51,0.4);
    flex-shrink: 0;
}

.emblem-symbol {
    font-size: 28px;
}

.portal-header-text {
    flex: 1;
    min-width: 200px;
}

.portal-ministry {
    font-size: 0.72rem;
    color: #f59e0b;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin: 0 0 4px;
}

.portal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 4px;
    letter-spacing: -0.3px;
}

.portal-subtitle {
    font-size: 0.82rem;
    color: #94a3b8;
    margin: 0;
}

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

.portal-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.portal-badge.green {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.portal-badge.gold {
    background: rgba(234, 179, 8, 0.12);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.25);
}

/* ═══════════ ACTION TOOLBAR ═══════════ */
.portal-toolbar {
    background: linear-gradient(135deg, #111827, #1e293b);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 12px;
}

.toolbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.toolbar-left, .toolbar-right {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    color: #e2e8f0;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', 'Noto Sans Devanagari', sans-serif;
}

.toolbar-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

.toolbar-btn:active { transform: translateY(0); }

.toolbar-btn.btn-new-card { border-color: rgba(34,197,94,0.3); }
.toolbar-btn.btn-new-card:hover { background: rgba(34,197,94,0.15); color: #4ade80; }

.toolbar-btn.btn-update-card { border-color: rgba(59,130,246,0.4); background: rgba(59,130,246,0.1); color: #60a5fa; }
.toolbar-btn.btn-update-card:hover { background: rgba(59,130,246,0.25); border-color: #3b82f6; color: #93c5fd; }

.toolbar-btn.btn-submit-main {
    background: linear-gradient(135deg, #16a34a, #15803d);
    border-color: #22c55e;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}

.toolbar-btn.btn-submit-main:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 6px 18px rgba(34, 197, 94, 0.45);
}

.tb-icon { font-size: 1.1rem; }
.tb-text { white-space: nowrap; }

/* ═══════════ COLLAPSIBLE FORM ═══════════ */
.govt-form-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.govt-form-section {
    background: linear-gradient(135deg, #0f172a, #1a2332);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.govt-form-section:hover {
    border-color: rgba(255,255,255,0.12);
}

.section-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 18px;
    border: none;
    background: rgba(255,255,255,0.02);
    color: #e2e8f0;
    cursor: pointer;
    font-family: 'Inter', 'Noto Sans Devanagari', sans-serif;
    text-align: left;
    transition: background 0.2s ease;
}

.section-toggle:hover {
    background: rgba(255,255,255,0.05);
}

.section-toggle-icon {
    width: 18px;
    font-size: 0.75rem;
    color: #60a5fa;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.section-toggle-title {
    flex: 1;
    font-size: 0.92rem;
    font-weight: 700;
}

.section-toggle-badge {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245,158,11,0.25);
}

.govt-form-section .section-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 18px;
}

.govt-form-section.open .section-body {
    max-height: 2000px;
    padding: 4px 18px 20px;
}

/* ═══════════ COMPACT 3-COLUMN FORM GRID ═══════════ */
.govt-form-grid {
    display: grid;
    gap: 12px;
}

.govt-form-grid.\33-col {
    grid-template-columns: repeat(3, 1fr);
}

.govt-form-grid.\32-col {
    grid-template-columns: repeat(2, 1fr);
}

.govt-form-grid .form-group { display: flex; flex-direction: column; }

.govt-form-grid label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 4px;
    letter-spacing: 0.2px;
}

.req { color: #ef4444; font-weight: 700; }

.govt-input,
.govt-form-grid input[type="text"],
.govt-form-grid input[type="tel"],
.govt-form-grid select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.7);
    color: #f1f5f9;
    font-size: 0.85rem;
    font-family: 'Inter', 'Noto Sans Devanagari', sans-serif;
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.govt-input:focus,
.govt-form-grid input:focus,
.govt-form-grid select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background: rgba(15, 23, 42, 0.9);
}

.govt-input::placeholder { color: #475569; }

.photo-upload-compact {
    height: 42px;
    border: 1px dashed rgba(255,255,255,0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
    background: rgba(15, 23, 42, 0.6);
    position: relative;
    padding: 0 10px;
}

.photo-upload-compact:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.08);
}

.photo-upload-compact img {
    height: 100%;
    width: auto;
    object-fit: cover;
    border-radius: 4px;
}

.photo-placeholder-compact {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
}

.photo-placeholder-compact .camera-icon { font-size: 1.1rem; }

/* ═══════════ DYNAMIC LAND RECORDS TABLE ═══════════ */
.land-records-table-wrapper {
    margin-top: 14px;
    background: rgba(255,255,255,0.015);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 14px;
}

.land-records-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.land-table-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #cbd5e1;
    margin: 0;
}

.btn-add-land-row {
    padding: 6px 14px;
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 6px;
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', 'Noto Sans Devanagari', sans-serif;
}

.btn-add-land-row:hover {
    background: rgba(34, 197, 94, 0.22);
    border-color: #22c55e;
    transform: translateY(-1px);
}

.table-responsive {
    overflow-x: auto;
}

.land-records-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.land-records-table th {
    background: rgba(15, 23, 42, 0.9);
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.land-records-table td {
    padding: 6px 6px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    vertical-align: middle;
}

.land-table-input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.8);
    color: #f1f5f9;
    font-size: 0.78rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    box-sizing: border-box;
}

.land-table-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.12);
}

.btn-remove-row {
    padding: 4px 8px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 4px;
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-remove-row:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #ef4444;
}

/* ═══════════ ⚠️ FIRST-TIME USER CONSENT MODAL STYLES ═══════════ */
.consent-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.consent-modal-overlay.hidden {
    display: none !important;
}

.consent-modal-card {
    background: #fffdf5;
    border-radius: 8px;
    max-width: 580px;
    width: 100%;
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
    overflow: hidden;
    border: 1px solid #d97706;
    animation: consentModalFadeIn 0.3s ease-out;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333333;
}

@keyframes consentModalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.consent-header-strip {
    background: #fff8eb;
    border-bottom: 2px solid #ea580c;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.warning-triangle {
    color: #ea580c;
    font-size: 1.4rem;
}

.consent-header-strip h2 {
    margin: 0;
    color: #b91c1c;
    font-size: 1.25rem;
    font-weight: 700;
}

.consent-modal-body {
    padding: 20px 24px;
    max-height: 68vh;
    overflow-y: auto;
}

.not-govt-heading {
    text-align: center;
    color: #b91c1c;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 16px;
}

.not-govt-heading span {
    text-transform: uppercase;
    text-decoration: underline;
    font-weight: 800;
}

.shopkeeper-instruction-box {
    border: 1px solid #fde68a;
    background: #fffef0;
    border-radius: 8px;
    padding: 16px;
}

.box-title {
    color: #d97706;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 0 8px;
}

.box-desc {
    color: #4b5563;
    font-size: 0.88rem;
    margin: 0 0 10px;
}

.consent-bullet-list {
    margin: 0 0 16px 20px;
    padding: 0;
    color: #374151;
    font-size: 0.88rem;
    line-height: 1.6;
}

.consent-bullet-list li {
    margin-bottom: 6px;
}

.consent-caution-box {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    padding: 12px 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.info-circle {
    color: #dc2626;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.consent-caution-box p {
    margin: 0;
    color: #991b1b;
    font-size: 0.82rem;
    line-height: 1.45;
}

.consent-modal-footer {
    background: #f3f4f6;
    border-top: 1px solid #e5e7eb;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.consent-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #374151;
    cursor: pointer;
}

.consent-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
    cursor: pointer;
}

.consent-btn-group {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.btn-consent-understand {
    padding: 10px 24px;
    border-radius: 6px;
    border: none;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #16a34a;
    color: #ffffff;
    min-width: 130px;
}

.btn-consent-understand:disabled {
    background: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
}

.btn-consent-understand:not(:disabled):hover {
    background: #15803d;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.btn-consent-disagree {
    padding: 10px 24px;
    border-radius: 6px;
    border: none;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ef4444;
    color: #ffffff;
    min-width: 130px;
}

.btn-consent-disagree:hover {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* ═══════════ SEO HASHTAGS BLOCK ═══════════ */
.seo-hashtags-container.centered {
    margin-top: 24px;
    padding: 14px 16px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    text-align: center;
}

.hashtag-list.centered {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hashtag-badge {
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(59, 130, 246, 0.08);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.18);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ═══════════ ENGLISH CENTERED LEGAL DISCLAIMER ═══════════ */
.legal-disclaimer-box.centered {
    margin-top: 14px;
    padding: 16px 20px;
    background: rgba(245, 158, 11, 0.04);
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 10px;
    text-align: center;
}

.disclaimer-text.centered {
    font-size: 0.78rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

/* ═══════════ SUBMIT ACTION BAR ═══════════ */
.form-submit-bar {
    margin-top: 16px;
    text-align: center;
}

.btn-submit-large {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4);
    font-family: 'Inter', 'Noto Sans Devanagari', sans-serif;
}

.btn-submit-large:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.5);
    transform: translateY(-2px);
}

.btn-submit-large:active { transform: translateY(0); }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 768px) {
    .portal-header-inner { flex-direction: column; text-align: center; }
    .portal-badges { justify-content: center; }
    .toolbar-inner { flex-direction: column; }
    .toolbar-left, .toolbar-right { justify-content: center; width: 100%; }
    .govt-form-grid.\33-col, .govt-form-grid.\32-col { grid-template-columns: 1fr; }
    .portal-title { font-size: 1.2rem; }
}
