/* =========================
   SEC-FORM (Formulário Evento)
   ========================= */

.sec-form {
    position: relative;
    padding: 80px 0;
    background-color: transparent; /* Changed to match white layout */
}

/* Detalhe de fundo (crosshatch escuro) — faixa no topo, logo abaixo do banner.
   Mesma textura usada em .sec-initial (home) e .sec-blog-hero (blog). */
.sec-form::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 160px;
    background-color: var(--primary);
    background-image: repeating-linear-gradient(45deg,
        rgb(84, 46, 27) 0px,
        rgb(84, 46, 27) 20px,
        transparent 1px,
        transparent 40px);
    z-index: 0;
    pointer-events: none;
}

.sec-form::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 160px;
    z-index: 1;
    background-color: rgba(0, 0, 0, .8);
    pointer-events: none;
}

.sec-form-header {
    text-align: center;
    margin: 0 auto 60px;
}

.sec-form-header h1 {
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 15px;
}

.sec-form-header p {
    color: var(--secondary);
    font-size: 0.96rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.contact-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    position: relative;
    z-index: 10;
}

.contact-form-col {
    flex: 1.4 1 550px;
}

.contact-info-col {
    flex: 1 1 350px;
}

/* Card do Formulário */
.sec-form-card {
    background: #fff;
    padding: 48px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Inputs padronizados */
.sec-form-card .fv-field {
    position: relative;
    width: 100%;
}

.sec-form-card .fv-field input,
.sec-form-card .fv-field textarea {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.sec-form-card .fv-field input::placeholder,
.sec-form-card .fv-field textarea::placeholder {
    color: #999;
}

.sec-form-card .fv-field input:focus,
.sec-form-card .fv-field textarea:focus {
    border-color: var(--primary);
}

.sec-form-card .fv-field input.fv-error,
.sec-form-card .fv-field textarea.fv-error {
    border-color: #f87171;
}

.sec-form-card .fv-error-msg {
    display: none;
}

.sec-form-card .fv-field textarea {
    resize: vertical;
}

/* Grids Internos (Linhas do form) */
.form-grid-3 {
    display: grid;
    grid-template-columns: 1fr auto 1.5fr;
    gap: 20px;
    align-items: center;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}

/* Checkboxes */
.fv-checkbox-inline label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #666;
    height: 100%;
    padding: 10px 0;
}

.fv-checkbox-inline input[type="checkbox"],
.ev-consent input[type="checkbox"] {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
    margin: 0;
}

.ev-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    margin-top: 4px;
}

.ev-consent span {
    font-size: 0.75rem;
    color: #888;
    line-height: 1.4;
}

/* Botão Submit (Preto) */
.btn-submit-black {
    background: var(--quarternary);
    color: #fff;
    border: none;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
}

.btn-submit-black:hover {
    background: var(--secondary);
}

.btn-submit-black i {
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 1.1rem;
}

.ev-feedback:empty {
    display: none;
}
.ev-feedback {
    font-size: 0.85rem;
    margin-top: 10px;
}

/* Coluna de Informações (Direita) */
.contact-photo img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background-color: #4a90e2; /* Placeholder blue */
    display: block;
}

.contact-photo-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background-color: #4a90e2; /* Placeholder blue */
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 24px;
    font-family: monospace;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.contact-social {
    margin-top: 32px;
}

.contact-social-title {
    color: #666;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

/* Wrapper para as redes sociais que usa o component social_media */
.social-icons-wrapper .social-medias {
    display: flex;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-icons-wrapper .social-medias a {
    color: #333;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-icons-wrapper .social-medias a:hover {
    color: var(--primary);
}

.contact-details {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
}

.contact-detail-item:hover {
    color: var(--quarternary);
}

.cd-icon {
    width: 48px;
    height: 48px;
    background: var(--secondary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.contact-detail-item:hover .cd-icon {
    background: var(--quarternary);
}

@media (max-width: 992px) {
    .contact-layout {
        margin-top: -40px;
        flex-direction: column;
    }

    .contact-info-col{
        flex: 1;
        width: 100%;
    }
    
    .sec-form-card {
        padding: 30px 20px;
    }
    
    .form-grid-3, .lgpd-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* =========================
   SEC-CTA (Contato)
   ========================= */

.sec-cta {
    position: relative;
    overflow: hidden;
    height: 700px;
}

.sec-cta .cta-content {
    height: 100%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    text-align: center;
}

.sec-cta .cta-signature {
    height: 50px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
}

.sec-cta .cta-text {
    color: var(--white);
    max-width: 1200px;
}

.sec-cta .cta-text h1 {
    font-size: 2.6rem;
    font-weight: 600;
    line-height: 1.1;
    margin: 0;
}

.sec-cta .cta-text p {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
}

@media (max-width: 768px) {
    .sec-cta {
        height: 650px;
    }

    .sec-cta .cta-text h1 {
        font-size: 1.8rem;
    }
}

/* =========================
   SEC-ADDRESS
   ========================= */

.sec-address {
    background-color: var(--white);
}

.address-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px 80px;
    color: var(--primary);
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

.address-text span {
    max-width: 550px;
}

.address-text i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.address-map {
    width: 100%;
    line-height: 0;
}

.address-map iframe {
    width: 100%;
    height: 450px;
    border: none;
    display: block;
}

@media (max-width: 768px) {
    .address-text{
        padding: 40px 0;
    }

    .address-map iframe {
        height: 260px;
    }
}
/* iOS auto-zoom fix — força 16px no mobile (iOS faz auto-zoom em <16px). */
@media (max-width: 768px) {
    .sec-form-fields .fv-field input,
    .sec-form-fields .fv-field select,
    .sec-form-fields .fv-field textarea {
        font-size: 16px;
    }
}
