.section {
    display: flex;
    min-height: 50vh;
    width: 100%;
    background-color: var(--color-dark);
}

.imageContainer {
    flex: 1;
    position: relative;
    display: none;
}

.smallHeading {
    font-size: var(--small-text-size);
    color: var(--color-paragraph);
    font-family: var(--font-lato);
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.formContainer {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    background-image: url('/images/marble-bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Overlay to darken the marble background slightly if needed */
.formContainer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 500px;
}

.title {
    font-family: var(--font-playfair);
    color: var(--color-paragraph);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 400;
    letter-spacing: 2px;
    /* text-transform: uppercase; */
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.inputGroup {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.label {
    font-family: var(--font-playfair);
    color: var(--color-paragraph);
    font-size: 1.1rem;
}

.input,
.textarea {
    flex: 1;
    background-color: var(--color-input-bg);
    border: none;
    border-radius: 4px;
    padding: 0.8rem 1rem;
    font-family: var(--font-lato);
    font-size: 1rem;
    color: #757575;
    outline: none;
    transition: box-shadow 0.3s ease;
}

.input:focus,
.textarea:focus {
    box-shadow: 0 0 0 2px var(--color-gold);
}

.textarea {
    resize: vertical;
    min-height: 100px;
}

.submitButton {
    background: transparent;
    border: 1px solid #c49c5c;
    color: #d3cab3;
    padding: 0.8rem 2rem;
    font-family: var(--font-lato);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
    margin-top: 1rem;
    border-radius: 4px;
}

.submitButton:hover {
    background-color: #c49c5c;
    color: #F5E6D3;
}

.successMessage {
    color: var(--color-gold);
    text-align: center;
    margin-top: 1rem;
    font-family: var(--font-lato);
}

/* Alert styles */
.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    font-family: var(--font-lato);
    text-align: center;
}

.alertSuccess {
    background-color: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid #28a745;
}

.alertDanger {
    background-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid #dc3545;
}

/* Error text */
.errorText {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
    font-family: var(--font-lato);
}

/* Character count */
.charCount {
    color: var(--color-paragraph);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
    text-align: right;
    font-family: var(--font-lato);
}

/* ReCAPTCHA wrapper */
.recaptchaWrapper {
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    gap: 0.5rem;
    /* margin: 1rem 0; */
}

@media (min-width: 768px) {
    .imageContainer {
        display: block;
    }
}

@media (max-width: 480px) {
    .formContainer {
        padding: 3rem 1rem;
        /* Reduce padding on mobile */
    }

    .title {
        font-size: 2rem;
        /* Smaller title */
        margin-bottom: 2rem;
    }

    /* Fix reCAPTCHA overflow on very small screens */
    .recaptchaWrapper {
        transform: scale(0.85);
        transform-origin: left top;
        width: 100%;
        display: flex;
        justify-content: center;
        /* Center it if possible, or left align */
        margin-bottom: -10px;
        /* Compensate for scale gap */
    }

    /* If centering is preferred */
    .recaptchaWrapper>div {
        margin: 0 auto;
    }
}

@media (max-width: 340px) {
    .formContainer {
        padding: 2rem 0.5rem;
        /* Even less padding for 320px */
    }

    .recaptchaWrapper {
        transform: scale(0.77);
        /* Aggressive scaling for 320px */
    }
}