/*
 * ZED website (Laravel) additions on top of the theme in assets/css/style.css:
 * header layout like leannew.qci.org.in and the accessibility options panel.
 */

/* --- header: Ministry logo on the left, ZED logo on the right -------------------------- */
.header-top { justify-content: space-between; }
.header-top .header-brand { display: flex; align-items: center; gap: 22px; }
.header-top .header-brand a img { width: auto; display: block; }
.header-top .brand-ministry img { height: 62px; }
.header-top .brand-divider { width: 1px; height: 58px; background: #d5dde3; }
.header-top .brand-zed img { height: 82px; }
.header-top .brand-qci img { width: auto; height: 56px; }

/* --- language and accessibility buttons at the right end of the menu bar ------------ */
.zed-header-tools { display: flex; align-items: center; gap: 8px; }
.zed-header-tools .bhashini-plugin-container { display: flex; align-items: center; }
@media (min-width: 768px) {
    .header-style-1 .main-menu .navbar { display: flex; align-items: center; }
    .header-style-1 .main-menu .navbar::before,
    .header-style-1 .main-menu .navbar::after { display: none; }
    .header-style-1 .main-menu .navbar > .navbar-collapse { order: 1; flex: 1 1 auto; min-width: 0; }
    .header-style-1 .main-menu .navbar > .navbar-header { order: 2; float: none; display: flex; align-items: center; }
    .zed-header-tools { margin: 0 12px 0 2px; }
}
@media (max-width: 767px) {
    .header-top .header-brand { gap: 12px; }
    .header-top { padding: 0 6px; }
    .header-top .brand-ministry img { height: 46px; }
    .header-top .brand-divider { height: 44px; }
    .header-top .brand-zed img { height: 60px; }
    .zed-header-tools { clear: both; justify-content: flex-end; padding: 0 12px 10px; }
}

/* --- accessibility button ------------------------------------------------------------ */
.zed-a11y { position: relative; }
.zed-a11y-toggle {
    width: 40px; height: 40px; padding: 0; display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255, 255, 255, .8); border-radius: 8px; background: #fff; color: #23838b; cursor: pointer;
}
.zed-a11y-toggle:hover { background: #eef8f8; }
.zed-a11y-toggle:focus-visible, .zed-a11y-option:focus-visible, .zed-a11y-close:focus-visible, .zed-a11y-reset:focus-visible {
    outline: 3px solid #f0b400; outline-offset: 2px;
}
.zed-a11y-toggle svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.zed-a11y-toggle svg circle { fill: currentColor; stroke: none; }

/* --- panel ------------------------------------------------------------------------------- */
.zed-a11y-panel {
    position: absolute; right: 0; top: calc(100% + 10px); z-index: 1050;
    width: 360px; max-width: calc(100vw - 24px); max-height: calc(100vh - 150px); overflow: auto;
    background: #fff; border: 1px solid #dde4e9; border-radius: 12px; box-shadow: 0 14px 34px rgba(16, 40, 60, .22);
    font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.35; text-align: left; letter-spacing: normal;
}
.zed-a11y-panel[hidden] { display: none; }
.zed-a11y-panel button { text-transform: none; font-weight: normal; letter-spacing: normal; }
.zed-a11y-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid #e6ebef; }
.zed-a11y-head strong { flex: 1; font-size: 15px; }
.zed-a11y-head kbd {
    padding: 2px 6px; font-size: 11px; font-family: inherit; background: #f1f4f6; border: 1px solid #d9e0e5;
    border-radius: 4px; box-shadow: none;
}
.zed-a11y-close { padding: 0 4px; border: 0; background: transparent; font-size: 24px; line-height: 1; cursor: pointer; }
.zed-a11y-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px; }
.zed-a11y-option {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    min-height: 86px; padding: 10px 6px; border: 1px solid #e1e7ec; border-radius: 8px; background: #fff;
    font-size: 12px; line-height: 1.25; text-align: center; cursor: pointer;
}
.zed-a11y-option:hover { border-color: #45a5ad; background: #f3fafa; }
.zed-a11y-option svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.zed-a11y-option svg .fill { fill: currentColor; }
.zed-a11y-option.active { border-color: #23838b; background: #e5f4f4; box-shadow: inset 0 0 0 1px #23838b; }
.zed-a11y-value { font-size: 11px; }
.zed-a11y-foot { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid #e6ebef; background: #fafbfc; font-size: 12px; }
.zed-a11y-reset { padding: 6px 12px; border: 1px solid #d9e0e5; border-radius: 6px; background: #fff; font-size: 12px; white-space: nowrap; cursor: pointer; }
/* the panel keeps its own colours in every mode (also the high-contrast theme) */
.zed-a11y-panel strong, .zed-a11y-panel span, .zed-a11y-panel button, .zed-a11y-panel kbd { color: #2c3a45 !important; }
.zed-a11y-panel .zed-a11y-value, .zed-a11y-panel .zed-a11y-foot span, .zed-a11y-panel kbd { color: #6b7781 !important; }
.zed-a11y-panel .zed-a11y-option.active, .zed-a11y-panel .zed-a11y-option.active span { color: #14646b !important; }
.zed-a11y-panel, .zed-a11y-panel .zed-a11y-option:not(.active), .zed-a11y-panel .zed-a11y-reset { background-color: #fff !important; }
@media (max-width: 767px) {
    /* phones: the panel spans the screen below the top of the page */
    .zed-a11y-panel { position: fixed; left: 12px; right: 12px; top: 72px; width: auto; max-width: none; max-height: calc(100vh - 90px); }
}
@media (max-width: 340px) { .zed-a11y-grid { grid-template-columns: repeat(2, 1fr); } }

/* --- what each option does (classes on <html>, set by public/js/zed-accessibility.js) ---- */
html.a11y-spacing body *:not(.zed-a11y *) { letter-spacing: .12em !important; word-spacing: .16em !important; }
html.a11y-line-height body :is(p, li, td, th, dd, dt, label, blockquote, h1, h2, h3, h4, h5, h6, span, a):not(.zed-a11y *) { line-height: 1.9 !important; }
html.a11y-dyslexia body *:not(.zed-a11y *):not(i):not(.fa):not([class*="fa-"]):not([class*="flaticon"]):not(.glyphicon):not(.bi) {
    font-family: Verdana, Tahoma, "Segoe UI", Arial, sans-serif !important;
}
html.a11y-links a:not(.zed-a11y *) {
    text-decoration: underline !important; outline: 2px solid #f0b400 !important; outline-offset: 1px;
    background-color: #fff6cc !important; color: #0b3a8c !important;
}
html.a11y-cursor, html.a11y-cursor * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 8.5-6.5 1.7L9.5 19z' fill='%23000' stroke='%23fff' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") 6 3, auto !important;
}
html.a11y-pause *, html.a11y-pause *::before, html.a11y-pause *::after {
    animation: none !important; transition: none !important; scroll-behavior: auto !important;
}
html.a11y-images img:not(.zed-a11y *), html.a11y-images video, html.a11y-images iframe, html.a11y-images picture { visibility: hidden !important; }
html.a11y-images body *:not(.zed-a11y *) { background-image: none !important; }
html.a11y-invert img, html.a11y-invert video, html.a11y-invert iframe { filter: invert(1) hue-rotate(180deg); }
.zed-a11y-mask { position: fixed; left: 0; right: 0; z-index: 2147483000; background: rgba(0, 0, 0, .55); pointer-events: none; }
.zed-a11y-mask-top { top: 0; }
.zed-a11y-mask-bottom { bottom: 0; }

/* --- Contact Us page ---------------------------------------------------------------------- */
.zed-contact { padding: 40px 0 60px; }
.zed-contact-card {
    background: #fff; border: 1px solid #e3e9ee; border-radius: 14px; box-shadow: 0 6px 20px rgba(16, 40, 60, .06);
    padding: 26px 28px; margin-bottom: 24px;
}
.zed-contact-card-head { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid #edf1f4; }
.zed-contact-card-head h3 { margin: 0 0 4px; font-size: 22px; font-weight: 700; color: #1d3446; }
.zed-contact-card-head p { margin: 0; color: #66788a; font-size: 14px; }
.zed-contact-info ul { list-style: none; margin: 0; padding: 0; }
.zed-contact-info li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed #e6ebef; }
.zed-contact-info li:last-child { border-bottom: 0; padding-bottom: 0; }
.zed-contact-icon {
    flex: 0 0 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: #e5f4f4; color: #23838b; font-size: 18px;
}
.zed-contact-info li div { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; line-height: 1.55; color: #4a5a68; }
.zed-contact-info li strong { color: #1d3446; font-size: 14px; }
.zed-contact-info li a { color: #23838b; word-break: break-word; }

/* site form (CMS > Settings > Security > Contact Us form = Website form) */
.zed-contact .zed-contact-form .form-control { height: 46px; border-radius: 8px; border-color: #d4dde4; box-shadow: none; }
.zed-contact .zed-contact-form textarea.form-control { height: auto; min-height: 140px; }
.zed-contact .zed-contact-form label { font-weight: 600; color: #2c3a45; }
.zed-contact .zed-contact-form .btn-primary,
.zed-contact .zed-contact-form button[type="submit"] { padding: 12px 28px; border-radius: 8px; background: #23838b; border-color: #23838b; font-weight: 600; }

/* Zoho Desk form: labels above full-width fields instead of the narrow two-column table */
.zed-contact .zsFormClass, .zed-contact .zsFormClass tbody, .zed-contact .zsFormClass tr, .zed-contact .zsFormClass td {
    display: block; width: 100% !important; border: 0;
}
.zed-contact .zsFormClass tr:first-child { display: none; }          /* its "ZED Query" title: the card has its own */
.zed-contact .zsFormClass tr { margin-bottom: 16px; }
.zed-contact .zsFormClass td { padding: 0 !important; white-space: normal !important; }
.zed-contact .zsFormClass td.zsFontClass { margin-bottom: 6px; font-weight: 600; color: #2c3a45; font-size: 14px; }
.zed-contact .zsFormClass input[type="text"], .zed-contact .zsFormClass select, .zed-contact .zsFormClass textarea {
    box-sizing: border-box; width: 100% !important; max-width: none !important; height: 46px; padding: 8px 12px; border: 1px solid #d4dde4 !important;
    border-radius: 8px; background: #fff; font-size: 14px; color: #2c3a45; box-shadow: none;
}
.zed-contact .zsFormClass textarea { height: 140px !important; min-height: 140px; }
.zed-contact .zsFormClass input:focus, .zed-contact .zsFormClass select:focus, .zed-contact .zsFormClass textarea:focus {
    outline: 0; border-color: #23838b !important; box-shadow: 0 0 0 3px rgba(35, 131, 139, .15);
}
.zed-contact .zsFormClass input[type="submit"], .zed-contact .zsFormClass input[type="button"], .zed-contact .zsFormClass button {
    height: auto; padding: 12px 28px; border: 0; border-radius: 8px; background: #23838b; color: #fff; font-weight: 600; cursor: pointer;
}
.zed-contact .zsFormClass input[type="reset"] { padding: 12px 22px; border: 1px solid #d4dde4; border-radius: 8px; background: #fff; color: #4a5a68; }
.zed-contact .wtcuploadfile { display: inline-block; padding: 8px 14px; border: 1px dashed #b9cad8; border-radius: 8px; background: #f8fbfd; color: #23838b; }
@media (max-width: 767px) { .zed-contact-card { padding: 20px 18px; } }
.zed-contact-email { color: #23838b; word-break: break-word; }

/* --- FAQs page ------------------------------------------------------------------------------- */
.zed-faq { padding: 40px 0 60px; }
.zed-faq-intro h3 { margin: 0 0 6px; font-size: 26px; font-weight: 700; color: #1d3446; }
.zed-faq-intro > p { color: #66788a; margin: 0 0 18px; }
.zed-faq-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.zed-faq-search { position: relative; flex: 1 1 280px; }
.zed-faq-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #8a98a5; }
.zed-faq-search input {
    width: 100%; height: 48px; padding: 0 16px 0 44px; border: 1px solid #d4dde4; border-radius: 24px;
    font-size: 15px; color: #2c3a45; background: #fff; box-shadow: 0 2px 8px rgba(16, 40, 60, .04);
}
.zed-faq-search input:focus { outline: 0; border-color: #23838b; box-shadow: 0 0 0 3px rgba(35, 131, 139, .15); }
.zed-faq-btn { height: 48px; padding: 0 20px; border: 1px solid #23838b; border-radius: 24px; background: #fff; color: #23838b; font-weight: 600; cursor: pointer; }
.zed-faq-btn:hover { background: #23838b; color: #fff; }
.zed-faq-count { margin: 14px 0 10px; color: #66788a; font-size: 14px; }
.zed-faq-list { display: flex; flex-direction: column; gap: 12px; }
.zed-faq-item { background: #fff; border: 1px solid #e3e9ee; border-radius: 12px; box-shadow: 0 2px 10px rgba(16, 40, 60, .04); overflow: hidden; }
.zed-faq-item[open] { border-color: #b9dcdf; box-shadow: 0 6px 18px rgba(16, 40, 60, .08); }
.zed-faq-item summary {
    display: flex; align-items: center; gap: 14px; padding: 16px 20px; cursor: pointer; list-style: none;
    font-size: 16px; font-weight: 600; color: #1d3446; line-height: 1.45;
}
.zed-faq-item summary::-webkit-details-marker { display: none; }
.zed-faq-item summary:hover { background: #f6fafb; }
.zed-faq-item summary:focus-visible { outline: 3px solid #f0b400; outline-offset: -3px; }
.zed-faq-num {
    flex: 0 0 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: #e5f4f4; color: #23838b; font-size: 14px; font-weight: 700;
}
.zed-faq-item[open] .zed-faq-num { background: #23838b; color: #fff; }
.zed-faq-q { flex: 1 1 auto; }
.zed-faq-chevron { font-size: 22px; color: #8a98a5; transition: transform .2s ease; }
.zed-faq-item[open] .zed-faq-chevron { transform: rotate(180deg); color: #23838b; }
.zed-faq-a { padding: 4px 22px 20px 68px; color: #4a5a68; font-size: 15px; line-height: 1.75; }
.zed-faq-a p:last-child { margin-bottom: 0; }
.zed-faq-a a { color: #23838b; text-decoration: underline; }
.zed-faq-a ul, .zed-faq-a ol { padding-left: 20px; }
.zed-faq-empty { padding: 30px; text-align: center; color: #66788a; background: #fff; border: 1px dashed #d4dde4; border-radius: 12px; }
.zed-faq-help {
    position: sticky; top: 110px; margin-top: 8px; padding: 26px; border-radius: 14px; color: #fff; text-align: center;
    background: linear-gradient(160deg, #3fa1a8 0%, #23838b 55%, #1d6f76 100%); box-shadow: 0 10px 26px rgba(35, 131, 139, .25);
}
.zed-faq-help-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .18); font-size: 26px; margin-bottom: 10px; }
.zed-faq-help h4 { margin: 0 0 6px; font-size: 20px; font-weight: 700; color: #fff; }
.zed-faq-help p { color: rgba(255, 255, 255, .9); margin: 0 0 10px; }
.zed-faq-help-line { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; }
.zed-faq-help-line a, .zed-faq-help-line span { color: #fff; word-break: break-word; }
.zed-faq-help-btn { display: inline-block; margin-top: 8px; padding: 11px 26px; border-radius: 24px; background: #fff; color: #1d6f76; font-weight: 700; text-decoration: none; }
.zed-faq-help-btn:hover, .zed-faq-help-btn:focus { color: #1d6f76; text-decoration: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, .45); }
@media (max-width: 991px) {
    .zed-faq-help { position: static; margin-top: 24px; }
    .zed-faq-a { padding-left: 22px; }
}
.zed-faq-help h4, .zed-faq-btn, .zed-faq-help-btn, .zed-faq-intro h3 { text-transform: none; letter-spacing: normal; }
