body {
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center; 
    justify-content: center;
}

.templatemo-bg-image-2 {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/zoologico.jpg') no-repeat center center fixed;
    background-size: cover;
}

.btn-home {
    position: absolute;
    top: 30px;
    left: 30px;
    color: #fff;
    background-color: rgba(67, 105, 0, 0.8);
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    z-index: 100;
}

.btn-home:hover {
    background-color: #675741;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.main-contact-container {
    max-width: 1000px;
    margin-top: 50px;
    margin-bottom: 50px;
    width: 100%;
}

.bg-white-box {
    background-color: #ffffff;
    border-radius: 15px;
    overflow: hidden; 
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.contact-title {
    color: #436900;
    font-weight: 700;
}

.form-group label {
    font-weight: 600;
    color: #4b3b2b;
}

.input-group-text {
    background-color: #436900;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px; 
    border-radius: 5px 0 0 5px; 
}

.form-control {
    height: 45px; 
    border-radius: 0 5px 5px 0; 
}

textarea.form-control {
    height: auto;
}

.form-control:focus {
    border-color: #436900;
    box-shadow: 0 0 5px rgba(67, 105, 0, 0.5);
}

.custom-btn {
    background-color: #436900;
    border: none;
    padding: 12px;
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

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

.map-container {
    min-height: 500px; 
}

/* Responsividade para Tablets */
@media (max-width: 991px) {
    .btn-home {
        top: 15px;
        left: 15px;
        font-size: 0.9em;
    }
    .map-container {
        min-height: 350px;
    }
}

/* Responsividade para Celulares */
@media (max-width: 767px) {
    body {
        /* Muda de flex para block para o formulário não ficar cortado em ecrãs pequenos */
        display: block; 
        padding: 20px 15px; 
    }

    .btn-home {
        /* Deixa de flutuar e passa a ocupar o espaço normal para não sobrepor o formulário */
        position: relative; 
        top: 0;
        left: 0;
        display: inline-block;
        margin-bottom: 20px;
        width: 100%;
        text-align: center;
    }

    .main-contact-container {
        margin-top: 0;
        margin-bottom: 20px;
    }

    .bg-white-box {
        border-radius: 10px;
    }

    .contact-title {
        font-size: 24px;
    }

    .custom-btn {
        font-size: 1em;
        padding: 15px;
    }

    .map-container {
        min-height: 250px; /* Reduz a altura do mapa no telemóvel para não ter de fazer muito scroll */
    }
    
    .map-container iframe {
        min-height: 250px !important;
    }
}