/**
 * Lead Form Manager - Frontend Styles
 * File: assets/css/frontend.css
 */

.lfm-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.lfm-lead-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    position: relative;
}

.lfm-form-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.lfm-order-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}

.lfm-discount-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(245, 87, 108, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(245, 87, 108, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(245, 87, 108, 0);
    }
}

.lfm-form-fields {
    margin-bottom: 30px;
}

.lfm-form-group {
    margin-bottom: 20px;
}

.lfm-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
    font-size: 16px;
}

.lfm-form-group input,
.lfm-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.lfm-form-group input:focus,
.lfm-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.lfm-form-group input::placeholder {
    color: #999;
    font-style: italic;
}

.lfm-product-price-section {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 25px;
    gap: 20px;
}

.lfm-product-image {
    width: 35%;
    flex-shrink: 0;
}

.lfm-product-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.lfm-price-display {
    width: 65%;
    text-align: center;
}

.lfm-price-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lfm-price-current {
    font-size: 36px;
    font-weight: bold;
    color: #27ae60;
    margin-bottom: 10px;
}

.lfm-price-original {
    font-size: 20px;
    color: #999;
    text-decoration: line-through;
}

.lfm-form-submit {
    text-align: center;
}

.lfm-submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 50px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.lfm-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

.lfm-submit-btn:active {
    transform: translateY(0);
}

.lfm-form-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    z-index: 100;
}

.lfm-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Thank You Page Styles */
.lfm-thank-you-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.lfm-thank-you-heading {
    font-size: 48px;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease;
}

.lfm-thank-you-message {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
    animation: fadeInUp 0.8s ease;
}

.lfm-thank-you-caution {
    color: #e74c3c;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease;
}

.lfm-thank-you-image {
    max-width: 300px;
    margin: 0 auto;
    animation: fadeInUp 1.2s ease;
}

.lfm-thank-you-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .lfm-form-container {
        padding: 20px;
    }
    
    .lfm-lead-form {
        padding: 20px;
    }
    
    .lfm-order-title {
        font-size: 22px;
    }
    
    .lfm-product-price-section {
        flex-direction: column;
    }
    
    .lfm-product-image,
    .lfm-price-display {
        width: 100%;
    }
    
    .lfm-submit-btn {
        width: 100%;
    }
}