/* ===========================================
   PLUGIN MÁXIMA FORMULÁRIO DE CONTATO
   Todas as classes são prefixadas com mfc-
   para evitar conflitos com temas
=========================================== */

/* Importação das fontes Nexa */
@font-face {
    font-family: 'Nexa XBold';
    src: url('../fonts/Nexa-XBold.woff2') format('woff2'),
        url('../fonts/Nexa-XBold.woff') format('woff');
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nexa Black';
    src: url('../fonts/NexaBlack.woff2') format('woff2'),
        url('../fonts/NexaBlack.woff') format('woff');
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nexa Regular';
    src: url('../fonts/Nexa-Regular.woff2') format('woff2'),
        url('../fonts/Nexa-Regular.woff') format('woff');
    font-style: normal;
    font-display: swap;
}

/* Variáveis de tipografia baseadas na tabela SEO */
:root {
    /* TYPOGRAPHY VARIABLES BASED ON SEO TABLE */
    --mfc-h1-desktop: 2.5rem;
    --mfc-h1-mobile: 2rem;
    --mfc-h2-desktop: 2rem;
    --mfc-h2-mobile: 1.6rem;
    --mfc-h3-desktop: 1.6rem;
    --mfc-h3-mobile: 1.3rem;
    --mfc-subtitle-desktop: 1.125rem;
    --mfc-subtitle-mobile: 1rem;
    --mfc-paragraph-desktop: 1rem;
    --mfc-paragraph-mobile: 0.9rem;

    /* Line heights according to SEO table */
    --mfc-line-height-h1: 1.2;
    --mfc-line-height-h2: 1.3;
    --mfc-line-height-h3: 1.3;
    --mfc-line-height-subtitle: 1.4;
    --mfc-line-height-paragraph: 1.6;

    /* Cores do tema Máxima */
    --mfc-color-primary: #D8CFAA;
    --mfc-color-dark: #3c3c3c;
    --mfc-color-gray: #666;
    --mfc-color-light-gray: #e0e0e0;
    --mfc-color-white: #ffffff;
    --mfc-color-error: #dc3545;
    --mfc-color-success: #4CAF50;
}

/* Container principal */
.mfc-contact-form-container {
    width: 100%;
    height: 99vh;
    font-family: 'Nexa Regular', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--mfc-color-white);
}

/* Seção de contato */
.mfc-contact-section {
    position: relative;
    background-color: #3d3e3e;
    /* Clip-path com o lado direito subindo */
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 25%), 48% calc(100% - 25%), 38% calc(100% - 7%), 0 calc(100% - 7%));
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 150px 0 150px 0;
    z-index: 0;
    overflow: visible;
    padding-bottom: 270px !important;
}

/* Container interno ajustado */
.mfc-contact-section .container {
    position: relative;
    z-index: 1;
}

/* Ajuste para garantir que o conteúdo fique dentro do clip */
.mfc-contact-section .row {
    position: relative;
    z-index: 1;
}

/* Card de Informações */
.mfc-info-card {
    background: #2c2c2c;
    border-radius: 24px;
    padding: 50px 40px;
    color: var(--mfc-color-white);
    height: 100%;
}

.mfc-info-title {
    font-family: 'Nexa Black', 'Segoe UI', Tahoma, sans-serif;
    font-size: var(--mfc-h1-desktop);
    line-height: var(--mfc-line-height-h1);
    font-weight: 800;
    color: var(--mfc-color-primary);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.mfc-info-subtitle {
    font-family: 'Nexa Regular', 'Segoe UI', Tahoma, sans-serif;
    font-size: var(--mfc-paragraph-desktop);
    line-height: var(--mfc-line-height-paragraph);
    color: var(--mfc-color-white);
    margin-bottom: 40px;
}

/* Itens de contato */
.mfc-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.mfc-contact-item:hover {
    transform: translateX(10px);
}

.mfc-contact-icon {
    background: var(--mfc-color-primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.mfc-contact-icon i {
    color: #3c3c3c;
    font-size: 1.3rem;
}

.mfc-contact-text {
    font-family: 'Nexa Regular', 'Segoe UI', Tahoma, sans-serif;
    font-size: var(--mfc-paragraph-desktop);
    line-height: var(--mfc-line-height-paragraph);
    color: var(--mfc-color-white);
}

/* LINKS DE CONTATO (para email, instagram e whatsapp) */
.mfc-contact-text a.mfc-contact-link {
    text-decoration: none;
    color: var(--mfc-color-white);

}


/* Container do formulário */
.mfc-form-container {
    background: transparent;
    padding: 0;
}

/* Grupos do formulário */
.mfc-form-group {
    margin-bottom: 25px;
    position: relative;
}

/* Campos do formulário */
.mfc-form-control {
    background: #2C2C2C !important;
    border: 2px solid var(--mfc-color-primary) !important;
    border-radius: 50px !important;
    padding: 15px 25px !important;
    font-family: 'Nexa Regular', 'Segoe UI', Tahoma, sans-serif;
    font-size: var(--mfc-paragraph-desktop) !important;
    line-height: var(--mfc-line-height-paragraph);
    color: var(--mfc-color-white) !important;
    transition: all 0.3s ease !important;
    width: 100%;
    box-sizing: border-box;
}

.mfc-form-control:focus {
    border-color: var(--mfc-color-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(244, 217, 166, 0.25) !important;
    outline: none !important;
}

.mfc-form-control::placeholder {
    color: #999 !important;
    font-family: 'Nexa Regular', 'Segoe UI', Tahoma, sans-serif;
    font-size: 0.9rem !important;
    letter-spacing: 0.5px !important;
}

textarea.mfc-form-control {
    min-height: 150px !important;
    resize: vertical !important;
    border-radius: 25px !important;
    font-family: 'Nexa Regular', 'Segoe UI', Tahoma, sans-serif;
    line-height: var(--mfc-line-height-paragraph);
}

/* Botão de envio */
.mfc-submit-btn {
    font-family: 'Nexa XBold', 'Segoe UI', Tahoma, sans-serif;
    background: var(--mfc-color-primary) !important;
    color: var(--mfc-color-dark) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 15px 50px !important;
    font-size: var(--mfc-paragraph-desktop) !important;
    line-height: var(--mfc-line-height-paragraph);
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}

.mfc-submit-btn:hover {
    transform: translateY(-2px) !important;
}

.mfc-submit-btn:active {
    transform: translateY(0) !important;
}

.mfc-submit-btn:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
}

/* Loading animation */
.mfc-submit-btn .mfc-loading {
    border: 2px solid rgba(51, 51, 51, 0.3);
    border-top: 2px solid var(--mfc-color-dark);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: mfc-spin 1s linear infinite;
    display: none;
    margin-left: 10px;
}

.mfc-submit-btn .mfc-loading.active {
    display: inline-block;
}

@keyframes mfc-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Validação e mensagens de erro */
.mfc-form-control.mfc-is-invalid {
    border-color: var(--mfc-color-error) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    padding-right: calc(1.5em + 0.75rem);
}

.mfc-form-control.mfc-is-invalid:focus {
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.mfc-invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.5rem;
    font-family: 'Nexa Regular', 'Segoe UI', Tahoma, sans-serif;
    font-size: 0.875em;
    color: var(--mfc-color-error);
    text-align: left;
    padding-left: 25px;
}

.mfc-form-control.mfc-is-invalid~.mfc-invalid-feedback {
    display: block;
}

/* Notificações estilizadas */
.mfc-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    background: var(--mfc-color-success);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.3s ease-out;
    display: flex;
    align-items: center;
    max-width: 350px;
    font-family: 'Nexa Regular', 'Segoe UI', Tahoma, sans-serif;
    font-size: var(--mfc-paragraph-desktop);
    line-height: var(--mfc-line-height-paragraph);
}

.mfc-alert.show {
    transform: translateX(0);
}

.mfc-alert.mfc-error {
    background: var(--mfc-color-error);
}

.mfc-alert svg {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    fill: white;
}

/* Mensagem de sucesso inline */
.mfc-success-message {
    display: none;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-family: 'Nexa Regular', 'Segoe UI', Tahoma, sans-serif;
    font-size: var(--mfc-paragraph-desktop);
    line-height: var(--mfc-line-height-paragraph);
}

.mfc-success-message.show {
    display: block;
}

.mfc-success-message i {
    margin-right: 8px;
    color: #155724;
}

/* Animações do checkmark */
.mfc-checkmark {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #fff;
    stroke-miterlimit: 10;
    margin-right: 10px;
    animation: mfc-fill .4s ease-in-out .4s forwards, mfc-scale .3s ease-in-out .9s both;
}

.mfc-checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #fff;
    fill: none;
    animation: mfc-stroke .6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.mfc-checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: mfc-stroke .3s cubic-bezier(0.65, 0, 0.45, 1) .8s forwards;
}

@keyframes mfc-stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes mfc-scale {

    0%,
    100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes mfc-fill {
    100% {
        box-shadow: inset 0 0 0 100px rgba(76, 175, 80, 0);
    }
}

/* ===========================================
   RESPONSIVIDADE
   Aplicando variáveis de tamanho por dispositivo
=========================================== */

@media screen and (max-width: 1280px) {
    .mfc-contact-section {
        padding: 130px 0 220px 0;
    }
}

/* 1100px */
@media screen and (max-width: 1100px) {
    .mfc-contact-section {
        padding: 110px 0 200px 0;
    }
}

/* 992px - Tablet Landscape - REMOVE CLIP-PATH */
@media screen and (max-width: 992px) {

     .mfc-contact-form-container {
        height: auto !important; /* Remove altura fixa */
        min-height: auto;
    }
     .mfc-contact-section {
        position: relative !important; /* Remove posicionamento fixo */
        min-height: auto;
        padding: 50px 0 120px 0 !important; /* Padding menor e consistente */
         clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15%), 55% calc(100% - 15%), 45% calc(100% - 10%), 0 calc(100% - 10%));
        overflow: visible !important;
        z-index: 1;
    }
       
    
    /* Container do formulário */
    .mfc-form-container {
        padding: 0 15px !important;
        position: relative;
        z-index: 1;
        margin-bottom: 8rem;
    }
    
    /* Card de informações */
    .mfc-info-card {
        margin-bottom: 2rem;
        border-radius: 15px;
        padding: 30px 25px;
    }
    
    /* Garantir que o formulário não invada a próxima seção */
    .mfc-contact-form {
        position: relative;
        z-index: 1;
    }

    .mfc-info-title {
        font-size: 26px !important;
    }

    .mfc-info-subtitle,
    .mfc-contact-text,
    .mfc-form-control,
    .mfc-submit-btn,
    .mfc-alert {
        font-size: var(--mfc-paragraph-mobile);
        line-height: var(--mfc-line-height-paragraph);
    }
}

/* 884px - Tablets - Clip-path ainda mais suave */
@media screen and (max-width: 884px) {
    .mfc-contact-section {
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12%), 58% calc(100% - 12%), 48% calc(100% - 8%), 0 calc(100% - 8%));
        padding: 60px 0 140px 0;
        margin-bottom: 1.5rem;
        
    }

     .mfc-info-card {
        padding: 35px 25px;
        margin-bottom: 25px;
    }

    .mfc-info-title {
        font-size: var(--mfc-h1-mobile);
        line-height: var(--mfc-line-height-h1);
        text-align: center;
    }

    .mfc-info-subtitle {
        text-align: center;
    }

    /* ITENS DO CARD - CENTRALIZADOS */
    .mfc-contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 25px;
    }

    .mfc-contact-icon {
        margin-right: 0;
        margin-bottom: 10px;
        width: 40px;
        height: 40px;
    }

    .mfc-contact-text {
        text-align: center;
        font-size: var(--mfc-paragraph-mobile);
        line-height: var(--mfc-line-height-paragraph);
    }

    .mfc-contact-text a.mfc-contact-link {
        text-align: center;
    }
}

/* 768px - Tablet Portrait - Clip-path reduzido */
@media screen and (max-width: 768px) {
    .mfc-contact-section {
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10%), 60% calc(100% - 10%), 50% calc(100% - 7%), 0 calc(100% - 7%));
        padding: 50px 0 100px 0;
        
    }

    .mfc-info-card {
        padding: 35px 25px;
        margin-bottom: 25px;
    }

    .mfc-info-title {
        font-size: var(--mfc-h1-mobile);
        line-height: var(--mfc-line-height-h1);
        text-align: center;
    }

    .mfc-info-subtitle {
        text-align: center;
    }

    /* ITENS DO CARD - CENTRALIZADOS */
    .mfc-contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 25px;
    }

    .mfc-contact-icon {
        margin-right: 0;
        margin-bottom: 10px;
        width: 40px;
        height: 40px;
    }

    .mfc-contact-text {
        text-align: center;
        font-size: var(--mfc-paragraph-mobile);
        line-height: var(--mfc-line-height-paragraph);
    }

    .mfc-contact-text a.mfc-contact-link {
        text-align: center;
    }
}

/* 480px - Mobile Large - Clip-path mínimo */
@media screen and (max-width: 480px) {
    .mfc-contact-section {
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8%), 62% calc(100% - 8%), 52% calc(100% - 5%), 0 calc(100% - 5%));
        padding: 40px 0 80px 0;
    }

    .mfc-info-card,
    .mfc-form-container {
        padding: 30px 20px;
    }

    

    /* FORMULÁRIO */
    .mfc-submit-btn {
        width: 100%;
        padding: 15px 30px !important;
    }

    .mfc-form-control {
        padding: 12px 20px !important;
        font-size: var(--mfc-paragraph-mobile) !important;
        text-align: center;
    }

    .mfc-form-control::placeholder {
        text-align: center;
    }

    textarea.mfc-form-control {
        text-align: left;
    }

    .mfc-invalid-feedback {
        text-align: center;
        padding-left: 0;
    }
}

/* 375px - Mobile Small - Clip-path bem discreto */
@media screen and (max-width: 375px) {
    .mfc-contact-section {
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6%), 65% calc(100% - 6%), 55% calc(100% - 4%), 0 calc(100% - 4%));
        padding: 35px 0 70px 0;
    }

    .mfc-info-card,
    .mfc-form-container {
        padding: 25px 15px;
    }

    .mfc-info-title {
        font-size: 1.75rem;
        line-height: var(--mfc-line-height-h1);
        text-align: center;
    }

    .mfc-contact-icon {
        width: 35px;
        height: 35px;
    }

    .mfc-contact-icon i {
        font-size: 1.1rem;
    }

    .mfc-form-control {
        padding: 10px 18px !important;
        font-size: 0.85rem !important;
    }

    .mfc-submit-btn {
        padding: 12px 25px !important;
        font-size: 0.85rem !important;
    }
}