#hero {
    width: 100%;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 4%;
    color: var(--gray-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    width: 100%;
    max-width: 640px;
}

.hero-left {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.hero-right {
    width: 100%;
}

.hero-divider {
    display: none;
}

.hero-badge {
    background-color: var(--azure);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.875rem;
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

#hero-form {
    background-color: rgba(255, 255, 255, 0.92);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
    box-sizing: border-box;
    width: 100%;
}

#hero-form .form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

#hero-form .code-search {
    flex-direction: column;
    gap: 10px;
}

#hero-form .code-search input {
    width: 100%;
}

#hero-form label {
    margin-bottom: 4px;
    font-weight: 700;
}

#hero-form select,
#hero-form input {
    -webkit-appearance: none;
    padding: 10px;
    background-color: white;
    color: grey;
    border: 1px solid var(--primary-light);
    border-radius: 8px;
    box-sizing: border-box;
    width: 100%;
}

#hero-form button {
    padding: 12px;
    background: linear-gradient(135deg, var(--azure), #62aaff);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.2s;
}

#hero-form button:hover {
    opacity: 0.88;
}

.hero-form-ou {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray-secondary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-form-ou::before,
.hero-form-ou::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--primary-light);
}

.hero-whatsapp-cta {
    margin-top: 16px;
    align-self: center;
    text-align: center;
    justify-content: center;
    width: 100%;
}

.header-whatsapp {
    padding: 6px 10px;
    font-size: 18px;
    line-height: 1;
    border-radius: 50%;
    gap: 0;
}

.header-whatsapp i {
    font-size: 18px;
}

/* ── Formulário de contato do hero ── */
.hero-badge-purple {
    background: linear-gradient(135deg, var(--azure), #62aaff);
}

/* Colapsado por padrão em todas as telas */
#contact-hero-form {
    background-color: rgba(255, 255, 255, 0.92);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    min-height: 70px;
    padding: 0;
    gap: 0;
    align-items: stretch;
    justify-content: stretch;
    transition: padding 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-hero-header {
    display: flex;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    justify-content: center;
    align-items: stretch;
    flex: 1;
    gap: 8px;
}

/* Badge preenche o card inteiro no estado colapsado */
.contact-hero-header .hero-badge-purple {
    flex: 1;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 20px;
    font-size: 1rem;
    white-space: nowrap;
    transition:
        flex        0.45s cubic-bezier(0.4, 0, 0.2, 1),
        padding     0.42s cubic-bezier(0.4, 0, 0.2, 1),
        border-radius 0.42s cubic-bezier(0.4, 0, 0.2, 1),
        font-size   0.3s ease;
}

/* Body colapsado */
.contact-hero-body {
    display: flex;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    gap: 0;
    transition:
        max-height 0.48s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.36s ease,
        gap 0.36s ease;
}

/* ── Estado expandido ── */
#contact-hero-form.expanded {
    padding: 20px;
    height: auto;
    gap: 15px;
    justify-content: flex-start;
}

#contact-hero-form.expanded .contact-hero-header {
    flex: none;
    justify-content: flex-start;
    align-items: center;
}

#contact-hero-form.expanded .contact-hero-header .hero-badge-purple {
    flex: 0 0 auto;
    align-self: auto;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
}

#contact-hero-form.expanded .contact-hero-body {
    max-height: 800px;
    opacity: 1;
    gap: 15px;
}

#contact-hero-form h2 {
    font-size: 1.25rem;
    margin: 0 0 4px;
    line-height: 1.35;
}

#contact-hero-form .form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

#contact-hero-form label {
    margin-bottom: 4px;
    font-weight: 700;
}

#contact-hero-form input,
#contact-hero-form select {
    -webkit-appearance: none;
    padding: 10px;
    background-color: white;
    color: grey;
    border: 1px solid var(--primary-light);
    border-radius: 8px;
    box-sizing: border-box;
    width: 100%;
}

.btn-whatsapp-hero {
    padding: 12px 16px;
    background: #25d366;
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.2s;
}

.btn-whatsapp-hero:hover {
    opacity: 0.88;
}

.contact-hero-msg {
    font-size: 0.85rem;
    text-align: center;
    margin: 0;
    min-height: 1.2em;
}

.contact-hero-msg.error {
    color: var(--danger);
}

.contact-hero-msg.success {
    color: var(--primary-purple);
}

/* ── Responsivo ── */
@media (max-width: 900px) {
    #hero {
        padding: 80px 16px;
    }

    .hero-content {
        gap: 20px;
    }

    #contact-hero-form {
        min-height: 60px;
    }
}