/* Custom Lead Form Styles - Clean & Simple */

.lead-form-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

.lead-form-title {
    color: #003d5c;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.lead-form-subtitle {
    color: #666666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-label .required {
    color: #ff6b35;
    margin-left: 2px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #0066a1;
    box-shadow: 0 0 0 3px rgba(0, 102, 161, 0.1);
}

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

.form-textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}

.form-submit-btn {
    width: 100%;
    background: #ff6b35;
    color: #ffffff;
    border: none;
    padding: 1rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.form-submit-btn:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

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

.form-submit-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.form-privacy {
    font-size: 0.85rem;
    color: #666666;
    margin-top: 1rem;
    line-height: 1.5;
}

.form-success-message {
    background: #28a745;
    color: #ffffff;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 1rem;
    display: none;
}

.form-success-message.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.form-error-message {
    background: #dc3545;
    color: #ffffff;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 1rem;
    display: none;
}

.form-error-message.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.form-input.error,
.form-textarea.error {
    border-color: #dc3545;
}

.form-error-text {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
}

.form-error-text.show {
    display: block;
}

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

/* Loading spinner */
.form-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .lead-form-container {
        padding: 1.5rem;
    }
    
    .lead-form-title {
        font-size: 1.25rem;
    }
    
    .form-input,
    .form-textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 480px) {
    .lead-form-container {
        padding: 1rem;
    }
}
