/* Lead Forms Frontend Styles */
.lead-form-container {
    font-family: sans-serif;
    font-size: .7em;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.lead-form .form-field {
    margin-bottom: 20px;
}

.lead-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--wp--preset--color--base);
}

.lead-form .required {
    color: #e74c3c;
}

.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form input[type="tel"],
.lead-form textarea,
.lead-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.lead-form input[type="text"]:focus,
.lead-form input[type="email"]:focus,
.lead-form input[type="tel"]:focus,
.lead-form textarea:focus,
.lead-form select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.lead-form textarea {
    resize: vertical;
    min-height: 100px;
}

.lead-form .radio-option,
.lead-form .checkbox-option {
    margin-bottom: 10px;
}

.lead-form .radio-option input,
.lead-form .checkbox-option input {
    width: auto;
    margin-right: 8px;
}

.lead-form .radio-option label,
.lead-form .checkbox-option label {
    display: inline;
    font-weight: normal;
    margin-bottom: 0;
    cursor: pointer;
}

.lead-form button[type="submit"] {
    background: #952c16;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 64px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.lead-form button[type="submit"]:hover {
    background: #952c16;
}

.lead-form button[type="submit"]:disabled {
    background: #952c16;
    cursor: not-allowed;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-loading {
    text-align: center;
    padding: 20px;
}

.form-loading::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 600px) {
    .lead-form-container {
        margin: 10px;
        padding: 15px;
    }
    
    .lead-form input[type="text"],
    .lead-form input[type="email"],
    .lead-form input[type="tel"],
    .lead-form textarea,
    .lead-form select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}