/* ========================================
   LEAD FORM STYLES
======================================== */

.lead-form-container {
    background: var(--light-color);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.lead-form-header {
    margin-bottom: 24px;
}

.lead-form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 8px;
    line-height: 1.2;
}

.lead-form-subtitle {
    font-size: 0.9375rem;
    color: var(--gray-medium);
    margin: 0;
}

/* Form Groups */
.lead-form .form-group {
    margin-bottom: 20px;
}

.lead-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 8px;
}

.lead-form .required {
    color: rgba(239, 68, 68, 1);
    margin-left: 2px;
}

/* Form Controls */
.lead-form .form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    color: var(--dark-color);
    background: var(--light-color);
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.lead-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.lead-form .form-control::placeholder {
    color: var(--gray-medium);
}

.lead-form .form-control.error {
    border-color: rgba(239, 68, 68, 1);
}

.lead-form .form-control.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.field-error {
    display: block;
    font-size: 0.8125rem;
    color: rgba(239, 68, 68, 1);
    margin-top: 4px;
}

/* Select */
.lead-form select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    cursor: pointer;
}

/* Checkbox */
.lead-form .form-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--gray-dark);
    cursor: pointer;
}

.lead-form .form-checkbox input[type="checkbox"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.lead-form .form-checkbox a {
    color: var(--primary-color);
    text-decoration: underline;
}

.lead-form .form-checkbox a:hover {
    color: var(--primary-hover);
}

/* Submit Button */
.lead-form .btn-submit {
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--light-color);
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.lead-form .btn-submit:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.lead-form .btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Loading Spinner */
.spinner {
    animation: rotate 2s linear infinite;
    width: 20px;
    height: 20px;
}

.spinner .path {
    stroke: currentColor;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

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

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Form Messages */
.lead-form .form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.lead-form .form-message.success {
    background: rgba(16, 185, 129, 0.2);
    color: rgba(6, 95, 70, 1);
    border: 1px solid var(--success-color);
}

.lead-form .form-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: rgba(153, 27, 27, 1);
    border: 1px solid rgba(239, 68, 68, 1);
}

/* Hero Section Integration */
.hero-form-container {
    width: 100%;
}

.hero-form-container .lead-form-container {
    border: 1px solid var(--gray-light);
    padding: 28px;
}

.hero-form-container .lead-form-title {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.hero-form-container .lead-form-subtitle {
    font-size: 0.875rem;
    margin-bottom: 20px;
}

.hero-form-container .form-group {
    margin-bottom: 16px;
}

.hero-form-container .form-control {
    padding: 11px 14px;
    font-size: 0.9375rem;
}

.hero-form-container label {
    font-size: 0.8125rem;
    margin-bottom: 6px;
}

.hero-form-container .btn-submit {
    padding: 14px 20px;
    font-size: 0.9375rem;
}

/* Responsive */
@media (max-width: 768px) {
    .lead-form-container {
        padding: 24px 20px;
    }

    .lead-form-title {
        font-size: 1.5rem;
    }

    .lead-form-subtitle {
        font-size: 0.875rem;
    }

    .lead-form .form-control {
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .lead-form-container {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .lead-form-title {
        font-size: 1.25rem;
    }

    .lead-form .btn-submit {
        padding: 14px 20px;
        font-size: 0.9375rem;
    }
}
