/* ================================================================
   AMAJED QUOTATION REQUEST
   ================================================================ */


/* ================================================================
   BACKDROP
   ================================================================ */

.quotation-backdrop {
    position: fixed;
    inset: 0;
    z-index: 208;
    background: rgba( 0, 7, 12, .68 );
    backdrop-filter: blur(7px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s ease, visibility .28s ease;
}


    .quotation-backdrop.open {
        opacity: 1;
        visibility: visible;
    }



/* ================================================================
   MODAL
   ================================================================ */

.quotation-modal {
    position: fixed;
    z-index: 209;
    inset: 0;
    padding: 24px;
    display: grid;
    place-items: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s ease, visibility .28s ease;
}


    .quotation-modal.open {
        pointer-events: auto;
        opacity: 1;
        visibility: visible;
    }



/* ================================================================
   DIALOG
   ================================================================ */

.quotation-dialog {
    width: min( 650px, 100% );
    max-height: calc( 100dvh - 48px );
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--card);
    color: var(--ink);
    box-shadow: 0 34px 100px rgba( 0, 0, 0, .32 );
    transform: translateY(18px) scale(.985);
    transition: transform .32s var( --ease-fluid, ease );
}


.quotation-modal.open
.quotation-dialog {
    transform: none;
}



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

.quotation-head {
    padding: 28px 30px 23px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--line);
}


    .quotation-head h3 {
        margin: 8px 0 8px;
        font-size: clamp( 25px, 4vw, 36px );
        line-height: 1.07;
        letter-spacing: -.035em;
    }


html[dir="rtl"]
.quotation-head h3 {
    letter-spacing: 0;
    line-height: 1.25;
}


.quotation-head p {
    max-width: 480px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}


.quotation-close {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--control);
    color: var(--ink);
    font-size: 24px;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease;
}


    .quotation-close:hover {
        transform: rotate(5deg);
        border-color: var(--cyan);
    }



/* ================================================================
   SELECTION SUMMARY
   ================================================================ */

.quotation-selection-summary {
    margin: 22px 30px 0;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid color-mix( in srgb, var(--cyan) 28%, var(--line) );
    border-radius: 16px;
    background: color-mix( in srgb, var(--cyan) 5%, var(--surface) );
}


    .quotation-selection-summary > div {
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--muted);
        font-size: 11px;
    }


    .quotation-selection-summary strong {
        min-width: 30px;
        height: 30px;
        padding: 0 8px;
        display: grid;
        place-items: center;
        border-radius: 999px;
        background: var(--cyan);
        color: #00131f;
        font-size: 12px;
    }


.quotation-review-cart {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 0;
    background: transparent;
    color: var(--cyan);
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}



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

.quotation-form {
    padding: 24px 30px 30px;
    display: grid;
    grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
    gap: 17px;
}



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

.quotation-field {
    min-width: 0;
}


.quotation-field-full {
    grid-column: 1 / -1;
}


.quotation-field label {
    min-height: 20px;
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--ink);
    font-size: 10px;
    font-weight: 800;
}


    .quotation-field label b {
        color: var(--cyan);
        font-size: 12px;
    }


.quotation-field input,
.quotation-field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 13px;
    outline: 0;
    background: var(--control);
    color: var(--ink);
    font: inherit;
    font-size: 12px;
    transition: border-color .2s ease, box-shadow .2s ease;
}


.quotation-field input {
    height: 48px;
    padding: 0 14px;
}


.quotation-field textarea {
    min-height: 105px;
    padding: 13px 14px;
    resize: vertical;
    line-height: 1.6;
}


    .quotation-field input:focus,
    .quotation-field textarea:focus {
        border-color: var(--cyan);
        box-shadow: 0 0 0 3px color-mix( in srgb, var(--cyan) 11%, transparent );
    }


    .quotation-field input::placeholder,
    .quotation-field textarea::placeholder {
        color: var(--muted);
        opacity: .7;
    }



/* ================================================================
   VALIDATION
   ================================================================ */

.quotation-field.has-error
input {
    border-color: #e05656;
}


.quotation-field-error {
    display: block;
    margin: 6px 3px 0;
    color: #e05656;
    font-size: 9px;
}


    .quotation-field-error[hidden] {
        display: none;
    }



/* ================================================================
   MESSAGE
   ================================================================ */

.quotation-message {
    grid-column: 1 / -1;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--muted);
    font-size: 10px;
    line-height: 1.55;
}


    .quotation-message.is-error {
        border-color: rgba( 224, 86, 86, .35 );
        color: #e05656;
    }


    .quotation-message.is-success {
        border-color: rgba( 68, 200, 120, .35 );
        color: #44c878;
    }


    .quotation-message[hidden] {
        display: none;
    }



/* ================================================================
   CHANNEL ACTIONS
   ================================================================ */

.quotation-actions {
    grid-column: 1 / -1;
    margin-top: 3px;
    display: grid;
    gap: 10px;
}


.quotation-channel {
    width: 100%;
    min-height: 64px;
    padding: 11px 14px;
    display: grid;
    grid-template-columns: 40px minmax( 0, 1fr ) auto;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 15px;
    color: inherit;
    cursor: pointer;
    text-align: start;
    font: inherit;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}


    .quotation-channel:hover {
        transform: translateY(-1px);
    }



/* ================================================================
   WHATSAPP
   ================================================================ */

.quotation-channel-whatsapp {
    border-color: rgba( 35, 198, 99, .42 );
    background: #23c663;
    color: #04170b;
}


    .quotation-channel-whatsapp:hover {
        border-color: #23c663;
        box-shadow: 0 10px 30px rgba( 35, 198, 99, .18 );
    }



/* ================================================================
   EMAIL
   ================================================================ */

.quotation-channel-email {
    background: var(--control);
    color: var(--ink);
}


    .quotation-channel-email:hover {
        border-color: var(--cyan);
    }



/* ================================================================
   ACTION CONTENT
   ================================================================ */

.quotation-channel-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba( 0, 0, 0, .08 );
    font-size: 11px;
    font-weight: 950;
}


.quotation-mail-icon {
    background: color-mix( in srgb, var(--cyan) 10%, var(--surface-2) );
    color: var(--cyan);
    font-size: 17px;
}


.quotation-channel-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}


    .quotation-channel-copy strong {
        font-size: 12px;
        font-weight: 850;
    }


    .quotation-channel-copy small {
        font-size: 9px;
        opacity: .72;
    }


.quotation-channel-arrow {
    font-size: 17px;
    font-weight: 900;
}



/* ================================================================
   PRIVACY
   ================================================================ */

.quotation-privacy {
    grid-column: 1 / -1;
    margin: -2px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 8.5px;
    line-height: 1.5;
}



/* ================================================================
   BODY LOCK
   ================================================================ */

body.quotation-open {
    overflow: hidden;
}



/* ================================================================
   MOBILE
   ================================================================ */

@media (max-width: 650px) {

    .quotation-modal {
        padding: 10px;
        align-items: end;
    }


    .quotation-dialog {
        width: 100%;
        max-height: calc( 100dvh - 20px );
        border-radius: 22px;
    }


    .quotation-head {
        padding: 21px 18px 17px;
    }


        .quotation-head h3 {
            font-size: 26px;
        }


        .quotation-head p {
            font-size: 11px;
        }


    .quotation-selection-summary {
        margin: 14px 18px 0;
    }


    .quotation-form {
        padding: 18px;
        grid-template-columns: 1fr;
        gap: 14px;
    }


    .quotation-field-full {
        grid-column: auto;
    }


    .quotation-message,
    .quotation-actions,
    .quotation-privacy {
        grid-column: auto;
    }


    .quotation-channel {
        min-height: 62px;
    }
}
