/* ==================================================
   PREMIUM GLASSMORPHISM CONTACT POPUP MODAL
================================================== */
.premium-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(7, 20, 45, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    overflow: hidden;
}

.premium-modal-backdrop.is-active {
    opacity: 1;
    visibility: visible;
}

body.premium-modal-open {
    overflow: hidden;
}

/* Background floating shapes */
.glass-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    opacity: 0.7;
    animation: floatGlass 7s infinite alternate ease-in-out;
}

.glass-bg-shape.shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(43, 112, 250, 0.4);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.glass-bg-shape.shape-2 {
    width: 300px;
    height: 300px;
    background: rgba(16, 185, 129, 0.25);
    bottom: -50px;
    right: 10%;
    animation-delay: 2s;
}

.glass-bg-shape.shape-3 {
    width: 250px;
    height: 250px;
    background: rgba(37, 99, 235, 0.3);
    top: 30%;
    right: -50px;
    animation-delay: 1s;
}

@keyframes floatGlass {
    0% { transform: translateY(-5px); }
    100% { transform: translateY(15px); }
}

/* MAIN GLASS PANEL */
.glass-panel {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.75);
    /* Subtle white highlight around top/left edges */
    border-top: 1px solid rgba(255, 255, 255, 0.9);
    border-left: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 30px 80px rgba(0, 35, 90, 0.22);
    border-radius: 28px;
    width: 100%;
    max-width: 950px;
    display: flex;
    flex-direction: column;
    position: relative;
    opacity: 0;
    transform: translateY(30px) scale(0.94);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Very subtle diagonal glass reflection */
.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0.18), transparent 40%);
    pointer-events: none;
    z-index: 0;
    border-radius: 28px;
}

.premium-modal-backdrop.is-active .glass-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@media (min-width: 992px) {
    .glass-panel {
        flex-direction: row;
        overflow-y: visible;
    }
}

/* CLOSE BUTTON */
.premium-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(0, 30, 80, 0.10);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
}

.premium-modal-close:hover {
    background: #2563eb;
    color: #ffffff;
    transform: rotate(90deg);
}

/* LEFT SIDE */
.premium-modal-left {
    padding: 30px;
    position: relative;
    z-index: 1;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

@media (min-width: 992px) {
    .premium-modal-left {
        width: 42%;
        padding: 50px 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        border-bottom: none;
        border-right: 1px solid rgba(255,255,255,0.3);
    }
}

.brand-logo-wrap {
    margin-bottom: 25px;
    transform: translateY(15px);
    opacity: 0;
}
.modal-logo {
    height: 40px;
    object-fit: contain;
}

.glass-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 999px;
    box-shadow: 0 5px 15px rgba(0, 50, 120, 0.08);
    color: #2b70fa;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 6px 14px;
    margin-bottom: 20px;
    transform: translateY(15px);
    opacity: 0;
}

.glass-heading {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 16px;
    transform: translateY(15px);
    opacity: 0;
}

@media (min-width: 992px) {
    .glass-heading {
        font-size: 32px;
    }
}

.glass-heading span {
    color: #2b70fa;
}

.glass-text {
    font-size: 14.5px;
    color: #334155;
    line-height: 1.65;
    margin-bottom: 20px;
    transform: translateY(15px);
    opacity: 0;
    font-weight: 500;
}

.premium-modal-left .sub-text {
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 30px;
}

.glass-features {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    transform: translateY(15px);
    opacity: 0;
    margin-top: auto;
}

.glass-feature {
    text-align: center;
    flex: 1;
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 10px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.glass-feature span {
    font-size: 11px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    display: block;
}

/* Staggered Animations */
.premium-modal-backdrop.is-active .brand-logo-wrap {
    animation: fadeSlideUp 0.6s ease forwards 0.05s;
}
.premium-modal-backdrop.is-active .glass-badge {
    animation: fadeSlideUp 0.6s ease forwards 0.12s;
}
.premium-modal-backdrop.is-active .glass-heading {
    animation: fadeSlideUp 0.6s ease forwards 0.18s;
}
.premium-modal-backdrop.is-active .glass-text {
    animation: fadeSlideUp 0.6s ease forwards 0.25s;
}
.premium-modal-backdrop.is-active .glass-features {
    animation: fadeSlideUp 0.6s ease forwards 0.32s;
}
.premium-modal-backdrop.is-active .premium-modal-form-wrap {
    animation: fadeSlideUp 0.6s ease forwards 0.38s;
}

@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Internal shapes */
.glass-inner-shape {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    filter: blur(20px);
}
.shape-a {
    width: 120px;
    height: 120px;
    background: rgba(37, 99, 235, 0.15);
    bottom: 20px;
    left: -20px;
}
.shape-b {
    width: 80px;
    height: 80px;
    background: rgba(16, 185, 129, 0.1);
    top: 40%;
    right: 10%;
}

/* RIGHT SIDE (FORM) */
.premium-modal-right {
    padding: 30px;
    position: relative;
    z-index: 1;
}

@media (min-width: 992px) {
    .premium-modal-right {
        width: 58%;
        padding: 50px 40px;
    }
}

.premium-modal-form-wrap {
    transform: translateY(15px);
    opacity: 0;
}

/* Form Styles */
.pm-form-group {
    margin-bottom: 18px;
}

.pm-form-label {
    font-weight: 700;
    color: #0f172a;
    font-size: 13px;
    margin-bottom: 8px;
    display: block;
}

.pm-input-shell {
    border-radius: 14px;
    display: flex;
    align-items: center;
    padding-left: 15px;
    transition: all 0.25s ease;
}

.glass-input {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(150, 180, 220, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.pm-input-shell.is-textarea {
    align-items: flex-start;
    padding-top: 14px;
}

.pm-input-shell i {
    color: #2563eb;
    font-size: 15px;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.glass-input:hover {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.glass-input:focus-within {
    border: 1px solid #2563eb;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.glass-input:focus-within i {
    transform: scale(1.05);
}

.pm-input-shell input,
.pm-input-shell textarea {
    border: 0;
    box-shadow: none;
    padding: 12px 15px;
    font-size: 14px;
    width: 100%;
    outline: none;
    background: transparent;
    color: #1e293b;
    flex-grow: 1;
    font-weight: 500;
}

.pm-input-shell input::placeholder,
.pm-input-shell textarea::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.pm-input-shell textarea {
    padding: 0 15px 12px 15px;
    min-height: 90px;
    resize: vertical;
}

.pm-input-error {
    border-color: #ef4444 !important;
}

.pm-error-text {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
    display: block;
    font-weight: 500;
}

.glass-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 14px 30px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.28);
    cursor: pointer;
    transition: all 0.3s ease;
}

.glass-btn i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.glass-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(37, 99, 235, 0.35);
}

.glass-btn:hover i {
    transform: translateX(4px);
}

.glass-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #475569;
    font-weight: 600;
    margin-top: 20px;
}

.trust-icon-box {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    border: 1px solid rgba(255,255,255,0.9);
}

.trust-icon-box i {
    color: #2563eb;
    font-size: 10px;
}

/* Success State */
.premium-modal-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
    animation: fadeSlideUp 0.6s ease forwards;
}

.pm-success-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255,255,255,0.9);
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.15);
}

.premium-modal-success h4 {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}

.premium-modal-success p {
    color: #334155;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
    font-weight: 500;
}

.glass-btn-secondary {
    background: rgba(255, 255, 255, 0.6);
    color: #1e293b;
    border: 1px solid rgba(255,255,255,0.9);
    padding: 12px 35px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.glass-btn-secondary:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
