/* =========================
   HIGHGROUND FORMS
   Layout, espaçamento, tamanhos
   Mantém fontes do tema
   ========================= */

/* Form ocupa melhor a largura do conteúdo */
.hg-interest-form {
    width: 100%;
    max-width: 980px;
    margin: 2.25rem auto;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

/* Seções com respiro e divisória leve */
.hg-form-section {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;

    padding: 1.1rem 0;
    border-top: 1px solid currentColor;
}

.hg-form-section:first-of-type {
    border-top: none;
    padding-top: 0;
}

/* Tipografia maior para leitura rápida */
.hg-interest-form label {
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.hg-interest-form small {
    font-size: 0.92rem;
    opacity: 0.78;
}

/* =========================
   Inputs e selects
   ========================= */

.hg-interest-form input[type="text"],
.hg-interest-form input[type="email"],
.hg-interest-form input[type="tel"],
.hg-interest-form select,
.hg-interest-form textarea {
    width: 100%;
    box-sizing: border-box;

    padding: 0.9rem 1.05rem;
    border-radius: 999px;

    border: 1px solid rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.12);

    font: inherit;
    font-size: 1.02rem;
    line-height: 1.2;

    color: #ffffff;

    outline: none;
}

/* Textarea como bloco */
.hg-interest-form textarea {
    border-radius: 1rem;
    min-height: 120px;
    resize: vertical;
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
}

/* Placeholder */
.hg-interest-form input::placeholder,
.hg-interest-form textarea::placeholder {
    color: rgba(255,255,255,0.65);
}

/* Select options */
.hg-interest-form option {
    color: #000;
}

/* Focus */
.hg-interest-form input:focus,
.hg-interest-form select:focus,
.hg-interest-form textarea:focus {
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.85);
    box-shadow: 0 0 0 2px rgba(255,255,255,0.18);
}

/* =========================
   Grid 2 colunas
   ========================= */

.hg-row-2col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.25rem;
}

@media (max-width: 760px) {
    .hg-row-2col {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* UF menor */
.hg-field-uf select {
    max-width: 180px;
}

/* =========================
   Checkboxes e radios alinhados
   ========================= */

.hg-inline-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hg-inline-options label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.98rem;
    font-weight: 500;
}

/* Consent e labels com input inline */
.hg-interest-form .hg-form-row > label {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 500;
}

/* Ajuste fino de checkbox e radio */
.hg-interest-form input[type="checkbox"],
.hg-interest-form input[type="radio"] {
    transform: translateY(1px);
}

/* =========================
   Chips de serviços / objetivos
   ========================= */

.hg-services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.hg-services-list label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;

    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.75);

    font-size: 0.98rem;
    font-weight: 500;

    background: rgba(255,255,255,0.05);
    cursor: pointer;
}

.hg-services-list input[type="checkbox"] {
    margin: 0;
}

/* =========================
   Botões consistentes
   ========================= */

.hg-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

/* remove margens estranhas de blocos WP */
.hg-interest-form .wp-block-button,
.hg-interest-form .wp-block-button__link {
    margin: 0 !important;
}

/* Botão base */
.hg-interest-form .wp-block-button__link {
    min-height: 52px;
    padding: 0 1.8rem;

    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.85);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.4px;

    color: #ffffff;
    background: rgba(255,255,255,0.15);

    text-decoration: none;
    cursor: pointer;

    transition: background 0.15s ease, transform 0.1s ease;
}

.hg-interest-form .wp-block-button__link:hover {
    background: rgba(255,255,255,0.22);
    transform: translateY(-1px);
}

/* Outline */
.hg-interest-form .wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    border-style: dashed;
}

/* Mobile: botões em coluna */
@media (max-width: 520px) {
    .hg-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hg-interest-form .wp-block-button__link {
        width: 100%;
    }
}

/* =========================
   Details opcional
   ========================= */

.hg-details {
    margin-top: 0.85rem;
}

.hg-details summary {
    cursor: pointer;
    font-size: 1.02rem;
    font-weight: 700;
    opacity: 0.95;
}

/* =========================
   Mensagens
   ========================= */

.hg-form-error {
    margin: 0.75rem 0 0;
    font-size: 1rem;
    color: #ff4d4f;
}

.hg-form-success {
    margin: 0.75rem 0 0;
    font-size: 1rem;
    color: #4caf50;
}
/* =========================
   SELECT (DROPDOWN) – PADRONIZACAO
   ========================= */

.hg-interest-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    color: #ffffff;
    background-color: rgba(255,255,255,0.12);

    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 999px;

    padding: 0.9rem 3rem 0.9rem 1.05rem;

    font: inherit;
    font-size: 1.02rem;
    line-height: 1.2;

    background-image:
        linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.9) 50%),
        linear-gradient(135deg, rgba(255,255,255,0.9) 50%, transparent 50%);
    background-position:
        calc(100% - 1.35rem) 50%,
        calc(100% - 1.05rem) 50%;
    background-size:
        6px 6px,
        6px 6px;
    background-repeat: no-repeat;
}

/* Hover */
.hg-interest-form select:hover {
    background-color: rgba(255,255,255,0.15);
}

/* Focus */
.hg-interest-form select:focus {
    background-color: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.85);
    box-shadow: 0 0 0 2px rgba(255,255,255,0.18);
}

/* Options (lista aberta) */
.hg-interest-form select option {
    color: #000000;
    background: #ffffff;
}
