﻿:root {
    --dtiblue: #2564cf;
    --dtiblue2: #1f55b0;
    --ink: #0b1220;
    --muted: rgba(11,18,32,.72);
    --line: rgba(37,100,207,.22);
    --glass: rgba(255,255,255,.86);
    --glass2: rgba(255,255,255,.72);
    --shadow: 0 26px 80px rgba(15,23,42,.22), 0 10px 24px rgba(15,23,42,.14);
    --radius: 22px;
}

#offerteModal.btn-disabled {
    background-color: #d6d6d6 !important;
    color: #a0a0a0 !important;
    cursor: not-allowed;
}

#offerteModal .modal-dialog {
    position: relative;
    margin-top: calc(15vh + 26px) !important;
    margin-bottom: 10vh;
    z-index: 99999;
    max-width: min(680px, calc(100vw - 28px));
}

#offerteModal .modal-content {
    border-radius: calc(var(--radius) + 4px);
    border: 1px solid rgba(255,255,255,.75);
    background: linear-gradient(180deg, var(--glass), var(--glass2));
    backdrop-filter: blur(14px) saturate(1.25);
    -webkit-backdrop-filter: blur(14px) saturate(1.25);
    box-shadow: var(--shadow);
    overflow: hidden;
}

    #offerteModal .modal-content::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(900px 240px at 12% 0%, rgba(37,100,207,.22), transparent 60%), radial-gradient(700px 220px at 92% 10%, rgba(255,255,255,.55), transparent 62%), linear-gradient(90deg, rgba(37,100,207,.08), transparent 38%, rgba(37,100,207,.05));
        opacity: .95;
    }

    #offerteModal .modal-content > * {
        position: relative;
        z-index: 1;
    }

#offerteModal .modal-header {
    background: transparent;
    border-bottom: 1px solid rgba(37,100,207,.18);
    padding: 18px 20px;
}

#offerteModal .modal-title {
    color: var(--ink);
    font-weight: 850;
    letter-spacing: .2px;
}

#offerteModal .modal-body {
    font-size: 1.05rem;
    color: rgba(11,18,32,.86);
    padding: 18px 20px 8px;
}

#offerteModal .modal-footer {
    border-top: 1px solid rgba(37,100,207,.16);
    padding: 12px 20px 18px;
    justify-content: center;
    gap: 10px;
}

#offerteModal form {
    position: relative;
    margin: 0 auto;
    max-width: 620px;
    padding: 0;
    z-index: 1050;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

#offerteModal .form-group {
    margin-bottom: 1.1rem;
}

#offerteModal label {
    font-weight: 800;
    color: rgba(11,18,32,.86);
    margin-bottom: 6px;
}

#offerteModal input,
#offerteModal textarea {
    width: 100%;
    font-size: 1rem;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(37,100,207,.22);
    background: rgba(255,255,255,.78);
    color: var(--ink);
    outline: none;
    transition: box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

#offerteModal input:focus,
#offerteModal textarea:focus {
    border-color: rgba(37,100,207,.55);
    box-shadow: 0 0 0 4px rgba(37,100,207,.18);
    background: rgba(255,255,255,.90);
}

#offerteModal textarea {
    min-height: 120px;
    resize: vertical;
}

#offerteModal #loading {
    margin-top: 1rem;
    color: #0b6b3a;
    font-weight: 700;
}

#offerteModal #submitBtn {
    appearance: none;
    border: 1px solid rgba(255,255,255,.65);
    background: linear-gradient(180deg, rgba(37,100,207,.18), rgba(37,100,207,.10));
    color: var(--ink);
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 900;
    letter-spacing: .2px;
    width: min(320px, 100%);
    box-shadow: 0 14px 34px rgba(15,23,42,.16);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    margin-bottom: 10px;
}

#offerteModal #submitBtn:hover {
    transform: translateY(-1px);
    border-color: rgba(37,100,207,.35);
    box-shadow: 0 18px 44px rgba(15,23,42,.18);
}

#offerteModal #submitBtn:active {
    transform: translateY(0);
    box-shadow: 0 10px 24px rgba(15,23,42,.14);
}

#offerteModal #successMessage {
    display: none;
    margin-top: 1.2rem;
    color: #0b6b3a;
    font-weight: 800;
}

#offerteModal #errorMessage {
    display: none;
    margin-top: 1.2rem;
    color: #b42318;
    font-weight: 800;
}

#offerteModal #closeBtn {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(37,100,207,.22);
    background: rgba(255,255,255,.72);
    color: rgba(11,18,32,.78);
    font-size: 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

#offerteModal #closeBtn:hover {
    transform: translateY(-1px);
    border-color: rgba(37,100,207,.35);
    box-shadow: 0 12px 28px rgba(15,23,42,.14);
    background: rgba(255,255,255,.88);
}

#offerteModal #closeBtn:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(15,23,42,.12);
}

@media (max-width: 768px) {
    #offerteModal .modal-dialog {
        margin-top: 10vh;
        margin-bottom: 10vh;
        max-width: calc(100vw - 18px);
    }

    #offerteModal.modal-header,
    #offerteModal .modal-body,
    #offerteModal .modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-height: 720px) {
    #offerteModal .modal-dialog {
        margin-top: 6vh;
        margin-bottom: 6vh;
    }
}
