/* =====================================================
   Islamic Will Generator — style-blue.css
   Shia Ithna-Asheri colour identity

   Navy   #1c2951  — blue mosaic tiles of Najaf & Karbala shrines
   Navy   #253469  — mid navy
   Crimson #7a1215 — martyrs of Karbala (AS)
   Gold   #c9962e  — golden domes of the holy shrines

   Drop-in replacement for style.css — no HTML changes needed.
   ===================================================== */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 19px;
    line-height: 1.75;
    background: #f5f1e8;
    color: #1a1a1a;
    min-height: 100vh;
}

/* ── Header ── */
.site-header {
    background: linear-gradient(135deg, #1c2951 0%, #253469 100%);
    color: #fff;
    text-align: center;
    padding: 1.8rem 1rem 1.4rem;
    border-bottom: 4px solid #c9962e;
}
.site-header h1 {
    font-size: 1.9rem;
    letter-spacing: .03em;
    margin-bottom: .2rem;
}
.site-header p {
    font-size: 1rem;
    opacity: .88;
    font-family: Arial, sans-serif;
}

/* ── Privacy bar ── */
.privacy-bar {
    background: #fff8e1;
    border: 2px solid #c9962e;
    border-radius: 8px;
    padding: .9rem 1.4rem;
    margin: 1.4rem auto .5rem;
    max-width: 820px;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: .95rem;
    color: #5a3e00;
}
.privacy-bar strong { color: #8b6914; }

/* ── Container ── */
.container {
    max-width: 820px;
    margin: 0 auto;
    padding: .5rem 1.4rem 4rem;
}

/* ── Progress bar ── */
.progress-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin: 1.6rem 0 2.4rem;
}
.progress-wrap::before {
    content: '';
    position: absolute;
    top: 19px; left: 5%; right: 5%;
    height: 4px;
    background: #ddd;
    z-index: 0;
}
.ps {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    z-index: 1;
}
.ps-num {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #ddd; color: #777;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-size: 1rem;
    font-family: Arial, sans-serif;
}
.ps.done  .ps-num { background: #c9962e; color: #fff; }
.ps.active .ps-num { background: #1c2951; color: #fff; box-shadow: 0 0 0 4px rgba(28,41,81,.2); }
.ps-lbl {
    font-family: Arial, sans-serif;
    font-size: .7rem;
    text-align: center;
    color: #888;
    max-width: 72px;
    margin-top: .35rem;
    line-height: 1.3;
}
.ps.active .ps-lbl { color: #1c2951; font-weight: bold; }
.ps.done  .ps-lbl  { color: #c9962e; }

/* ── Page title ── */
.page-title {
    font-size: 1.55rem;
    color: #1c2951;
    border-bottom: 3px solid #c9962e;
    padding-bottom: .45rem;
    margin-bottom: 1.6rem;
}

/* ── Section headings ── */
.sec-head {
    font-size: 1.05rem;
    font-weight: bold;
    font-style: italic;
    color: #1c2951;
    margin: 1.8rem 0 .5rem;
    padding-left: .7rem;
    border-left: 4px solid #c9962e;
}
.sec-intro {
    font-family: Arial, sans-serif;
    font-size: .93rem;
    color: #555;
    margin-bottom: .8rem;
}
.sec-sub {
    font-weight: normal;
    font-style: italic;
    font-size: .9rem;
}

/* ── Form groups ── */
.fg { margin-bottom: 1.4rem; }

label.lbl {
    display: block;
    font-weight: bold;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    margin-bottom: .35rem;
    color: #222;
}
.req { color: #7a1215; }

.hint {
    font-family: Arial, sans-serif;
    font-size: .83rem;
    color: #666;
    margin-top: .25rem;
    font-style: italic;
}

/* ── Inputs ── */
input[type=text],
input[type=email],
input[type=date],
textarea {
    width: 100%;
    padding: .7rem 1rem;
    font-size: 1rem;
    font-family: Georgia, serif;
    color: #1a1a1a;
    background: #fff;
    border: 2px solid #bbb;
    border-radius: 7px;
    transition: border-color .2s, box-shadow .2s;
}
input[type=text]:focus,
input[type=email]:focus,
input[type=date]:focus,
textarea:focus {
    outline: none;
    border-color: #1c2951;
    box-shadow: 0 0 0 3px rgba(28,41,81,.15);
}
textarea { min-height: 110px; resize: vertical; }

/* ── Grid ── */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }

/* ── Tables ── */
.tbl-wrap { overflow-x: auto; margin: .5rem 0 1rem; }

table.ft {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    font-size: .95rem;
}
table.ft thead th {
    background: #1c2951;
    color: #fff;
    padding: .55rem .8rem;
    text-align: left;
}
table.ft thead th.col-sig {
    color: #aaa;
    font-weight: normal;
    font-style: italic;
}
table.ft tbody td {
    padding: .35rem .5rem;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
}
table.ft tbody td.col-sig-val {
    color: #aaa;
    font-style: italic;
    font-size: .9rem;
}
table.ft tbody tr:nth-child(even) td { background: #fafafa; }
table.ft input {
    padding: .45rem .6rem;
    font-size: .9rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
}

/* ── Khums radio cards ── */
.radio-card {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: .8rem 1rem;
    margin-bottom: .7rem;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    font-family: Arial, sans-serif;
    font-size: .95rem;
}
.radio-card:hover { border-color: #1c2951; background: #f0f2f8; }
.radio-card.sel   { border-color: #1c2951; background: #eaecf7; }
.radio-card label {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    cursor: pointer;
    font-weight: normal;
    font-family: Arial, sans-serif;
    font-size: .95rem;
}
.radio-card input[type=radio] {
    width: 20px; height: 20px;
    margin-top: 3px;
    accent-color: #1c2951;
    flex-shrink: 0;
}
.cond {
    display: none;
    padding: .9rem 1rem .3rem;
    background: #f9f9f9;
    border-left: 3px solid #1c2951;
    border-radius: 0 6px 6px 0;
    margin-top: .5rem;
}

/* ── Funeral radio ── */
.radio-inline {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: .4rem;
}
.radio-inline label {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .9rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: .95rem;
    font-weight: normal;
    transition: border-color .2s, background .2s;
}
.radio-inline input[type=radio] {
    width: 18px; height: 18px;
    accent-color: #1c2951;
}

/* ── Info / warning boxes ── */
.info-box {
    background: #eef0f8;
    border: 2px solid #1c2951;
    border-radius: 8px;
    padding: .9rem 1.2rem;
    margin-bottom: 1.4rem;
    font-family: Arial, sans-serif;
    font-size: .93rem;
    color: #1a2245;
}
.info-box strong { color: #1c2951; display: block; margin-bottom: .25rem; }

.warning-box {
    background: #fff8e1;
    border: 2px solid #c9962e;
    border-radius: 8px;
    padding: 1rem 1.3rem;
    margin-bottom: 1rem;
    font-family: Arial, sans-serif;
    font-size: .93rem;
    color: #5a3e00;
}

/* ── Kalima box ── */
.kalima-box {
    background: #eef0f8;
    border: 2px solid #1c2951;
    border-radius: 10px;
    padding: 1.2rem 1.4rem;
    text-align: center;
    margin: 1rem 0;
    font-family: Georgia, serif;
    font-size: 1.1rem;
    font-weight: bold;
    color: #1c2951;
    line-height: 2.2;
}

/* ── Error box ── */
.err-box {
    background: #ffebee;
    border: 2px solid #c62828;
    border-radius: 8px;
    padding: .9rem 1.2rem;
    margin-bottom: 1.4rem;
    color: #b71c1c;
    font-family: Arial, sans-serif;
    font-size: .95rem;
}
.err-box ul { padding-left: 1.3rem; margin-top: .3rem; }

/* ── Buttons ── */
.btn-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.btn {
    padding: .85rem 2.2rem;
    font-size: 1.1rem;
    font-family: Arial, sans-serif;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s, transform .1s;
    text-decoration: none;
    display: inline-block;
}
.btn:active { transform: scale(.97); }
.btn-back   { background: #e0e0e0; color: #333; }
.btn-back:hover  { background: #c8c8c8; }
.btn-next   { background: #1c2951; color: #fff; margin-left: auto; }
.btn-next:hover  { background: #152040; }
.btn-submit { background: #c9962e; color: #fff; margin-left: auto; }
.btn-submit:hover { background: #a87a22; }

/* ── Success page ── */
.success-wrap {
    text-align: center;
    padding: 3rem 1rem;
}
.success-icon { font-size: 4.5rem; margin-bottom: 1rem; }
.success-wrap h2 { font-size: 2rem; color: #1c2951; margin-bottom: .8rem; }
.success-wrap p {
    font-size: 1.05rem;
    color: #555;
    max-width: 580px;
    margin: 0 auto .9rem;
    font-family: Arial, sans-serif;
}
.success-dua { margin-top: 1.5rem !important; }
.success-restart { margin-top: 1.5rem; }

.next-steps {
    background: #eef0f8;
    border: 2px solid #1c2951;
    border-radius: 10px;
    padding: 1.4rem 1.8rem;
    max-width: 580px;
    margin: 1.4rem auto;
    text-align: left;
    font-family: Arial, sans-serif;
    font-size: .98rem;
}
.next-steps h3 { color: #1c2951; margin-bottom: .6rem; }
.next-steps ol { padding-left: 1.4rem; }
.next-steps li { margin-bottom: .4rem; }

/* ── Footer ── */
.site-footer {
    text-align: center;
    padding: 1.5rem;
    font-family: Arial, sans-serif;
    font-size: .85rem;
    color: #888;
    border-top: 1px solid #ddd;
    margin-top: 2rem;
}

/* ── Responsive ── */
@media (max-width: 620px) {
    body { font-size: 16px; }
    .site-header h1 { font-size: 1.4rem; }
    .ps-lbl { display: none; }
    .grid2  { grid-template-columns: 1fr; }
}
