/**
 * Fichier  : /features/quote-form/assets/css/style.css
 * Fonction : panneau de contact
 */

/* ==================================================
   STRUCTURE
================================================== */

#quote-form {
    --contact-text: #f5f3ee;
    --contact-muted: #a6a6a4;
}

#quote-form {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

#quote-form {
    visibility: hidden;
    pointer-events: none;
    isolation: isolate;
}

#quote-form {
    color: var(--contact-text);
}

#quote-form {
    font-family: 'content-font', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
}

#quote-form *,
#quote-form *::before,
#quote-form *::after {
    box-sizing: border-box;
}

#quote-form [hidden] {
    display: none !important;
}

#quote-form.is-open,
#quote-form.is-closing {
    visibility: visible;
}

#quote-form.is-open {
    pointer-events: auto;
}

html.quote-form-open,
body.quote-form-open {
    overflow: hidden;
}

#quote-form .quote-form-modal__backdrop {
    position: absolute;
    inset: 0;
}

#quote-form .quote-form-modal__backdrop {
    width: 100%;
    height: 100%;
}

#quote-form .quote-form-modal__backdrop {
    margin: 0;
}

#quote-form .quote-form-modal__backdrop {
    padding: 0;
}

#quote-form .quote-form-modal__backdrop {
    cursor: pointer;
}

#quote-form .quote-form-modal__backdrop {
    border: 0;
    border-radius: 0;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(5px);
    opacity: 0;
}

#quote-form .quote-form-modal__backdrop {
    transition: opacity .35s ease;
}

#quote-form.is-open .quote-form-modal__backdrop {
    opacity: 1;
}

#quote-form .quote-form-modal__panel {
    position: absolute;
    inset: 0 0 0 auto;
}

#quote-form .quote-form-modal__panel {
    width: min(820px, 94vw);
    height: 100%;
}

#quote-form .quote-form-modal__panel {
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #5b5543 #101010;
    background: #101010;
    border-left: 1px solid #383329;
    box-shadow: -20px 0 70px #0005;
    outline: none;
}

#quote-form .quote-form-modal__panel {
    transform: translateX(100%);
}

#quote-form .quote-form-modal__panel {
    transition: transform .45s cubic-bezier(.22,1,.36,1);
}

#quote-form.is-open .quote-form-modal__panel {
    transform: translateX(0);
}

/* ==================================================
   EN-TÊTE
================================================== */

#quote-form .quote-form-modal__header {
    position: relative;
}

#quote-form .quote-form-modal__header {
    margin: 0;
}

#quote-form .quote-form-modal__header {
    padding: 52px 48px 34px;
}

#quote-form .quote-form-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

#quote-form .quote-form-modal__header {
    background: none;
}

#quote-form .quote-form-modal__heading {
    min-width: 0;
}

#quote-form .quote-form-modal__eyebrow {
    margin-bottom: 22px;
}

#quote-form .quote-form-modal__eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
}

#quote-form .quote-form-modal__eyebrow {
    color: var(--color-primary);
}

#quote-form .quote-form-modal__eyebrow {
    font-family: 'bold-font', Arial, sans-serif;
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
}

#quote-form .quote-form-modal__eyebrow::before {
    content: '';
}

#quote-form .quote-form-modal__eyebrow::before {
    width: 30px;
    height: 2px;
}

#quote-form .quote-form-modal__eyebrow::before {
    background: var(--color-primary);
}

#quote-form .quote-form-modal__heading h2 {
    margin: 0;
}

#quote-form .quote-form-modal__heading h2 {
    color: var(--contact-text);
}

#quote-form .quote-form-modal__heading h2 {
    font-family: 'bold-font', Arial, sans-serif;
    font-size: clamp(32px, 3.8vw, 49px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -.035em;
    text-transform: uppercase;
}

#quote-form .quote-form-modal__heading h2 span {
    color: var(--color-primary);
}

#quote-form .quote-form-modal__heading > p {
    max-width: 510px;
}

#quote-form .quote-form-modal__heading > p {
    margin: 18px 0 0;
}

#quote-form .quote-form-modal__heading > p {
    color: var(--contact-muted);
}

#quote-form .quote-form-modal__heading > p {
    font-size: 14px;
    line-height: 1.75;
}

#quote-form .quote-form-modal__close {
    position: relative;
}

#quote-form .quote-form-modal__close {
    width: 42px;
    height: 42px;
}

#quote-form .quote-form-modal__close {
    padding: 0;
}

#quote-form .quote-form-modal__close {
    flex: 0 0 42px;
}

#quote-form .quote-form-modal__close {
    cursor: pointer;
}

#quote-form .quote-form-modal__close {
    border: 1px solid #ffffff26;
    border-radius: 50%;
    background: transparent;
}

#quote-form .quote-form-modal__close {
    transition:
        border-color .2s,
        background .2s;
}

#quote-form .quote-form-modal__close span {
    position: absolute;
    left: 12px;
    top: 19px;
}

#quote-form .quote-form-modal__close span {
    width: 16px;
    height: 1px;
}

#quote-form .quote-form-modal__close span {
    background: var(--contact-text);
}

#quote-form .quote-form-modal__close:hover span {
    background: var(--color-primary);
}

#quote-form .quote-form-modal__close span {
    transform: rotate(45deg);
}

#quote-form .quote-form-modal__close span + span {
    transform: rotate(-45deg);
}

#quote-form .quote-form-modal__close:hover {
    border-color: var(--color-primary);
    background: #e5cf9110;
}

#quote-form :focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
}

#quote-form .quote-form-modal__message {
    margin: 0 48px 20px;
}

#quote-form .quote-form-modal__message {
    padding: 16px;
}

#quote-form .quote-form-modal__message {
    color: #ffc3c3;
    background: #502222;
}

#quote-form .quote-form-modal__message {
    font-size: 14px;
}

/* ==================================================
   MOBILE ET MOUVEMENTS RÉDUITS
================================================== */

@media (max-width: 600px) {
    #quote-form .quote-form-modal__panel {
        width: 100%;
    }

    #quote-form .quote-form-modal__panel {
        border-left: 0;
    }

    #quote-form .quote-form-modal__header {
        padding: calc(30px + env(safe-area-inset-top)) 22px 28px;
    }

    #quote-form .quote-form-modal__heading h2 {
        font-size: clamp(28px, 7.4vw, 40px);
    }

    #quote-form .quote-form-modal__message {
        margin-inline: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #quote-form *,
    #quote-form *::before,
    #quote-form *::after {
        transition-duration: .01ms !important;
    }

    #quote-form *,
    #quote-form *::before,
    #quote-form *::after {
        animation-duration: .01ms !important;
    }
}
