/**
 * Mehta Lead Capture Pro - Frontend Styles
 * Version 5.0.0
 */

/* Phone Modal */
.mlc-phone-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: mlc-fade-in 0.3s ease-in-out;
}

@keyframes mlc-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.mlc-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.mlc-modal-content {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #1a4d3e 0%, #2a6b4f 100%);
    border-radius: 15px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: mlc-slide-up 0.4s ease-out;
}

@keyframes mlc-slide-up {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.mlc-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    color: #d4af37;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.mlc-modal-close:hover {
    transform: scale(1.2);
}

.mlc-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.mlc-modal-header h2 {
    color: #d4af37;
    font-size: 28px;
    margin: 0 0 10px 0;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.mlc-modal-header p {
    color: #ffffff;
    font-size: 16px;
    margin: 0;
    font-weight: 500;
}

/* Form Styles */
.mlc-phone-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mlc-phone-form input {
    padding: 14px 16px;
    border: 2px solid #d4af37;
    border-radius: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    transition: all 0.3s;
    font-family: inherit;
}

.mlc-phone-form input:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    background: #ffffff;
}

.mlc-phone-form input::placeholder {
    color: #999;
}

/* Submit Button */
.mlc-submit-btn {
    padding: 14px 20px !important;
    background: linear-gradient(135deg, #d4af37 0%, #c9a84c 100%) !important;
    color: #1a4d3e !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3) !important;
}

.mlc-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5) !important;
}

.mlc-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Error and Success Messages */
.mlc-error,
.mlc-success {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
    text-align: center;
    font-weight: 500;
}

.mlc-error.show,
.mlc-success.show {
    display: block;
    animation: mlc-slide-down 0.3s ease-out;
}

@keyframes mlc-slide-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mlc-error {
    background: rgba(220, 53, 69, 0.2);
    color: #ffcccc;
    border: 1px solid rgba(220, 53, 69, 0.5);
}

.mlc-success {
    background: rgba(40, 167, 69, 0.2);
    color: #ccffcc;
    border: 1px solid rgba(40, 167, 69, 0.5);
}

/* Privacy Text */
.mlc-privacy {
    text-align: center;
    font-size: 12px;
    color: #d4af37;
    margin-top: 15px;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 600px) {
    .mlc-modal-content {
        padding: 30px 20px;
        max-width: 100%;
        margin: 20px;
    }
    
    .mlc-modal-header h2 {
        font-size: 24px;
    }
    
    .mlc-phone-form input {
        font-size: 16px;
        padding: 12px 14px;
    }
}

/* Sparkles Animation */
@keyframes sparkle {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

.mlc-sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #d4af37;
    border-radius: 50%;
    animation: sparkle 2s infinite;
}

/* Grab More Deals Modal */
.mlc-deals-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 99998; display: flex; align-items: center; justify-content: center; }
.mlc-deals-content { position: relative; z-index: 2; background: linear-gradient(135deg, #1a4d3e 0%, #2a6b4f 100%); border-radius: 15px; padding: 40px; max-width: 900px; width: 95%; max-height: 80vh; overflow-y: auto; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); }
.mlc-deals-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; margin-bottom: 30px; }
.mlc-deal-card { background: rgba(255, 255, 255, 0.95); border-radius: 10px; overflow: hidden; transition: all 0.3s; }
.mlc-deal-image { width: 100%; height: 120px; background-size: cover; background-position: center; }
.mlc-deal-badge { position: absolute; top: 10px; right: 10px; background: #d4af37; color: #1a4d3e; padding: 5px 10px; border-radius: 5px; font-size: 12px; font-weight: bold; }
.mlc-deal-btn { background: #1a4d3e; color: #d4af37; padding: 8px 15px; border-radius: 5px; text-decoration: none; font-weight: bold; }
.mlc-deals-close-btn { padding: 12px 30px; background: linear-gradient(135deg, #d4af37 0%, #c9a84c 100%); color: #1a4d3e; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; }

/* Phone Display */
.mlc-form-group { position: relative; margin-bottom: 15px; }
#mlc-phone-input { width: 100%; padding: 12px; border: 2px solid #d4af37; border-radius: 8px; font-size: 16px; background: white; color: #1a4d3e; }
#mlc-phone-input:focus { outline: none; border-color: #1a4d3e; box-shadow: 0 0 10px rgba(212, 175, 55, 0.3); }
#mlc-phone-display { display: none; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #1a4d3e; font-weight: bold; font-size: 14px; }
#mlc-phone-display.show { display: block; }
