/* Wrapper for the entire contact page */
.contact-wrapper {
    font-weight: 400;
    max-width: 1226px;
    max-height: 750px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    gap: 64px;
    margin-top: 35px;
    margin-bottom: 35px;
}

/* Adjust the contact-container */
.contact-container {
    width: 600px;
    margin-top: 0;
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
}

.contact-container p a {
    color: #B17C31;
    font-weight: 700;
    font-size: 16px;
    text-decoration: underline;
}

.contact-container p a:hover,
.contact-container p a:active,
.contact-container p a:focus {
    font-size: 16px;
    font-weight: 700;
    color: #69430f;
    text-decoration: underline;
}

/* Inner content with two columns */
.contact-content {
    display: flex;
    gap: 64px;
}

/* Left column (form) */
.contact-form-col {
    width: 600px;
    height: 750px;
    padding: 64px 64px;
    gap: 32px;
    box-sizing: content-box;
}

/* Right column (image) */
.contact-image-col {
    width: 360px;
    height: 360.58px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 370px;
    padding-left: 0;
}

.contact-header {
    font-size: 20px;
    font-weight: 700;
    color: #191919;
    margin-top: 0px !important;
    margin-bottom: 10px;
}

.contact-subheader {
    font-size: 16px;
    font-weight: 450;
    color: #404446;
    margin-bottom: 32px;
}

/* Side-by-side layout for Name and Email */
.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

.input-label {
    display: block;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: #72777a;
    margin-bottom: 8px;
}

.custom-input {
    width: 100%;
    height: 48px;
    border-radius: 16px;
    border: none;
    background-color: #f2f4f5;
    padding: 10px 16px;
    font-size: 16px;
    box-shadow: none;
    outline: none;
}

.select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.select-wrapper::after {
    content: "";
    position: relative;
    inset-inline-start: -25px;
    top: 12px;
    transform: translateY(-50%);
    pointer-events: none;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #72777a; /* Arrow color */
}

.custom-select {
    font-size: 18px;
    line-height: 24px;
    font-weight: 400;
    color: #000000;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.custom-textarea {
    width: 100%;
    border-radius: 16px;
    border: none;
    background-color: #f2f4f5;
    padding: 16px;
    font-size: 16px;
    box-shadow: none;
    outline: none;
    resize: vertical;
    min-height: 100px;
    max-height: 140px;
}

.custom-input.form-control,
.custom-select.form-control {
    border: none !important;
    box-shadow: none !important;
}

.btn-contact {
    background-color: #fce295;
    color: #191919;
    border: none;
    font-weight: bold;
    font-size: 18px;
    height: 48px;
    border-radius: 16px;
    transition: background-color 0.3s ease;
    width: 100%;
}

.btn-contact:hover {
    background-color: #fddc7b;
}

/* Responsive adjustments for mobile screens (max-width: 767px) */
@media (max-width: 767px) {
    .contact-wrapper {
        max-width: 397px;
        max-height: 2000px;
        border-radius: 8px;
        padding: 16px 8px;
        margin: 16px auto;
        gap: 32px;
    }

    .contact-content {
        flex-direction: column;
        gap: 32px;
    }

    .contact-form-col {
        width: 100%;
        height: auto;
        padding: 0;
        order: 1;
    }

    .contact-image-col {
        width: 100%;
        height: auto;
        padding-top: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        order: 0;
        padding-left: 0;
    }

    .contact-graphic {
        width: 247.84px;
        height: 205.91px;
    }

    .contact-container {
        max-width: 100%;
        margin-top: 0;
    }

    .form-row {
        display: block;
        gap: 16px;
    }

    .custom-input,
    .custom-select,
    .custom-textarea,
    .btn-contact {
        width: 100%;
        max-width: 100%; /* Constrain the width to fit mobile screens better */
        margin: 0 auto; /* Center the elements */
    }

    .custom-select {
        font-size: 16px;
        line-height: 24px;
        font-weight: 400;
        color: #000000;
        max-width: 100%;
    }

    .custom-select option {
        width: 70%;
    }

    .contact-header {
        font-size: 20px;
    }

    .contact-subheader {
        font-size: 16px;
    }
}
