/* =========================================================
   NDNC COMPLAINT PORTAL
   Professional Public Interface
   ========================================================= */

:root {
    --primary: #163b65;
    --primary-dark: #0d2947;
    --primary-light: #eaf2fa;

    --accent: #0d7a6b;
    --accent-dark: #096356;

    --text: #182533;
    --text-light: #657384;

    --border: #dce3ea;
    --background: #f5f7fa;
    --white: #ffffff;

    --success: #13795b;
    --success-bg: #eaf8f2;

    --danger: #b42318;
    --danger-bg: #fff1f0;

    --shadow-sm: 0 2px 8px rgba(16, 42, 67, .06);
    --shadow-md: 0 12px 35px rgba(16, 42, 67, .09);

    --radius: 10px;
    --container: 1180px;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    color: var(--text);
    background: var(--background);

    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {
    width: min(
        calc(100% - 40px),
        var(--container)
    );

    margin-inline: auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);

    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* Brand */

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    background: var(--primary);
    border-radius: 10px;
}

.brand-mark svg {
    width: 27px;
    height: 27px;

    fill: none;
    stroke: #fff;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text strong {
    color: var(--primary-dark);

    font-size: 16px;
    font-weight: 750;

    line-height: 1.2;
}

.brand-text span {
    color: var(--text-light);

    font-size: 11px;
    margin-top: 3px;
}


/* Navigation */

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    color: #46576a;

    font-size: 14px;
    font-weight: 600;

    transition: color .2s ease;
}

.main-nav a:hover {
    color: var(--primary);
}

.mobile-menu-button {
    display: none;

    border: 0;
    background: transparent;

    width: 42px;
    height: 42px;

    cursor: pointer;
}

.mobile-menu-button span {
    display: block;

    width: 22px;
    height: 2px;

    background: var(--primary);

    margin: 5px auto;
}


/* =========================================================
   HERO
   ========================================================= */

.complaint-hero {
    background:
        linear-gradient(
            135deg,
            var(--primary-dark),
            var(--primary)
        );

    color: #fff;

    padding: 72px 0 78px;

    position: relative;
    overflow: hidden;
}

.complaint-hero::after {
    content: "";

    position: absolute;

    width: 480px;
    height: 480px;

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;

    right: -180px;
    top: -200px;
}

.hero-content {
    max-width: 780px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 7px 13px;

    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.08);

    border-radius: 30px;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: .04em;
    text-transform: uppercase;
}

.badge-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;
    background: #68d5c3;
}

.hero-content h1 {
    margin: 22px 0 17px;

    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.08;

    letter-spacing: -.025em;
}

.hero-content h1 span {
    display: block;
    color: #75d5c7;
}

.hero-content p {
    max-width: 680px;

    margin: 0;

    color: rgba(255,255,255,.78);

    font-size: 16px;
}

.hero-points {
    margin-top: 28px;

    display: flex;
    flex-wrap: wrap;

    gap: 20px 28px;

    font-size: 13px;
    color: rgba(255,255,255,.9);
}

.hero-points > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-check {
    display: grid;
    place-items: center;

    width: 19px;
    height: 19px;

    border-radius: 50%;

    background: rgba(255,255,255,.13);

    font-size: 11px;
}


/* =========================================================
   FORM SECTION
   ========================================================= */

.complaint-section {
    padding: 55px 0 75px;
}

.complaint-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        330px;

    gap: 35px;

    align-items: start;
}

.complaint-main {
    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 14px;

    box-shadow: var(--shadow-md);

    padding: 35px;
}

.section-heading {
    display: flex;
    align-items: center;

    gap: 15px;

    margin-bottom: 32px;

    padding-bottom: 25px;

    border-bottom: 1px solid var(--border);
}

.section-icon {
    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    background: var(--primary-light);

    border-radius: 10px;
}

.section-icon svg {
    width: 25px;
    height: 25px;

    fill: none;
    stroke: var(--primary);

    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.section-heading h2 {
    margin: 0;

    font-size: 23px;
    line-height: 1.25;
}

.section-heading p {
    margin: 4px 0 0;

    color: var(--text-light);

    font-size: 13px;
}


/* =========================================================
   ALERTS
   ========================================================= */

.alert {
    display: flex;
    gap: 14px;

    padding: 17px;

    border-radius: 10px;

    margin-bottom: 28px;
}

.alert-success {
    background: var(--success-bg);
    border: 1px solid #bde6d5;
    color: #125c46;
}

.alert-error {
    background: var(--danger-bg);
    border: 1px solid #f3c2bd;
    color: var(--danger);
}

.alert-icon {
    flex: 0 0 30px;

    width: 30px;
    height: 30px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: rgba(0,0,0,.06);

    font-weight: 800;
}

.alert strong {
    display: block;
    font-size: 14px;
}

.alert p {
    margin: 3px 0 0;
    font-size: 13px;
}

.reference-box {
    margin-top: 13px;

    padding: 12px 15px;

    background: rgba(255,255,255,.75);

    border: 1px dashed #83c8af;

    border-radius: 8px;
}

.reference-box span {
    display: block;

    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .07em;

    opacity: .75;
}

.reference-box strong {
    font-size: 19px;
    letter-spacing: .04em;
}


/* =========================================================
   FORM
   ========================================================= */

.form-section {
    margin-bottom: 35px;
}

.form-section-title {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 20px;

    font-size: 15px;
    font-weight: 750;

    color: var(--primary-dark);
}

.form-section-title span {
    display: grid;
    place-items: center;

    width: 27px;
    height: 27px;

    background: var(--primary-light);

    color: var(--primary);

    border-radius: 6px;

    font-size: 11px;
    font-weight: 800;
}

.form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 21px;
}

.form-group {
    min-width: 0;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    color: #344557;

    font-size: 13px;
    font-weight: 700;
}

.form-group label > span {
    color: #c23b30;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    border: 1px solid #cfd8e2;

    background: #fff;

    color: var(--text);

    border-radius: 8px;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.form-group input,
.form-group select {
    height: 46px;

    padding: 0 13px;
}

.form-group textarea {
    padding: 13px;

    resize: vertical;

    min-height: 140px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a2adb9;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px
        rgba(22,59,101,.09);
}

.form-group small {
    display: block;

    margin-top: 6px;

    color: #7b8795;

    font-size: 11px;
}


/* Input prefix */

.input-with-prefix {
    display: flex;

    border: 1px solid #cfd8e2;

    border-radius: 8px;

    overflow: hidden;

    background: #fff;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.input-with-prefix:focus-within {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px
        rgba(22,59,101,.09);
}

.input-with-prefix > span {
    display: flex;
    align-items: center;

    padding: 0 12px;

    background: #f5f7f9;

    border-right: 1px solid var(--border);

    color: #687788;

    font-size: 13px;
    font-weight: 650;
}

.input-with-prefix input {
    border: 0 !important;
    box-shadow: none !important;
}


/* Textarea */

.textarea-footer {
    display: flex;
    justify-content: space-between;

    gap: 15px;
}

.textarea-footer #characterCount {
    margin-top: 6px;

    color: #8a96a4;

    font-size: 11px;
}


/* Honeypot */

.honeypot {
    position: absolute;

    left: -9999px;

    width: 1px;
    height: 1px;

    overflow: hidden;
}


/* =========================================================
   DECLARATION
   ========================================================= */

.declaration {
    padding: 17px;

    background: #f8fafc;

    border: 1px solid var(--border);

    border-radius: 9px;

    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    cursor: pointer;
}

.checkbox-label input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.custom-checkbox {
    width: 19px;
    height: 19px;

    flex: 0 0 19px;

    border: 1.5px solid #b6c2ce;

    border-radius: 5px;

    background: #fff;

    margin-top: 2px;

    position: relative;
}

.checkbox-label input:checked + .custom-checkbox {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input:checked + .custom-checkbox::after {
    content: "";

    position: absolute;

    width: 5px;
    height: 9px;

    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;

    transform: rotate(45deg);

    left: 6px;
    top: 3px;
}

.checkbox-text {
    color: #526171;

    font-size: 12px;
}


/* =========================================================
   SUBMIT
   ========================================================= */

.form-submit {
    display: flex;
    align-items: center;

    gap: 20px;

    flex-wrap: wrap;
}

.btn-submit {
    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 0 22px;

    border: 0;

    border-radius: 8px;

    background: var(--primary);

    color: #fff;

    cursor: pointer;

    font-size: 13px;
    font-weight: 750;

    box-shadow:
        0 6px 15px
        rgba(22,59,101,.16);

    transition:
        transform .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.btn-submit:hover {
    background: var(--primary-dark);

    transform: translateY(-1px);

    box-shadow:
        0 9px 20px
        rgba(22,59,101,.21);
}

.btn-submit svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;

    stroke-width: 2;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn-submit.loading {
    opacity: .65;
    pointer-events: none;
}

.secure-note {
    margin: 0;

    color: #7c8996;

    font-size: 11px;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.complaint-sidebar {
    display: flex;
    flex-direction: column;

    gap: 16px;

    position: sticky;
    top: 100px;
}

.info-card,
.help-card,
.privacy-card {
    background: #fff;

    border: 1px solid var(--border);

    border-radius: 12px;

    padding: 23px;

    box-shadow: var(--shadow-sm);
}

.info-card-icon {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    background: var(--primary-light);

    border-radius: 9px;

    margin-bottom: 15px;
}

.info-card-icon svg {
    width: 23px;
    height: 23px;

    fill: none;
    stroke: var(--primary);

    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.info-card h3,
.help-card h3 {
    margin: 0 0 8px;

    font-size: 15px;
}

.info-card p {
    margin: 0;

    color: var(--text-light);

    font-size: 12px;
    line-height: 1.7;
}

.help-card h3 {
    margin-bottom: 15px;
}

.help-card ul {
    list-style: none;

    padding: 0;
    margin: 0;
}

.help-card li {
    padding: 8px 0;

    border-bottom: 1px solid #edf0f3;

    color: #59697a;

    font-size: 12px;
}

.help-card li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.privacy-card {
    display: flex;

    gap: 12px;

    background: #f1f8f7;

    border-color: #d4eae6;
}

.privacy-icon {
    font-size: 20px;
}

.privacy-card strong {
    display: block;

    color: #185c54;

    font-size: 12px;
}

.privacy-card p {
    margin: 4px 0 0;

    color: #54736f;

    font-size: 11px;
    line-height: 1.6;
}


/* =========================================================
   SUCCESS
   ========================================================= */

.success-actions {
    padding: 20px 0;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background: #0c2036;

    color: #fff;

    padding: 45px 0 0;
}

.footer-main {
    display: grid;

    grid-template-columns:
        1.6fr
        .8fr
        1fr;

    gap: 50px;

    padding-bottom: 40px;
}

.footer-brand {
    display: flex;
    gap: 15px;
}

.footer-logo .brand-mark {
    background: rgba(255,255,255,.1);
}

.footer-brand strong {
    display: block;

    font-size: 15px;
}

.footer-brand p,
.footer-contact p {
    max-width: 390px;

    margin: 8px 0 0;

    color: rgba(255,255,255,.58);

    font-size: 12px;
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    margin: 0 0 12px;

    font-size: 13px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 7px;
}

.footer-links a {
    color: rgba(255,255,255,.58);

    font-size: 12px;

    transition: color .2s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    min-height: 60px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border-top: 1px solid rgba(255,255,255,.08);

    color: rgba(255,255,255,.4);

    font-size: 10px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .complaint-layout {
        grid-template-columns: 1fr;
    }

    .complaint-sidebar {
        position: static;

        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .privacy-card {
        grid-column: 1 / -1;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

}


@media (max-width: 680px) {

    .container {
        width: min(
            calc(100% - 28px),
            var(--container)
        );
    }

    .header-inner {
        min-height: 66px;
    }

    .main-nav {
        display: none;

        position: absolute;

        left: 0;
        right: 0;
        top: 66px;

        padding: 15px;

        background: #fff;

        border-bottom: 1px solid var(--border);

        box-shadow: var(--shadow-md);

        flex-direction: column;
        align-items: stretch;

        gap: 0;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        padding: 12px;
    }

    .mobile-menu-button {
        display: block;
    }

    .complaint-hero {
        padding: 50px 0 55px;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-points {
        flex-direction: column;
        gap: 10px;
    }

    .complaint-section {
        padding: 28px 0 50px;
    }

    .complaint-main {
        padding: 22px 17px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: auto;
    }

    .complaint-sidebar {
        grid-template-columns: 1fr;
    }

    .privacy-card {
        grid-column: auto;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        padding: 15px 0;

        flex-direction: column;
        align-items: flex-start;

        justify-content: center;
    }

    .form-submit {
        align-items: stretch;
        flex-direction: column;
    }

    .btn-submit {
        width: 100%;
    }

}