/**
 * Contact Form Section Styles
 */

.contact-form-section {
    background-color: #2B2B2B;
    padding: 74px 0 132px;
}

.contact-form-section__container {
    max-width: 1680px;
    padding: 0 20px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 90px;
}

/* Image */
.contact-form-section__image-wrapper {
    flex: 0 0 792px;
    max-width: 792px;
}

.contact-form-section__image {
    width: 100%;
    height: auto;
    border-radius: 50px;
    display: block;
    filter: grayscale(100%);
}

.contact-form-section__image-placeholder {
    width: 100%;
    height: 400px;
    background-color: #3a3a3a;
    border-radius: 50px;
}

/* Form Wrapper */
.contact-form-section__form-wrapper {
    flex: 1;
}

.contact-form-section__title {
    font-family: var(--second-family), sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 35px 0;
}

/* Form Styles */
.contact-form-section__form--default {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-form-section__row {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.contact-form-section__field {
    position: relative;
    margin-bottom: 24px;
}

.contact-form-section__field--half {
    flex: 1;
    margin-bottom: 0;
}

.contact-form-section__input,
.contact-form-section__select {
    width: 100%;
    height: 50px;
    padding: 15px 50px 15px 26px;
    border: 1px solid rgba(221, 232, 221, 0.5);
    border-radius: 50px;
    background: transparent;
    color: #DDE8DD;
    font-family: var(--font-family), sans-serif;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.contact-form-section__input::placeholder,
.contact-form-section__textarea::placeholder {
    color: #DDE8DD;
}

.contact-form-section__input:focus,
.contact-form-section__select:focus,
.contact-form-section__textarea:focus {
    border-color: #DDE8DD;
}

.contact-form-section__select {
    cursor: pointer;
}

.contact-form-section__select option {
    background-color: #2B2B2B;
    color: #DDE8DD;
}

.contact-form-section__textarea {
    width: 100%;
    min-height: 154px;
    padding: 17px 50px 18px 26px;
    border: 1px solid rgba(221, 232, 221, 0.5);
    border-radius: 24px;
    background: transparent;
    color: #DDE8DD;
    font-family: var(--font-family), sans-serif;
    font-size: 16px;
    outline: none;
    resize: vertical;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

/* Icons */
.contact-form-section__icon {
    position: absolute;
    right: 26px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.contact-form-section__icon--textarea {
    top: 25px;
    transform: none;
}

.contact-form-section__icon--select {
    right: 26px;
}

/* Submit Button */
.contact-form-section__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 17px 25px;
    border: 1px solid #FFFFFF;
    border-radius: 50px;
    background: transparent;
    color: #FFFFFF;
    font-family: var(--font-family), sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
    margin-top: 24px;
}

.contact-form-section__submit:hover {
    background-color: #655442;
    border-color: #655442;
}

/* Ninja Forms / CF7 Override Styles */
.contact-form-section__form .nf-form-content,
.contact-form-section__form .wpcf7-form {
    display: flex;
    flex-direction: column;
}

.contact-form-section__form .nf-field-container,
.contact-form-section__form .wpcf7-form-control-wrap {
    margin-bottom: 24px;
}

.contact-form-section__form input[type="text"],
.contact-form-section__form input[type="email"],
.contact-form-section__form input[type="tel"],
.contact-form-section__form select {
    width: 100%;
    height: 50px;
    padding: 15px 26px;
    border: 1px solid rgba(221, 232, 221, 0.5);
    border-radius: 50px;
    background: transparent;
    color: #DDE8DD;
    font-family: var(--font-family), sans-serif;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
}

.contact-form-section__form textarea {
    width: 100%;
    min-height: 154px;
    padding: 17px 26px;
    border: 1px solid rgba(221, 232, 221, 0.5);
    border-radius: 24px;
    background: transparent;
    color: #DDE8DD;
    font-family: var(--font-family), sans-serif;
    font-size: 16px;
    outline: none;
    resize: vertical;
    box-sizing: border-box;
}

.contact-form-section__form input::placeholder,
.contact-form-section__form textarea::placeholder {
    color: #DDE8DD;
}

.contact-form-section__form input[type="submit"],
.contact-form-section__form button[type="submit"],
.contact-form-section__form .nf-form-content input[type="button"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 17px 25px;
    border: 1px solid #FFFFFF;
    border-radius: 50px;
    background: transparent;
    color: #FFFFFF;
    font-family: var(--font-family), sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
}

.contact-form-section__form input[type="submit"]:hover,
.contact-form-section__form button[type="submit"]:hover,
.contact-form-section__form .nf-form-content input[type="button"]:hover {
    background-color: #655442;
    border-color: #655442;
}

/* Preview in Admin */
.contact-form-section-preview {
    padding: 40px;
    background: #f5f5f5;
    text-align: center;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 1600px) {
    .contact-form-section__container {
        padding: 0 80px;
        gap: 50px;
    }

    .contact-form-section__image-wrapper {
        flex: 0 0 588px;
        max-width: 588px;
    }

    .contact-form-section__title {
        font-size: 40px;
    }
}

@media (max-width: 1200px) {
    .contact-form-section {
        padding: 60px 0 100px;
    }

    .contact-form-section__container {
        padding: 0 40px;
        flex-direction: column;
        gap: 50px;
    }

    .contact-form-section__image-wrapper {
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    .contact-form-section__image {
        max-height: 400px;
        object-fit: cover;
        border-radius: 30px;
    }

    .contact-form-section__title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .contact-form-section {
        padding: 50px 0 80px;
    }

    .contact-form-section__form-wrapper {
        flex: 1;
        width: 100%;
    }

    .contact-form-section__container {
        padding: 0 20px;
        gap: 40px;
    }

    .contact-form-section__image {
        border-radius: 24px;
    }

    .contact-form-section__title {
        font-size: 32px;
        margin-bottom: 25px;
    }

    .contact-form-section__row {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0;
    }

    .contact-form-section__field--half {
        margin-bottom: 24px;
    }
}

@media (max-width: 550px) {
    .contact-form-section {
        padding: 40px 0 60px;
    }

    .contact-form-section__container {
        padding: 0 24px;
    }

    .contact-form-section__image {
        border-radius: 20px;
    }

    .contact-form-section__image-wrapper{
        display: none;
    }

    .contact-form-section__form-wrapper{
        width: 100%;
    }

    .contact-form-section__title {
        font-size: 28px;
    }

    .contact-form-section__input,
    .contact-form-section__select {
        height: 46px;
        padding: 13px 45px 13px 20px;
        font-size: 14px;
    }

    .contact-form-section__textarea {
        min-height: 130px;
        padding: 15px 20px;
        font-size: 14px;
    }

    .contact-form-section__submit {
        width: 100%;
        padding: 15px 20px;
    }
}
