* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 222, 89, 0.16), transparent 18%),
        radial-gradient(circle at bottom right, rgba(74, 222, 128, 0.14), transparent 22%),
        linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
    color: #1f2937;
}

/* CONTAINER GERAL */
.contato-wrapper {
    width: min(1200px, 92%);
    margin: 110px auto 80px;
}

/* TOPO */
.contato-topo {
    text-align: center;
    margin-bottom: 32px;
}

.secao-mini {
    display: inline-block;
    margin-bottom: 10px;
    color: #2563eb;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.contato-topo h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    color: #0f172a;
    margin-bottom: 12px;
}

.contato-topo p {
    max-width: 700px;
    margin: 0 auto;
    color: #475569;
    line-height: 1.8;
    font-size: 1.02rem;
}

/* ALERTA DE SUCESSO */
.mensagem-sucesso {
    width: 100%;
    margin-bottom: 28px;
    padding: 16px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, #dcfce7, #f0fdf4);
    border: 1px solid #86efac;
    color: #166534;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.10);
}

/* GRID PRINCIPAL */
.contato-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: stretch; /* mantém alinhado */
}

/* CARDS */
.contato-form-card,
.contato-info-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.7);

    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ALINHAMENTO INTERNO DO MAPA */
.contato-info-card {
    justify-content: space-between;
}

/* TÍTULOS */
.contato-form-card h2,
.contato-info-card h2 {
    font-size: 1.8rem;
    color: #0f172a;
    margin-bottom: 10px;
}

.info-topo p {
    color: #475569;
    line-height: 1.75;
    margin-bottom: 22px;
}

/* FORM */
form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-weight: 700;
    color: #334155;
    font-size: 0.96rem;
}

/* INPUTS */
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    background: #f8fbff;
    font-size: 1rem;
    color: #1f2937;
    transition: all 0.25s ease;
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: #94a3b8;
}

input:focus,
textarea:focus {
    border-color: #60a5fa;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

/* TEXTAREA */
textarea {
    resize: vertical;
    min-height: 150px;
}

/* BOTÃO */
.btn-submit {
    margin-top: 8px;
    border: none;
    border-radius: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #0f3c88, #2563eb);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.28);
}

/* MAPA AJUSTADO */
.map-container {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 320px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.10);
    background: #e2e8f0;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

/* RESPONSIVO */
@media (max-width: 900px) {
    .contato-grid {
        grid-template-columns: 1fr;
    }

    .map-container {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .contato-wrapper {
        width: 94%;
        margin: 110px auto 60px;
    }

    .contato-form-card,
    .contato-info-card {
        padding: 22px;
    }

    .contato-topo h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .btn-submit {
        width: 100%;
    }

    .map-container {
        min-height: 260px;
    }
}