/* ==========================================================================
   EasyCleaner - Exact Form Styling (Print 1)
   ========================================================================== */

.hero-form-wrapper {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-form-wrapper iframe {
    width: 100% !important;
    display: block;
}

.hero-form-card .form-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    color: #222222;
    text-align: center;
    margin-bottom: 6px;
}

.hero-form-card .form-subtitle {
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: #777777;
    text-align: center;
    margin-bottom: 24px;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-label {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    color: #333333;
}

.form-label .asterisk {
    color: #cf2e2e;
}

.form-control {
    width: 100%;
    height: 42px;
    padding: 8px 12px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #333333;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: #2872fa;
    box-shadow: 0 0 0 2px rgba(40, 114, 250, 0.15);
}

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23666666'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 16px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.btn-form-submit {
    width: 100%;
    height: 46px;
    background: var(--brand-green);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-form-submit:hover {
    background: var(--brand-green-hover);
}

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

.btn-form-submit .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
}

.btn-form-submit.loading .spinner {
    display: inline-block;
}

.btn-form-submit.loading .btn-text {
    display: none;
}

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

.form-alert {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 12px;
    display: none;
}

.form-alert.alert-error {
    display: block;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.form-alert.alert-success {
    display: block;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

@media (max-width: 600px) {
    .hero-form-card {
        padding: 24px 20px;
    }
}
