/* =========================================================
   CONTATO
   Wupwui Softwares
========================================================= */

/* SEÇÃO */

.contact-section {
    position: relative;
    padding: 58px 0 64px;
    overflow: hidden;
    background:
        radial-gradient(circle at 22% 58%, rgba(15, 23, 42, .055), transparent 25%),
        radial-gradient(circle at 78% 20%, rgba(242, 183, 40, .075), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
}

.contact-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(145deg, rgba(15, 23, 42, .025) 0 1px, transparent 1px 18px);
    pointer-events: none;
}

.contact-section .container {
    position: relative;
    z-index: 1;
}

/* GRID */

.contact-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 64px;
    align-items: start;
}

/* INFO */

.contact-info {
    position: relative;
    padding: 30px 30px 32px;
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.78), rgba(255,255,255,.42));
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow:
        0 18px 44px rgba(15, 23, 42, .075),
        inset 0 1px 0 rgba(255,255,255,.85);
}

.contact-info::before {
    content: "";
    position: absolute;
    inset: -12%;
    pointer-events: none;
    opacity: .55;
    background:
        radial-gradient(circle at 20% 0%, rgba(242, 183, 40, .10), transparent 34%),
        linear-gradient(
            130deg,
            transparent 35%,
            rgba(242, 183, 40, .055) 44%,
            transparent 53%
        );
}

.contact-info > * {
    position: relative;
    z-index: 1;
}

.contact-info h2 {
    margin: 0 0 24px;
    color: #111827;
    font-size: clamp(26px, 2.6vw, 36px);
    line-height: 1.14;
    letter-spacing: -.7px;
    font-weight: 900;
}

/* LISTA CONTATO - SEM ÍCONES */

.contact-list {
    display: grid;
    gap: 15px;
}

.contact-list p {
    position: relative;
    display: grid;
    grid-template-columns: 96px 1fr;
    align-items: start;
    gap: 12px;
    margin: 0;
    padding: 0 0 0 18px;
    color: #475467;
    font-size: 14px;
    line-height: 1.5;
}

.contact-list p::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-3), var(--gold));
    box-shadow: 0 0 0 4px rgba(242, 183, 40, .12);
}

.contact-list i {
    display: none;
}

.contact-list strong {
    color: #111827;
    font-weight: 900;
}

/* FORM */

.contact-form {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 30px;
    border-radius: 22px;
    background:
        linear-gradient(145deg, #ffffff 0%, #f8f9fb 100%);
    border: 1px solid rgba(15, 23, 42, .09);
    box-shadow:
        0 18px 44px rgba(15, 23, 42, .085),
        inset 0 1px 0 rgba(255,255,255,.85);
}

.contact-form::before {
    content: "";
    position: absolute;
    inset: -18%;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 0%, rgba(242, 183, 40, .14), transparent 34%),

        linear-gradient(
            124deg,
            transparent 20%,
            rgba(255, 207, 72, 0) 28%,
            rgba(255, 207, 72, .11) 29%,
            rgba(255, 207, 72, .028) 30%,
            transparent 35%
        ),

        linear-gradient(
            142deg,
            transparent 54%,
            rgba(242, 183, 40, 0) 62%,
            rgba(242, 183, 40, .09) 63%,
            rgba(242, 183, 40, .024) 64%,
            transparent 69%
        );

    background-repeat: no-repeat;
    background-size:
        100% 100%,
        180% 180%,
        170% 170%;
    background-position:
        0 0,
        -230px 10px,
        -150px 50px;
    transition: opacity .30s ease;
}

.contact-form:hover::before {
    opacity: 1;
    animation: contactGoldLinesFlow 6s linear infinite;
}

.contact-form > * {
    position: relative;
    z-index: 2;
}

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

/* CAMPOS */

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    min-height: 48px;
    margin: 0 0 14px;
    padding: 13px 15px;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, .14);
    background:
        linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
    color: #111827;
    font-size: 14px;
    outline: none;
    transition:
        border-color .22s ease,
        box-shadow .22s ease,
        background .22s ease,
        transform .22s ease;
}

.contact-form textarea {
    min-height: 126px;
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #6b7280;
}

.contact-form select {
    cursor: pointer;
    color: #111827;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: rgba(242, 183, 40, .70);
    background: #fff;
    box-shadow:
        0 0 0 4px rgba(242, 183, 40, .13),
        0 12px 26px rgba(15, 23, 42, .08);
    transform: translateY(-1px);
}

/* BOTÃO */

.contact-form button {
    min-width: 260px;
    min-height: 50px;
    border-radius: 10px;
    border: 0;
    box-shadow:
        0 16px 34px rgba(242, 183, 40, .22),
        inset 0 1px 0 rgba(255,255,255,.32);
}

.contact-form button:hover {
    transform: translateY(-3px);
    box-shadow:
        0 22px 46px rgba(242, 183, 40, .34),
        inset 0 1px 0 rgba(255,255,255,.35);
}

/* ALERTAS */

.alert {
    border-radius: 12px;
    padding: 14px 16px;
    margin: 0 0 20px;
    font-size: 14px;
    font-weight: 800;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ANIMAÇÃO */

@keyframes contactGoldLinesFlow {
    0% {
        background-position:
            0 0,
            -230px 10px,
            -150px 50px;
    }

    50% {
        background-position:
            0 0,
            -40px -8px,
            30px 10px;
    }

    100% {
        background-position:
            0 0,
            170px -22px,
            190px -28px;
    }
}

/* RESPONSIVO */

@media (max-width: 1120px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 760px) {
    .contact-section {
        padding: 48px 0 54px;
    }

    .contact-info,
    .contact-form {
        padding: 24px 20px;
        border-radius: 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-list p {
        grid-template-columns: 82px 1fr;
        font-size: 13px;
    }

    .contact-form button {
        width: 100%;
        min-width: 100%;
    }
}

@media (max-width: 430px) {
    .contact-info,
    .contact-form {
        padding: 22px 18px;
        border-radius: 15px;
    }

    .contact-list {
        gap: 14px;
    }

    .contact-list p {
        grid-template-columns: 1fr;
        gap: 3px;
        padding-left: 16px;
    }

    .contact-list p::before {
        top: 6px;
    }

    .contact-list strong {
        display: block;
    }
}

/* =========================================================
   BOTÃO WHATSAPP - BASE
========================================================= */

.floating-whatsapp {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 999;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.floating-whatsapp,
.floating-whatsapp * {
    box-sizing: border-box;
}

.whatsapp-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.02;
    white-space: nowrap;
}

.whatsapp-text strong,
.whatsapp-text small {
    display: block;
}

/* =========================================================
   BOTÃO WHATSAPP - MODELO 1
   Dourado com tigre
========================================================= */

.floating-whatsapp-gold {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 52px;
    max-width: calc(100vw - 44px);
    padding: 7px 15px 7px 7px;
    border-radius: 999px;
    color: #16120a;
    background: linear-gradient(135deg, #ffd35a 0%, #f2b728 46%, #c9850f 100%);
    border: 1px solid rgba(255, 218, 100, .65);
    box-shadow:
        0 18px 38px rgba(0, 0, 0, .34),
        0 0 0 1px rgba(255, 255, 255, .08),
        0 0 28px rgba(242, 183, 40, .20);
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        filter .25s ease;
}

.floating-whatsapp-gold:hover {
    transform: translateY(-5px) scale(1.025);
    filter: brightness(1.04);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, .42),
        0 0 34px rgba(242, 183, 40, .34);
}

.whatsapp-tiger {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: #111820;
    border: 1px solid rgba(255, 255, 255, .15);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.10),
        0 8px 18px rgba(0,0,0,.25);
}

.whatsapp-tiger img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.whatsapp-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #111820;
    background: rgba(255, 255, 255, .32);
    font-size: 16px;
    font-weight: 900;
}

.floating-whatsapp-gold .whatsapp-text strong {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: -.1px;
}

.floating-whatsapp-gold .whatsapp-text small {
    margin-top: 3px;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .18px;
    opacity: .78;
}

/* =========================================================
   BOTÃO WHATSAPP - MODELO 2
   Escuro premium com borda dourada
========================================================= */

.floating-whatsapp-dark {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 52px;
    max-width: calc(100vw - 44px);
    padding: 7px 15px 7px 7px;
    border-radius: 999px;
    color: #ffffff;
    background:
        radial-gradient(circle at 20% 15%, rgba(255,255,255,.10), transparent 34%),
        linear-gradient(135deg, #18212b 0%, #0f151c 100%);
    border: 1px solid rgba(242, 183, 40, .48);
    box-shadow:
        0 18px 40px rgba(0,0,0,.38),
        inset 0 1px 0 rgba(255,255,255,.07),
        0 0 26px rgba(242,183,40,.12);
    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}

.floating-whatsapp-dark:hover {
    transform: translateY(-5px);
    border-color: rgba(242, 183, 40, .82);
    box-shadow:
        0 25px 52px rgba(0,0,0,.48),
        0 0 34px rgba(242,183,40,.20),
        inset 0 1px 0 rgba(255,255,255,.10);
}

.whatsapp-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background:
        linear-gradient(135deg, #ffd35a, #f2b728 48%, #b9780c);
    padding: 2px;
    box-shadow:
        0 8px 20px rgba(0,0,0,.30),
        0 0 18px rgba(242,183,40,.18);
}

.whatsapp-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: #111820;
}

.floating-whatsapp-dark .whatsapp-text {
    min-width: 54px;
}

.floating-whatsapp-dark .whatsapp-text strong {
    font-size: 13px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -.1px;
}

.floating-whatsapp-dark .whatsapp-text small {
    margin-top: 3px;
    font-size: 9px;
    font-weight: 900;
    color: rgba(242, 183, 40, .92);
    text-transform: uppercase;
    letter-spacing: .18px;
}

/* =========================================================
   BOTÃO WHATSAPP - RESPONSIVO
========================================================= */

@media (max-width: 520px) {
    .floating-whatsapp {
        right: 12px;
        bottom: 12px;
    }

    .floating-whatsapp-gold,
    .floating-whatsapp-dark {
        min-height: 44px;
        max-width: 126px;
        gap: 7px;
        padding: 5px 9px 5px 5px;
        border-radius: 999px;
    }

    .whatsapp-tiger,
    .whatsapp-mark {
        width: 33px;
        height: 33px;
        flex-basis: 33px;
    }

    .whatsapp-icon {
        display: none;
    }

    .floating-whatsapp-gold .whatsapp-text,
    .floating-whatsapp-dark .whatsapp-text {
        min-width: 46px;
        max-width: 62px;
    }

    .floating-whatsapp-gold .whatsapp-text strong,
    .floating-whatsapp-dark .whatsapp-text strong {
        font-size: 10.5px;
        line-height: 1;
    }

    .floating-whatsapp-gold .whatsapp-text small,
    .floating-whatsapp-dark .whatsapp-text small {
        margin-top: 2px;
        font-size: 7.5px;
        line-height: 1;
        letter-spacing: .08px;
    }
}

@media (max-width: 360px) {
    .floating-whatsapp {
        right: 10px;
        bottom: 10px;
    }

    .floating-whatsapp-gold,
    .floating-whatsapp-dark {
        min-height: 40px;
        max-width: 112px;
        gap: 6px;
        padding: 5px 8px 5px 5px;
    }

    .whatsapp-tiger,
    .whatsapp-mark {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .floating-whatsapp-gold .whatsapp-text strong,
    .floating-whatsapp-dark .whatsapp-text strong {
        font-size: 10px;
    }

    .floating-whatsapp-gold .whatsapp-text small,
    .floating-whatsapp-dark .whatsapp-text small {
        font-size: 7px;
    }
}
