/* ==========================================================================
   Site Full - Public Contact CSS (Full-Width Responsive Design - Light/White Theme)
   ========================================================================== */

/* Prevenir rolagem horizontal e definir cor de fundo continua na pagina de contato */
body.sf-contact-page-active {
    background-color: #ffffff !important;
    overflow-x: hidden;
}

/* Reset total de espacamento e restricoes de largura do tema na pagina de contato */
body.sf-contact-page-active .entry-content,
body.sf-contact-page-active .wp-block-post-content,
body.sf-contact-page-active main,
body.sf-contact-page-active .wp-site-blocks,
body.sf-contact-page-active article,
body.sf-contact-page-active .wp-block-group {
    max-width: 100% !important;
    width: 100% !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    gap: 0 !important;
}

/* Remover espaco superior do rodapé do plugin quando na pagina de contato */
body.sf-contact-page-active .sf-footer {
    margin-top: 0 !important;
}

/* Ocultar titulos, cabecalhos e rodapés nativos do tema quando na pagina de contato */
body.sf-contact-page-active .wp-block-post-title,
body.sf-contact-page-active .entry-title,
body.sf-contact-page-active .page-title,
body.sf-contact-page-active header.entry-header,
body.sf-contact-page-active .entry-header,
body.sf-contact-page-active h1.single-title,
body.sf-contact-page-active .wp-block-query-title,
body.sf-contact-page-active footer.wp-block-template-part,
body.sf-contact-page-active .wp-block-template-part-footer,
body.sf-contact-page-active footer.site-footer,
body.sf-contact-page-active .site-footer,
body.sf-contact-page-active footer.wp-block-group {
    display: none !important;
}

/* Secao de Contato */
.sf-contact-section {
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
    padding: 70px 20px;
    background: #ffffff;
    color: #0f172a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    position: relative;
    overflow: hidden;
}

.sf-contact-section::before {
    content: "";
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.07) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.sf-contact-section::after {
    content: "";
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.sf-contact-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Header da Seção */
.sf-contact-header {
    text-align: center;
    margin-bottom: 48px;
}

.sf-contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 30px;
    color: #4f46e5;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}

.sf-contact-badge .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #4f46e5;
}

.sf-contact-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.sf-contact-header p {
    font-size: 16px;
    color: #64748b;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.65;
}

/* Grid de Layout */
.sf-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 36px;
    align-items: start;
}

@media (max-width: 960px) {
    .sf-contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Card Único de Informações de Contato
   ============================================================ */

.sf-contact-info-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* Glow sutil no topo do card */
.sf-contact-info-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #a855f7, #6366f1);
    border-radius: 20px 20px 0 0;
}

/* Cabeçalho interno do card */
.sf-info-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 6px;
}

.sf-info-card-header__icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sf-info-card-header__icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.sf-info-card-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.sf-info-card-header p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* Divisor */
.sf-info-card-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 24px 0;
    border-radius: 1px;
}

/* Lista de itens de informação */
.sf-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sf-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s ease;
}

.sf-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sf-info-item:first-child {
    padding-top: 0;
}

.sf-info-item__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.sf-info-item--whatsapp .sf-info-item__icon {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #16a34a;
}

.sf-info-item:hover .sf-info-item__icon {
    transform: scale(1.1);
    border-color: #c7d2fe;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.15);
}

.sf-info-item--whatsapp:hover .sf-info-item__icon {
    border-color: #86efac;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.15);
}

.sf-info-item__icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.sf-info-item__content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.sf-info-item__label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1;
}

.sf-info-item__value {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

a.sf-info-item__value:hover {
    color: #4f46e5;
}

.sf-info-item--whatsapp a.sf-info-item__value:hover {
    color: #16a34a;
}

/* ============================================================
   Coluna de Formulário
   ============================================================ */

.sf-public-form {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

@media (max-width: 600px) {
    .sf-public-form {
        padding: 24px;
    }
    .sf-contact-info-card {
        padding: 24px;
    }
}

.sf-form-title {
    margin-bottom: 24px;
}

.sf-form-title h3 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.sf-form-title p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.sf-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 640px) {
    .sf-form-row {
        grid-template-columns: 1fr;
    }
}

.sf-field-group {
    margin-bottom: 20px;
}

.sf-field-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.sf-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.sf-input-wrap .dashicons {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 18px;
    width: 18px;
    height: 18px;
    pointer-events: none;
    transition: color 0.2s ease;
}

.sf-input-wrap--textarea .dashicons {
    top: 14px;
}

.sf-input-wrap input,
.sf-input-wrap textarea {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: #0f172a;
    background: #f8fafc;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.sf-input-wrap textarea {
    padding-top: 12px;
}

.sf-input-wrap input::placeholder,
.sf-input-wrap textarea::placeholder {
    color: #94a3b8;
}

.sf-input-wrap input:focus,
.sf-input-wrap textarea:focus {
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
    outline: none;
}

.sf-input-wrap input:focus + .dashicons,
.sf-input-wrap textarea:focus + .dashicons,
.sf-input-wrap:focus-within .dashicons {
    color: #4f46e5;
}

.sf-btn-submit {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 18px rgba(79, 70, 229, 0.35);
}

.sf-btn-submit .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.sf-btn-submit:hover {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.45);
}

.sf-btn-submit:hover .dashicons {
    transform: translateX(4px);
}

.sf-btn-submit:active {
    transform: translateY(0);
}

.sf-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Notificações do Formulário */
.sf-form-notice {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.sf-form-notice--success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.sf-form-notice--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Animação de loading no botão de envio */
@keyframes sf-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.sf-spin {
    display: inline-block;
    animation: sf-spin 0.8s linear infinite;
}

/* ============================================================
   Seção do Mapa (Google Maps)
   ============================================================ */

.sf-contact-map-wrap {
    margin-top: 48px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.sf-contact-map-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #a855f7, #6366f1);
    border-radius: 20px 20px 0 0;
}

.sf-contact-map-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.sf-contact-map-header__icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sf-contact-map-header__icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.sf-contact-map-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.sf-contact-map-header p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.sf-contact-map-container {
    width: 100%;
    height: 450px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    border: 1px solid #e2e8f0;
}

.sf-contact-map-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    display: block;
}

@media (max-width: 600px) {
    .sf-contact-map-wrap {
        padding: 24px;
        margin-top: 32px;
    }
    .sf-contact-map-container {
        height: 320px;
    }
}
