/* Custom Contact Section with Person Image */

.contacts-section {
    background: #f8f9fa;
    padding: 80px 0 60px 0;
}

.contacts-section .container {
    background: #ffffff;
    max-width: 1100px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin: 0 auto;
}

.contact-person-image {
    position: relative;
    text-align: left;
    background: #ffffff;
    padding: 0;
    min-height: 450px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: hidden;
}

/* Decorative shapes behind person */
.contact-person-image::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: #e83a15;
    border-radius: 50%;
    left: -50px;
    top: 20%;
    z-index: 0;
}

.contact-person-image::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: #00045f;
    border-radius: 50%;
    right: -30px;
    bottom: 10%;
    z-index: 0;
}

.contact-person-image img {
    max-width: 110%;
    height: auto;
    display: block;
    margin: 0;
    margin-left: 20px;
    position: relative;
    z-index: 1;
    transform: translateY(0);
}

.contact-form {
    background: #ffffff;
    padding: 40px;
    border-radius: 0;
    box-shadow: none;
}

.form-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
    line-height: 1.2;
    white-space: nowrap;
}

.form-title .highlight {
    color: #e83a15;
    font-weight: 700;
}

.quote-form {
    width: 100%;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-grid input,
.form-grid select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #d0d0d0;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Outfit', sans-serif;
    background: #ffffff;
    transition: all 0.3s ease;
}

.form-grid input:focus,
.form-grid select:focus {
    outline: none;
    border-color: #e83a15;
    background: #ffffff;
}

.form-grid input::placeholder {
    color: #999;
}

.quote-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #d0d0d0;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Outfit', sans-serif;
    background: #ffffff;
    resize: vertical;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.quote-form textarea:focus {
    outline: none;
    border-color: #e83a15;
    background: #ffffff;
}

.quote-form textarea::placeholder {
    color: #999;
}

.submit-button {
    width: 100%;
    padding: 18px 40px;
    background: #e83a15;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.submit-button:hover {
    background: #d02f0e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(232, 58, 21, 0.3);
}

/* Responsive adjustments */
@media (max-width: 1199px) {
    .form-title {
        font-size: 24px;
        white-space: normal;
    }

    .contacts-section .container {
        max-width: 95%;
        padding: 30px;
    }
}

@media (max-width: 991px) {
    .form-title {
        font-size: 22px;
        white-space: normal;
    }

    .contact-form {
        padding: 30px 25px;
    }

    .contacts-section {
        padding: 50px 15px 30px 15px;
    }

    .contacts-section .container {
        padding: 25px;
        border-radius: 15px;
    }
}

@media (max-width: 767px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-title {
        font-size: 20px;
        white-space: normal;
    }

    .contact-form {
        padding: 25px 20px;
    }

    .contacts-section {
        padding: 40px 10px 20px 10px;
    }

    .contacts-section .container {
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    }

    .contact-person-image::before,
    .contact-person-image::after {
        display: none;
    }
}
