/* ===================================
   ESTILOS GLOBAIS
   =================================== */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    color: #fff;
}

/* ===================================
   PÁGINA INICIAL (index.html)
   =================================== */

body.index-page {
    background-color: #323b43;
}

/* Container Principal */
.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 500px;
}

/* Espaço para o Logo Centralizado */
.logo-container {
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    border-radius: 4px;
}

.logo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Conteúdo Centralizado */
.content {
    text-align: center;
    width: 100%;
    margin-bottom: 30px;
}

h1 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 28px;
}

p {
    color: #b0b8c1;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 16px;
}

/* Formulário de Contato */
.contact-form {
    width: 100%;
    background-color: #3d4652;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #fff;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #4a5261;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s;
    background-color: #2a3139;
    color: #fff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #7a8290;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #ee4f4f;
    background-color: #323b43;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background-color: #ee4f4f;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.submit-btn:hover {
    background-color: #d63d3d;
    transform: translateY(-2px);
}

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

.submit-btn:disabled {
    background-color: #666;
    cursor: not-allowed;
    transform: none;
}

/* ===================================
   PÁGINA DE AGRADECIMENTO (obrigado.html)
   =================================== */

body.thank-you-page {
    background-color: #323b43;
    justify-content: center;
}

.thank-you-page .main-container {
    background-color: #3d4652;
    padding: 50px 30px;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    text-align: center;
}

/* Conteúdo de Agradecimento */
.thank-you-content {
    margin-bottom: 40px;
}

.thank-you-content h1 {
    color: #ee4f4f;
    font-size: 32px;
    margin: 0 0 15px 0;
}

.thank-you-content p {
    color: #b0b8c1;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* Ícones de Redes Sociais */
.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2a3139;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid #4a5261;
}

.social-icon:hover {
    background-color: #ee4f4f;
    border-color: #ee4f4f;
    transform: scale(1.1);
}

.social-icon svg {
    width: 24px;
    height: 24px;
    fill: #ee4f4f;
    transition: fill 0.3s ease;
}

.social-icon:hover svg {
    fill: #fff;
}

/* Botão de Voltar */
.back-btn {
    margin-top: 40px;
    padding: 12px 30px;
    background-color: #ee4f4f;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
    display: inline-block;
}

.back-btn:hover {
    background-color: #d63d3d;
    transform: translateY(-2px);
}

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

/* ===================================
   BOTÃO FLUTUANTE DO WHATSAPP
   =================================== */

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s, background-color 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    fill: white;
}

/* ===================================
   RESPONSIVIDADE
   =================================== */

@media (max-width: 480px) {
    body {
        padding: 20px 0;
    }

    .main-container {
        width: 95%;
    }

    .contact-form {
        padding: 20px;
    }

    .thank-you-page .main-container {
        padding: 30px 20px;
    }

    .thank-you-content h1 {
        font-size: 24px;
    }

    .social-links {
        gap: 20px;
    }

    .logo-container {
        width: 120px;
        height: 80px;
    }

    h1 {
        font-size: 24px;
    }

    p {
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    .main-container {
        width: 100%;
        padding: 0 10px;
    }

    .contact-form,
    .thank-you-page .main-container {
        padding: 15px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 14px;
    }

    .submit-btn,
    .back-btn {
        font-size: 14px;
        padding: 10px;
    }

    .logo-container {
        width: 100px;
        height: 60px;
    }
}
