/* =========================================
   MODAL DESIGN 2026 (Standalone File)
   "Bright, Effective, Modern" - COMPACT NO-SCROLL
   ========================================= */

:root {
    --m26-primary: #0A6A6E;
    /* Brand Teal */
    --m26-primary-light: #2c9ea3;
    /* Brighter Teal */
    --m26-bg: #ffffff;
    /* Pure White */
    --m26-text: #111827;
    /* Dark Text */
    --m26-text-sub: #6b7280;
    /* Muted Text */
    --m26-border: #e5e7eb;
    /* Light Border */
    --m26-focus-glow: rgba(10, 106, 110, 0.25);
}

/* 1. Modal Window Container */
.modal-2026 {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 28px;
    padding: 25px 25px;
    width: 100%;
    max-width: 400px;
    height: auto;
    position: relative;
    box-shadow:
        0 40px 100px -20px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Inline modifier to expand width */
.modal-2026.m26-inline {
    max-width: none !important;
    margin: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    /* Softer shadow for inline integration */
}

/* 2. Glow Effects */
.modal-2026::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(10, 106, 110, 0.12) 0%, transparent 70%);
    filter: blur(50px);
    z-index: 0;
    pointer-events: none;
}

.modal-2026::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(79, 209, 197, 0.1) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

/* 3. Header & Typography */
.modal-2026 .modal-body {
    position: relative;
    z-index: 2;
}

.modal-2026 h3 {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--m26-text);
    margin-bottom: 8px;
    line-height: 1.2;
    background: linear-gradient(135deg, #444 0%, var(--m26-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.modal-2026 .modal-sub {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.5;
    font-weight: 500;
}

/* 4. Form Fields */
.modal-2026 .modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-2026 .field {
    position: relative;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-2026 .field-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--m26-primary);
    margin-left: 2px;
    letter-spacing: 1px;
}

.modal-2026 input[type="text"],
.modal-2026 input[type="tel"],
.modal-2026 textarea {
    width: 100%;
    padding: 15px 20px;
    background: #f8fafc;
    border: 1.5px solid #edf2f7;
    border-radius: 14px;
    font-size: 1rem;
    color: var(--m26-text);
    font-weight: 600;
    transition: all 0.3s ease;
    outline: none;
}

.modal-2026 input[type="text"]:focus,
.modal-2026 input[type="tel"]:focus,
.modal-2026 textarea:focus {
    background: #ffffff;
    border-color: var(--m26-primary);
    box-shadow: 0 4px 20px var(--m26-focus-glow);
    transform: translateY(-2px);
    outline: none;
}

.modal-2026 textarea {
    padding: 15px 20px;
    background: #f9fafb;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.modal-2026 input::placeholder {
    color: #9ca3af;
    font-weight: 500;
}

/* 5. Close Button */
.modal-2026 .modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border: none;
    background: #f3f4f6;
    color: #374151;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.modal-2026 .modal-close:hover {
    background: #ef4444;
    color: #fff;
    transform: rotate(90deg);
}

/* 6. Submit Button */
.modal-2026 .modal-actions {
    margin-top: 6px;
}

.modal-2026 .btn.modal-submit {
    width: 100%;
    padding: 14px;
    /* Reduced button padding */
    background: linear-gradient(135deg, var(--m26-primary) 0%, var(--m26-primary-light) 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 8px 20px -5px var(--m26-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.modal-2026 .btn.modal-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -10px var(--m26-primary);
}

.modal-2026 .btn.modal-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
    transform: skewX(-20deg);
}

.modal-2026 .btn.modal-submit:hover::after {
    left: 150%;
}

/* 7. Consent */
.modal-2026 .consent {
    margin-top: 12px;
    font-size: 0.7rem;
    color: #9ca3af;
    text-align: center;
    line-height: 1.3;
}

.modal-2026 .consent a {
    color: var(--m26-primary);
    text-decoration: none;
    border-bottom: 1px dotted var(--m26-primary);
}

/* 8. Mobile Responsiveness */
@media (max-width: 576px) {
    .modal-2026 {
        padding: 24px 20px;
        width: 100%;
        margin: 0;
        border-radius: 20px;
        max-height: none;
        /* Allow form to expand naturally */
    }

    /* Reset for actual modal windows if they need to be fixed height */
    .modal-overlay .modal-2026 {
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-2026 h3 {
        font-size: 1.25rem;
        margin-bottom: 4px;
    }

    .modal-2026 .modal-sub {
        font-size: 0.8rem;
        margin-bottom: 16px;
    }

    .modal-2026 .modal-form {
        gap: 10px;
    }

    .modal-2026 input[type="text"],
    .modal-2026 input[type="tel"] {
        padding: 10px 14px;
        font-size: 16px;
        /* Avoid iOS zoom */
    }

    .modal-2026 .btn.modal-submit {
        padding: 12px;
        font-size: 0.95rem;
    }
}

/* Landscape Mobile Fix */
@media (max-height: 500px) {
    .modal-2026 {
        padding: 12px 20px;
    }

    .modal-2026 h3 {
        margin-bottom: 2px;
    }

    .modal-2026 .modal-sub {
        margin-bottom: 8px;
        font-size: 0.75rem;
    }

    .modal-2026 .modal-form {
        gap: 6px;
    }

    .modal-2026 .consent {
        margin-top: 8px;
    }
}

/* 9. Success State & Animation */
.modal-success-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 10px;
    text-align: center;
    width: 100%;
    animation: m26-fadeIn 0.4s ease;
}

@keyframes m26-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-checkmark-wrapper {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
}

.success-checkmark-svg {
    width: 70px;
    height: 70px;
    display: block;
    stroke-width: 3;
    stroke: #10b981;
    /* Success Green */
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #10b981;
    border-radius: 50%;
    animation: m26-fill .4s ease-in-out .4s forwards, m26-scale .3s ease-in-out .9s both;
}

.success-checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #10b981;
    fill: none;
    animation: m26-stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: m26-stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
    stroke: #fff;
}

@keyframes m26-stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes m26-scale {

    0%,
    100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes m26-fill {
    100% {
        box-shadow: inset 0px 0px 0px 50px #10b981;
    }
}

.success-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #10b981;
    margin-bottom: 6px;
    line-height: 1.2;
}

.success-sub {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0;
}