/* 1. General Page Styles (Obsidian & Gold Theme) */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121316; /* Deep charcoal background matching the logo */
    color: #e5e7eb;
}

/* 2. Top Navigation Bar */
.navbar {
    background-color: #18191c;
    border-bottom: 1px solid #d4af37; /* Gold accent line */
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 86px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.navbar .site-title {
    font-size: 22px;
    font-weight: bold;
    color: #e0be53; /* Metallic gold */
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar .site-title img,
.navbar .nav-logo {
    height: 66px;
    width: auto;
    border-radius: 4px;
    border: none;
}

.navbar .nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.navbar .nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 30px 4px;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.navbar .nav-links a:hover,
.navbar .nav-links a.active {
    color: #e0be53;
    border-bottom: 3px solid #d4af37;
}

.navbar .nav-links a.active {
    font-weight: bold;
}

/* 3. Home Page Welcome Box */
.main-content {
    max-width: 850px;
    margin: 50px auto;
    padding: 40px;
    background: #18191c; /* Matches the logo background so the logo blends seamlessly */
    border: 1px solid #3a321d;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.hero-logo {
    max-width: 240px;
    height: auto;
    margin: 0 auto 24px auto;
    display: block;
    border-radius: 6px;
    border: 1px solid #d4af37;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.15);
}


.hero-word {
    max-width: 600px;
    height: auto;
    margin: 0 auto 24px auto;
    display: block;
   
   
}

.main-content h1 {
    color: #e0be53;
    margin-bottom: 15px;
}

.lead-text {
    font-size: 18px;
    font-weight: 600;
    color: #f3f4f6;
    margin-bottom: 16px;
}

.info-section {
    background-color: #202226;
    border-right: 4px solid #d4af37;
    padding: 16px 20px;
    margin: 24px 0 30px 0;
    border-radius: 4px;
}
.justified-text {
    text-align: justify;
    text-justify: inter-word;
    font-size: 16px;
    line-height: 1.9;
    color: #e5e7eb;
    margin: 0;
}
.centered-title {
    text-align: center;
    color: #e0be53;
    font-size: 60px;
    margin: 18px 0;
    letter-spacing: 0.5px;
}

.info-section p {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    color: #d1d5db;
}
.closing-pray {
    text-align: center;
    font-weight: bold;
    color: #f3f4f6;
    font-size: 16px;
    margin: 20px 0 0 0;
}
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37 0%, #aa821c 100%);
    color: #121316;
    text-decoration: none;
    padding: 14px 32px;
    margin-top: 32px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    transition: opacity 0.2s, transform 0.1s;
}

.btn-primary:hover {
    opacity: 0.92;
}

/* 4. Form Card & Notice Box (Clean Light Surface for Easy Reading) */
.card {
    background: #ffffff;
    color: #222222;
    max-width: 800px;
    margin: 40px auto;
    padding: 32px;
    border-radius: 10px;
    border-top: 4px solid #d4af37;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

h2 {
    margin-top: 0;
    color: #18191c;
    border-bottom: 2px solid #e6d59e;
    padding-bottom: 12px;
}

.notice-box {
    background-color: #fdfbf4;
    border-right: 4px solid #d4af37;
    padding: 14px 18px;
    border-radius: 4px;
    margin-bottom: 24px;
    font-size: 15px;
    color: #333;
    line-height: 1.8;
}

.notice-title {
    font-weight: bold;
    color: #8a6810;
    margin-bottom: 6px;
}

.notice-list {
    list-style-type: none;
    padding-right: 20px;
    margin: 0;
}

.notice-list li {
    position: relative;
    padding-right: 18px; /* Indents all wrapped lines to align with the start of the text */
    margin-bottom: 6px;
}

.notice-list li::before {
    content: "-";
    position: absolute;
    right: 0; /* Pins the dash cleanly to the right margin */
    font-weight: bold;
    color: #b5891b;
}

/* 5. Form Fields, Fieldsets & Inputs */
fieldset {
    border: 1px solid #d8c894;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 22px;
    background-color: #ffffff;
}

legend {
    font-weight: bold;
    color: #8a6810; /* Deep readable gold for white backgrounds */
    padding: 0 10px;
    font-size: 16px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 6px;
    color: #333333;
}

.required::after {
    content: " *";
    color: #c92a2a;
}

input[type="text"],
input[type="date"],
input[type="tel"],
input[type="number"],
select,
textarea {
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    background-color: #ffffff;
    color: #18191c;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #b5891b;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
    outline: none;
}

button {
    background: linear-gradient(135deg, #18191c 0%, #2a2c32 100%);
    color: #e0be53;
    border: 1px solid #d4af37;
    padding: 14px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    font-family: inherit;
    width: 100%;
    transition: background 0.2s, color 0.2s;
}

button:hover {
    background: linear-gradient(135deg, #d4af37 0%, #aa821c 100%);
    color: #121316;
}

#status {
    margin-top: 16px;
    font-weight: bold;
    text-align: center;
    font-size: 15px;
}
/* ========================================================= */
/* 6. Print-Only Overrides (Clean White Paper, No Navbar)    */
/* ========================================================= */
@media print {
    /* 1. White paper background & dark ink to save toner */
    body {
        background-color: #ffffff !important;
        color: #000000 !important;
    }

    /* 2. Hide sticky navigation bar, submit button, and file pickers */
    .navbar,
    button,
    input[type="file"] {
        display: none !important;
    }

    /* 3. Expand form card to full paper width without shadows */
    .card {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
    }

    /* 4. Force any hidden nested boxes (Yes/No branches) to show in print */
    .nested-box,
    #complaint_party_box,
    #formal_report_box,
    #investigation_result_box,
    #court_orders_question_box,
    #ownership_doc_box,
    #court_orders_details_box {
        display: block !important;
    }

    /* 5. Prevent fieldsets from splitting awkwardly across page breaks */
    fieldset {
        border: 1px solid #888888 !important;
        break-inside: avoid;
        page-break-inside: avoid;
        margin-bottom: 16px !important;
    }
}
