/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 600px;
}

.form-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

/* Header styles */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.icon i {
    font-size: 2rem;
    color: white;
}

.header h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
}

.header p {
    color: #718096;
    font-size: 1.1rem;
}

/* Form styles */
.lead-form {
    display: block;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group label i {
    margin-right: 8px;
    width: 16px;
    color: #667eea;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f7fafc;
    font-family: inherit;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0aec0;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Checkbox styles */
.checkbox-group {
    margin: 30px 0;
}

.checkbox-label {
    display: flex !important;
    align-items: flex-start !important;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

.checkmark {
    width: 20px;
    height: 20px;
    background-color: #e2e8f0;
    border-radius: 4px;
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.checkbox-label:hover .checkmark {
    background-color: #cbd5e0;
}

.checkbox-label input:checked ~ .checkmark {
    background-color: #667eea;
}

.checkbox-label input:checked ~ .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 12px;
}

.checkbox-label a {
    color: #667eea;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Submit button */
.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

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

.submit-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-text,
.btn-loading {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.btn-text i {
    margin-right: 8px;
}

.btn-loading {
    position: absolute;
    opacity: 0;
    transform: translateY(10px);
}

.submit-btn.loading .btn-text {
    opacity: 0;
    transform: translateY(-10px);
}

.submit-btn.loading .btn-loading {
    opacity: 1;
    transform: translateY(0);
}

/* Success and Error messages */
.success-message,
.error-message {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.success-message.show,
.error-message.show {
    display: block;
}

.success-icon,
.error-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-icon {
    background: linear-gradient(135deg, #48bb78, #38a169);
}

.error-icon {
    background: linear-gradient(135deg, #f56565, #e53e3e);
}

.success-icon i,
.error-icon i {
    font-size: 2rem;
    color: white;
}

.success-message h3,
.error-message h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.success-message h3 {
    color: #2f855a;
}

.error-message h3 {
    color: #c53030;
}

.success-message p,
.error-message p {
    color: #718096;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.new-lead-btn,
.retry-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 1rem;
}

.new-lead-btn {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
}

.retry-btn {
    background: linear-gradient(135deg, #f56565, #e53e3e);
    color: white;
}

.new-lead-btn:hover,
.retry-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Form hidden state */
.form-hidden .lead-form {
    display: none;
}

.form-hidden .header {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .form-wrapper {
        padding: 30px 20px;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px 16px;
    }
    
    .submit-btn {
        padding: 15px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .icon {
        width: 60px;
        height: 60px;
    }
    
    .icon i {
        font-size: 1.5rem;
    }
    
    .header h1 {
        font-size: 1.3rem;
    }
}
