﻿html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}


.contact-header {
    color: #2e7d32;
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    margin-top: 100px;
    margin-bottom: 10px;
    font-family: 'Cairo', sans-serif;
}

.contact-desc {
    color: #2e7d32;
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Cairo', sans-serif;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    margin-bottom: 40px;
}

.contact-info-box {
    background: #fff;
    border-radius: 24px;
    padding: 32px 24px 0 24px;
    width: 376px;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Cairo', sans-serif;
}

    .contact-info-box h4 {
        color: #25652C;
        font-size: 1.1rem;
        font-weight: 700;
        margin-bottom: 32px;
    }

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
    flex-direction: column;
}

.contact-info-icon {
    background: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 2.2rem;
    color: #ffa726;
    border: 2px solid #ffa726;
}

.contact-info-label {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #0C2710;
    font-weight: 700;
}

.contact-info-value {
    color: #707070;
    font-size: 1rem;
    margin-bottom: 0;
}

.contact-illustration {
    width: 90%;
    margin: 0 auto 24px auto;
    display: block;
}

.contact-form-box {
    background: #fff;
    border-radius: 24px;
    padding: 4%;
    padding-bottom: 0;
    flex: 1 1 400px;
    min-width: 350px;
    max-width: 908px;
    width: 908px;
    min-height: 631px;
    font-family: 'Cairo', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form {
    border-radius: 16px;
    font-size: 1rem;
    margin-bottom: 18px;
    font-family: 'Cairo', sans-serif;
}

.form-control {
    padding: 13px 37px 13px;
    border-radius: 16px;
    border: 1px solid #A8A8A8;
}

    .form-control::placeholder {
        color: #8C8C8C;
        font-weight: 500;
    }

.contact-form textarea {
    border-radius: 16px;
    border: 2px solid #e0e0e0;
    font-size: 1.1rem;
    margin-bottom: 18px;
    height: 282px;
    padding: 13px 37px;
}

.contact-form .form-label {
    color: #2e7d32;
    font-weight: bold;
    margin-bottom: 6px;
    font-size: 1rem;
}

.contact-form .btn-primary {
    float: left;
    background: #F99D27;
    border: none;
    border-radius: 16px;
    font-size: 1.4rem;
    font-weight: bold;
    color: #fff;
    width: 177px;
    height: 65px;
    padding: 10px 59px 10px 60px;
    margin-top: 8px;
    margin-bottom: 0;
    transition: background 0.2s;
}

    .contact-form .btn-primary:hover {
        background: #fb8c00;
    }

.contact-success {
    color: #2e7d32;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 1400px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-info-box, .contact-form-box {
        width: 100%;
        min-width: unset;
        max-width: unset;
        min-height: unset; /* Remove fixed min-height */
        padding: 2% 2% 0 2%;
    }

    .form-control, .contact-form textarea {
        padding: 10px 16px;
        font-size: 1rem;
        height: auto; /* Let textarea grow naturally */
    }
}
