/* ==========================================================================
   GOVMARKET GLOBAL CUSTOM STYLES v1.0.0
   Design System Estático — Alta Performance & Otimização SEO
   ========================================================================== */

/* ==========================================
   SPINNER PREMIUM (Centralizado e Pulsante)
   ========================================== */
#govmarket-loader {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.8); /* Fundo levemente transparente */
    backdrop-filter: blur(5px); /* Efeito de desfoque moderno (Glassmorphism) */
    border-radius: 12px;
    transition: opacity 0.5s ease;
    z-index: 50; /* Garante que fique acima do conteúdo */
}

#govmarket-loader .govmarket-spinner {
    width: 70px;
    height: 70px;
    border: 5px solid rgba(0, 115, 170, 0.15); /* Cor primária bem clara */
    border-top-color: var(--primary-color, #0073aa); /* Cor primária forte */
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.55, 0.055, 0.675, 0.19) infinite; /* Giro com aceleração */
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.2); /* Sombra suave colorida */
    margin-bottom: 20px;
}

#govmarket-loader p {
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color, #0073aa);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    animation: pulseText 1.5s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseText {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ========================================
   ANIMAÇÃO "FADE IN UP" (SURGIR DE BAIXO)
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Aplica a animação a todos os blocos de grupo */
.wp-block-group {
    animation: fadeInUp 0.6s ease;
}

/* Adiciona um leve atraso para os blocos seguintes */
.wp-block-group:nth-child(2) {
    animation-delay: 0.1s;
}

.wp-block-group:nth-child(3) {
    animation-delay: 0.2s;
}


/* ========================================
   CSS PÁGINA DE CONTATO
   ======================================== */

/* Hero Section */
.wp-block-group.alignfull.has-foreground-background-color {
    background: linear-gradient(135deg, var(--wp--preset--color--foreground) 0%, #1a1a1a 100%);
    position: relative;
}

/* Card do Formulário */
.wp-block-group.has-base-background-color[style*="border-top-color"] {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wp-block-group.has-base-background-color[style*="border-top-color"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(0,0,0,0.15);
}

/* Formulário JetForms */
.jet-contact-form {
    margin-top: 10px;
}

.jet-contact-form .jet-form__field {
    margin-bottom: 20px !important;
}

.jet-contact-form input[type="text"],
.jet-contact-form input[type="email"],
.jet-contact-form input[type="tel"],
.jet-contact-form textarea,
.jet-contact-form select {
    border-radius: 8px !important;
    border: 1px solid #ccd0d4 !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
    background-color: #f6f7f7 !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
}

.jet-contact-form input:focus,
.jet-contact-form textarea:focus,
.jet-contact-form select:focus {
    border-color: var(--wp--preset--color--primary) !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.15) !important;
    outline: none !important;
}

.jet-contact-form textarea {
    min-height: 120px !important;
    resize: vertical !important;
}

/* Botão Submit */
.jet-contact-form button[type="submit"],
.jet-contact-form .jet-form__submit {
    background-color: var(--wp--preset--color--primary) !important;
    color: white !important;
    border: none !important;
    padding: 14px 32px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
}

.jet-contact-form button[type="submit"]:hover {
    background-color: #005a87 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3) !important;
}

/* Cards de Informação */
.wp-block-group.has-base-background-color {
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.wp-block-group.has-base-background-color:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* FAQ Cards */
.wp-block-group[style*="border-left-color"] {
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.wp-block-group[style*="border-left-color"]:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    border-left-width: 6px !important;
}

/* Imagem */
.wp-block-image img {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.wp-block-image:hover img {
    transform: scale(1.02);
}

/* CTA Section */
.wp-block-group.has-contrast-background-color {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

/* Botões */
.wp-block-button__link {
    transition: all 0.3s ease !important;
}

.wp-block-button__link:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25) !important;
}

/* Animações */
.wp-block-columns {
    animation: fadeInUp 0.6s ease;
}

/* Ícones Inline */
.has-medium-font-size strong::before {
    margin-right: 8px;
}

/* Progress Bar do Formulário */
.jet-form-progress {
    margin-bottom: 25px !important;
}

.jet-form-progress__bar {
    background-color: var(--wp--preset--color--primary) !important;
    border-radius: 10px !important;
    height: 8px !important;
}

/* Mensagens de Sucesso/Erro */
.jet-form-message {
    padding: 15px 20px !important;
    border-radius: 8px !important;
    margin-top: 20px !important;
    font-weight: 500 !important;
}

.jet-form-message--success {
    background-color: #d4edda !important;
    color: #155724 !important;
    border-left: 4px solid #28a745 !important;
}

.jet-form-message--error {
    background-color: #f8d7da !important;
    color: #721c24 !important;
    border-left: 4px solid #dc3545 !important;
}

/* Responsividade */
@media screen and (max-width: 781px) {
    .wp-block-columns {
        flex-direction: column !important;
    }
    
    .wp-block-column {
        flex-basis: 100% !important;
        margin-bottom: 30px !important;
    }
    
    .wp-block-group[style*="padding"] {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

@media screen and (max-width: 600px) {
    .wp-block-heading.has-xx-large-font-size {
        font-size: 2rem !important;
    }
    
    .jet-contact-form input,
    .jet-contact-form textarea,
    .jet-contact-form select {
        font-size: 14px !important;
    }
}

/* Loading State */
.jet-form.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

.jet-form.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid var(--wp--preset--color--primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}


/* ========================================
   CSS PÁGINA SOBRE NÓS
   ======================================== */

/* Hero Section */
.wp-block-group.alignfull.has-foreground-background-color {
    background: linear-gradient(135deg, var(--wp--preset--color--foreground) 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
}

.wp-block-group.alignfull.has-foreground-background-color::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 115, 170, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.wp-block-group.alignfull.has-foreground-background-color h1 {
    position: relative;
    z-index: 1;
    font-weight: 700;
    letter-spacing: -1px;
}

/* Cards de Números */
.wp-block-column.has-base-background-color {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.wp-block-column.has-base-background-color:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Números Grandes */
.has-xxx-large-font-size {
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--wp--preset--color--primary) 0%, #005a87 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Cards Missão/Visão/Valores */
.wp-block-column[style*="border-top-color"] {
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.wp-block-column[style*="border-top-color"]:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border-top-width: 6px !important;
}

/* Cards de Benefícios */
.wp-block-group.has-base-background-color {
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    height: 100%;
}

.wp-block-group.has-base-background-color:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.wp-block-group.has-base-background-color h4 {
    color: var(--wp--preset--color--primary);
    font-weight: 700;
}

/* CTA Section */
.wp-block-group.has-contrast-background-color {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    position: relative;
    overflow: hidden;
}

.wp-block-group.has-contrast-background-color::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotateBg 20s linear infinite;
}

.wp-block-group.has-contrast-background-color > * {
    position: relative;
    z-index: 1;
}

/* Botões */
.wp-block-button__link {
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.wp-block-button__link:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25) !important;
}

/* Imagens */
.wp-block-image img {
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.wp-block-image:hover img {
    transform: scale(1.02);
}

/* Animações de Entrada */
.wp-block-columns:nth-of-type(2) {
    animation-delay: 0.1s;
}

.wp-block-columns:nth-of-type(3) {
    animation-delay: 0.2s;
}

/* Responsividade */
@media screen and (max-width: 781px) {
    .wp-block-columns {
        flex-direction: column !important;
    }
    
    .wp-block-column {
        flex-basis: 100% !important;
        margin-bottom: 20px !important;
    }
    
    .has-xxx-large-font-size {
        font-size: 3rem !important;
    }
}

@media screen and (max-width: 600px) {
    .wp-block-group.alignfull {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .wp-block-heading.has-xx-large-font-size {
        font-size: 2rem !important;
    }
    
    .wp-block-heading.has-x-large-font-size {
        font-size: 1.75rem !important;
    }
}

/* Acessibilidade */
.wp-block-button__link:focus-visible {
    outline: 3px solid var(--wp--preset--color--primary) !important;
    outline-offset: 4px !important;
}
