/* =====================================================
   FINANCE ASSISTANT
   CONTACT & FEEDBACK

   File    : /contact/style.css
   Version : 1.1.0
===================================================== */


/* =====================================================
   RESET
===================================================== */

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;

    background: #ffffff;
    color: #202124;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    line-height: 1.7;

    -webkit-font-smoothing: antialiased;
}


a {
    color: inherit;
    text-decoration: none;
}


button,
input,
textarea {
    font: inherit;
}


/* =====================================================
   HEADER
===================================================== */

.contact-header {
    position: sticky;
    top: 0;
    z-index: 100;

    width: 100%;

    background: rgba(255, 255, 255, 0.94);

    border-bottom: 1px solid #eeeeee;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}


.contact-header-inner {
    width: 100%;
    max-width: 900px;

    min-height: 60px;

    margin: 0 auto;
    padding: 0 14px;

    display: flex;
    align-items: center;
}


/* =====================================================
   HAMBURGER
===================================================== */

.contact-menu-button {
    width: 42px;
    height: 42px;

    margin-right: 5px;

    padding: 9px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;

    border: 0;
    border-radius: 10px;

    background: transparent;

    cursor: pointer;

    flex: 0 0 auto;
}


.contact-menu-button span {
    display: block;

    width: 21px;
    height: 2px;

    border-radius: 2px;

    background: #3c4043;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


.contact-menu-button:hover {
    background: #f3f4f6;
}


.contact-menu-button:active {
    transform: scale(0.95);
}


/* =====================================================
   BRAND
===================================================== */

.contact-brand {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    min-width: 0;

    flex: 1;
}


.contact-brand img {
    width: 34px;
    height: 34px;

    flex: 0 0 auto;

    border-radius: 8px;

    object-fit: cover;
}


.contact-brand-text {
    min-width: 0;

    display: flex;
    flex-direction: column;
}


.contact-brand-text strong {
    overflow: hidden;

    color: #202124;

    font-size: 15px;
    font-weight: 650;

    line-height: 1.3;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.contact-brand-text span {
    color: #80868b;

    font-size: 12px;
    line-height: 1.3;
}


/* =====================================================
   NEWS ICON
===================================================== */

.contact-news-link {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    font-size: 19px;

    flex: 0 0 auto;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.contact-news-link:hover {
    background: #f3f4f6;
}


.contact-news-link:active {
    transform: scale(0.94);
}


/* =====================================================
   NAVIGATION OVERLAY
===================================================== */

.contact-menu-overlay {
    position: fixed;
    inset: 0;

    z-index: 199;

    background: rgba(32, 33, 36, 0.32);

    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}


.contact-menu-overlay[hidden] {
    display: none;
}


/* =====================================================
   NAVIGATION DRAWER
===================================================== */

.contact-drawer {
    position: fixed;

    top: 0;
    left: 0;
    bottom: 0;

    z-index: 200;

    width: min(82vw, 390px);

    padding: 20px 18px;

    background: #ffffff;

    box-shadow:
        6px 0 24px rgba(0, 0, 0, 0.10);

    overflow-y: auto;

    transform: translateX(-105%);

    transition:
        transform 0.25s ease;
}


.contact-drawer.open {
    transform: translateX(0);
}


.contact-drawer-header {
    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;
}


.contact-drawer-brand {
    display: flex;
    align-items: center;

    gap: 12px;

    min-width: 0;
}


.contact-drawer-brand img {
    width: 46px;
    height: 46px;

    border-radius: 11px;

    object-fit: cover;

    flex: 0 0 auto;
}


.contact-drawer-brand div {
    min-width: 0;

    display: flex;
    flex-direction: column;
}


.contact-drawer-brand strong {
    color: #202124;

    font-size: 18px;
    font-weight: 700;

    line-height: 1.3;
}


.contact-drawer-brand span {
    color: #80868b;

    font-size: 14px;

    line-height: 1.4;
}


.contact-drawer-close {
    width: 38px;
    height: 38px;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 10px;

    background: transparent;

    color: #5f6368;

    font-size: 30px;
    font-weight: 300;

    line-height: 1;

    cursor: pointer;
}


.contact-drawer-close:hover {
    background: #f3f4f6;
}


.contact-drawer-divider {
    height: 1px;

    margin:
        17px 0
        20px;

    background: #e5e7eb;
}


/* =====================================================
   NAVIGATION LINKS
===================================================== */

.contact-navigation {
    display: flex;
    flex-direction: column;

    gap: 7px;
}


.contact-navigation-link {
    min-height: 64px;

    padding: 10px 18px;

    display: flex;
    align-items: center;

    gap: 18px;

    border-radius: 16px;

    color: #3c4043;

    font-size: 16px;
    font-weight: 550;

    transition:
        background 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}


.contact-navigation-link:hover {
    background: #f5f7fa;
}


.contact-navigation-link:active {
    transform: scale(0.985);
}


.contact-navigation-link.active {
    background: #eef5ff;

    color: #2867c7;

    font-weight: 650;
}


.contact-navigation-icon {
    width: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 24px;

    line-height: 1;

    flex: 0 0 auto;
}


/* =====================================================
   MAIN
===================================================== */

.contact-page {
    width: 100%;
    max-width: 760px;

    margin: 0 auto;

    padding:
        42px 20px
        70px;
}


/* =====================================================
   INTRO
===================================================== */

.contact-intro {
    width: 100%;
}


.contact-intro h1 {
    margin: 0 0 18px;

    color: #202124;

    font-size: clamp(30px, 8vw, 42px);
    line-height: 1.2;

    font-weight: 750;

    letter-spacing: -0.7px;
}


.contact-lead {
    margin: 0 0 22px;

    color: #3c4043;

    font-size: 18px;
    line-height: 1.65;
}


.contact-intro p {
    margin: 0 0 18px;

    color: #5f6368;

    font-size: 15.5px;
}


.contact-intro strong {
    color: #202124;
    font-weight: 650;
}


/* =====================================================
   INFO BOX
===================================================== */

.contact-info-box,
.contact-privacy-box {
    margin-top: 28px;
    padding: 18px;

    border-radius: 14px;

    background: #f8f9fa;

    border: 1px solid #eeeeee;
}


.contact-privacy-box {
    margin-top: 14px;
}


.contact-info-box strong,
.contact-privacy-box strong {
    display: block;

    margin-bottom: 6px;

    color: #202124;

    font-size: 14.5px;
    font-weight: 700;
}


.contact-info-box p,
.contact-privacy-box p {
    margin: 0;

    color: #5f6368;

    font-size: 14px;
    line-height: 1.65;
}


/* =====================================================
   FORM SECTION
===================================================== */

.contact-form-section {
    margin-top: 48px;
    padding-top: 34px;

    border-top: 1px solid #eeeeee;
}


.feedback-form-header {
    margin-bottom: 24px;
}


.feedback-form-header h2 {
    margin: 0 0 6px;

    color: #202124;

    font-size: 23px;
    line-height: 1.3;

    font-weight: 700;
}


.feedback-form-header p {
    margin: 0;

    color: #6b7075;

    font-size: 14px;
}


/* =====================================================
   FORM FIELD
===================================================== */

.feedback-field {
    margin-bottom: 20px;
}


.feedback-field label {
    display: block;

    margin-bottom: 7px;

    color: #3c4043;

    font-size: 14px;
    font-weight: 650;
}


.feedback-field input,
.feedback-field textarea {
    display: block;

    width: 100%;

    border: 1px solid #dadce0;

    border-radius: 11px;

    background: #ffffff;

    color: #202124;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.feedback-field input {
    min-height: 48px;

    padding: 11px 14px;
}


.feedback-field textarea {
    min-height: 150px;

    padding: 13px 14px;

    resize: vertical;

    line-height: 1.6;
}


.feedback-field input::placeholder,
.feedback-field textarea::placeholder {
    color: #9aa0a6;
}


/* =====================================================
   READONLY IDENTITY
===================================================== */

.feedback-field input[readonly] {
    background: #f8f9fa;

    color: #5f6368;

    cursor: default;
}


.feedback-field input[readonly]:focus {
    border-color: #dadce0;

    box-shadow: none;
}


/* =====================================================
   FOCUS
===================================================== */

.feedback-field textarea:focus {
    border-color: #1a73e8;

    box-shadow:
        0 0 0 3px rgba(26, 115, 232, 0.10);
}


/* =====================================================
   STATUS
===================================================== */

.feedback-status {
    margin-bottom: 16px;

    padding: 12px 14px;

    border-radius: 10px;

    font-size: 13.5px;
    line-height: 1.55;
}


.feedback-status[hidden] {
    display: none;
}


.feedback-status.success {
    background: #f0fdf4;

    border: 1px solid #bbf7d0;

    color: #166534;
}


.feedback-status.error {
    background: #fef2f2;

    border: 1px solid #fecaca;

    color: #b91c1c;
}


.feedback-status.info {
    background: #eff6ff;

    border: 1px solid #bfdbfe;

    color: #1d4ed8;
}


/* =====================================================
   SUBMIT
===================================================== */

.feedback-submit {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 50px;

    padding: 12px 18px;

    border: 0;
    border-radius: 11px;

    background: #202124;
    color: #ffffff;

    font-size: 15px;
    font-weight: 650;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}


.feedback-submit:hover:not(:disabled) {
    background: #303134;
}


.feedback-submit:active:not(:disabled) {
    transform: scale(0.985);
}


.feedback-submit:disabled {
    opacity: 0.6;

    cursor: not-allowed;
}


/* =====================================================
   FORM NOTE
===================================================== */

.feedback-note {
    margin: 13px 2px 0;

    color: #80868b;

    font-size: 12px;
    line-height: 1.55;

    text-align: center;
}


/* =====================================================
   LOADING
===================================================== */

.feedback-loading {
    padding: 30px 0;

    color: #6b7075;

    font-size: 14px;

    text-align: center;
}


.feedback-loading[hidden] {
    display: none;
}


/* =====================================================
   ACCESSIBILITY
===================================================== */

.contact-menu-button:focus-visible,
.contact-drawer-close:focus-visible,
.contact-news-link:focus-visible,
.contact-navigation-link:focus-visible,
.feedback-field input:focus-visible,
.feedback-field textarea:focus-visible,
.feedback-submit:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
}


/* =====================================================
   TABLET / DESKTOP
===================================================== */

@media (min-width: 640px) {

    .contact-header-inner {
        padding-left: 24px;
        padding-right: 24px;
    }


    .contact-page {
        padding-top: 58px;
        padding-left: 24px;
        padding-right: 24px;
    }


    .contact-lead {
        font-size: 19px;
    }


    .contact-info-box,
    .contact-privacy-box {
        padding: 20px;
    }


    .feedback-form {
        padding:
            26px 26px
            28px;

        border: 1px solid #eeeeee;
        border-radius: 16px;

        background: #ffffff;

        box-shadow:
            0 4px 20px rgba(0, 0, 0, 0.04);
    }


    .feedback-form-header {
        margin-bottom: 28px;
    }

}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

}
