/* ========================================== 
   Premium Enquiry Modal - Enhanced Design
   ========================================== */

:root {
    --primary: #003E73;
    --secondary: #FF9F28;
}

/* Modal Overlay */
.premium-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-modal-overlay.show {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

/* Modal Container */
.premium-modal {
    background: white;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 62, 115, 0.25);
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8) translateY(50px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-modal-overlay.show .premium-modal {
    transform: scale(1) translateY(0);
}

.premium-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
    background-size: 200% 100%;
    animation: gradientMove 3s ease infinite;
    border-radius: 30px 30px 0 0;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Modal Header */
.premium-modal-header {
    padding: 2.5rem 2.5rem 1.5rem;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, rgba(0, 62, 115, 0.03) 0%, transparent 100%);
}

.premium-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: white;
    border: 2px solid #e9ecef;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    color: #6c757d;
    font-size: 1.2rem;
}

.premium-modal-close:hover {
    background: #ff4757;
    color: white;
    border-color: #ff4757;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.3);
}

.premium-modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), #004a8a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 62, 115, 0.2);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.premium-modal-icon i {
    font-size: 2.5rem;
    color: white;
}

.premium-modal-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.premium-modal-subtitle {
    color: #6c757d;
    font-size: 1.05rem;
    margin-bottom: 0;
}

/* Modal Body */
.premium-modal-body {
    padding: 0 2.5rem 2.5rem;
}

/* Form Groups */
.premium-form-group {
    margin-bottom: 1.5rem;
    position: relative;
    transition: transform 0.3s ease;
}

.premium-form-label {
    display: block;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.premium-form-control {
    width: 100%;
    padding: 1.1rem 1.3rem;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    font-family: inherit;
}

.premium-form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 62, 115, 0.08);
    transform: translateY(-2px);
}

.premium-form-control::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

.premium-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 3rem;
    cursor: pointer;
}

.premium-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Submit Button */
.premium-submit-btn {
    width: 100%;
    padding: 1.3rem;
    background: linear-gradient(135deg, var(--primary), #004a8a);
    border: none;
    border-radius: 15px;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 62, 115, 0.3);
}

.premium-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.premium-submit-btn:hover::before {
    left: 100%;
}

.premium-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 62, 115, 0.4);
}

.premium-submit-btn:active {
    transform: translateY(-1px);
}

.premium-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Loading State */
.premium-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
}

.premium-loading.show {
    display: flex;
}

.premium-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success State */
.premium-success {
    text-align: center;
    padding: 2rem;
    display: none;
    animation: successFadeIn 0.5s ease;
}

@keyframes successFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.premium-success.show {
    display: block;
}

.premium-success-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
    animation: successBounce 1s ease;
}

@keyframes successBounce {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(0.9); }
    50% { transform: scale(1.1); }
    75% { transform: scale(0.95); }
}

.premium-success h3 {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.premium-success p {
    color: #6c757d;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

/* WhatsApp Button */
.premium-whatsapp-btn {
    background: linear-gradient(135deg, #25d366, #128c7e);
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 15px;
    color: white;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.premium-whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
    color: white;
    text-decoration: none;
}

.premium-whatsapp-btn i {
    font-size: 1.5rem;
}

/* Floating Trigger Button */
.premium-enquiry-trigger {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary), #004a8a);
    color: white;
    border: none;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 62, 115, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    font-size: 1.6rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

.premium-enquiry-trigger:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 62, 115, 0.4);
    background: linear-gradient(135deg, var(--secondary), #ffb347);
}

.premium-enquiry-trigger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #004a8a);
    opacity: 0.4;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.4; }
    70% { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .premium-modal {
        margin: 1rem;
        width: calc(100% - 2rem);
        border-radius: 25px;
    }
    
    .premium-modal-header,
    .premium-modal-body {
        padding: 2rem 1.5rem;
    }
    
    .premium-modal-icon {
        width: 70px;
        height: 70px;
    }
    
    .premium-modal-icon i {
        font-size: 2rem;
    }
    
    .premium-modal-title {
        font-size: 1.6rem;
    }
    
    .premium-modal-subtitle {
        font-size: 0.95rem;
    }
    
    .premium-form-control {
        padding: 1rem 1.1rem;
        font-size: 0.95rem;
    }
    
    .premium-submit-btn {
        padding: 1.1rem;
        font-size: 1rem;
    }
    
    .premium-enquiry-trigger {
        width: 60px;
        height: 60px;
        bottom: 90px;
        right: 20px;
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .premium-modal {
        border-radius: 20px;
    }
    
    .premium-modal-header,
    .premium-modal-body {
        padding: 1.5rem 1.2rem;
    }
    
    .premium-modal-close {
        width: 40px;
        height: 40px;
        top: 1rem;
        right: 1rem;
    }
    
    .premium-modal-icon {
        width: 60px;
        height: 60px;
    }
    
    .premium-modal-icon i {
        font-size: 1.8rem;
    }
    
    .premium-modal-title {
        font-size: 1.4rem;
    }
    
    .premium-form-label {
        font-size: 0.8rem;
    }
    
    .premium-form-control {
        padding: 0.9rem 1rem;
        border-radius: 12px;
    }
    
    .premium-submit-btn {
        padding: 1rem;
        font-size: 0.95rem;
        border-radius: 12px;
    }
    
    .premium-whatsapp-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .premium-success-icon {
        width: 75px;
        height: 75px;
        font-size: 2rem;
    }
}

/* Scrollbar Styling for Modal */
.premium-modal::-webkit-scrollbar {
    width: 8px;
}

.premium-modal::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.premium-modal::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.premium-modal::-webkit-scrollbar-thumb:hover {
    background: #002a52;
}
