/* Generic Template 4 Styles (Contact Us Page) */
.section {
    padding: 0;
}

/* Contact Hero Section */
.contact-hero-section {
    position: relative;
    height: 500px;
    overflow: hidden;
    min-width: -webkit-fill-available;
    background-color: #f8f9fa;
    padding: 80px 0;
    border-radius: 32px;
    margin-bottom: 60px;
    display: grid;
    justify-content: left;
}

.contact-hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    align-self: end;
}

.contact-hero-text {
    flex: 1;
    z-index: 2;
    min-width: -webkit-fill-available;
}

.contact-form-heading {
    margin-bottom: 40px;
}

.contact-hero-heading span {
    font-weight: 300;
}

.contact-info {
    color: white;
    font-weight: 200;
}

.contact-info p {
    margin: 5px 0;
}

.contact-p {
    margin-top: 15px !important;
}

.contact-item {
    color: #333;
    line-height: 1.6;
}

.contact-item strong {
    font-weight: 600;
    color: #000;
}

.contact-hero-image {
    flex: 1;
    max-width: 500px;
}

.contact-hero-image img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 100%;
    min-width: 100%;
    object-fit: cover;
    object-position: center 10%;
}

.contact-hero-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

/* Contact Form Section */
.contact-form-section {
    padding: 60px 0;
    margin-bottom: 60px;
}

.contact-form-content {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.contact-form-image {
    flex: 1;
    max-width: 550px;
}

.contact-form-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
}

.contact-form-container {
    flex: 1;
    max-width: 600px;
}

.contact-form-heading {
    margin-bottom: 32px;
}

.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    width: 100%;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

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

.submit-btn {
    background-color: #B8FF57;
    color: #000;
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.submit-btn:hover {
    background-color: #a3e650;
}

/* Visit Us Section */
.visit-us-section {
    padding: 60px 0;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
}

.visit-us-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.visit-us-heading {
    align-self: start;
    margin-bottom: 24px;
}

.visit-us-heading h2 {
    font-size: 36px;
    font-weight: 600;
    color: #000;
    margin-bottom: 16px;
}

.visit-us-description {
    margin-bottom: 40px;
    width: 50%;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    text-align: right;
    justify-self: right;
}

.visit-us-content {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 600px;
}

.visit-us-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.visit-us-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.visit-us-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.address-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 8;
    padding: 20px;
    max-width: 300px;
}

.address-content {
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
}

.map-link {
    color: var(--global-colour-text-link-2);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    margin-top: 8px;
    padding-bottom: 2px;
    border-bottom: 2px solid var(--global-colour-text-link-2);
    width: 300px;
    padding: 10px 0;
}

.map-link::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background: var(--global-caret-green-url) no-repeat center center;
    background-size: contain;
    position: absolute;
    right: 0px;
}

.map-link:hover {
    text-decoration: underline;
}

.visit-us-map {
    width: 400px;
    height: 200px;
    z-index: 9;
    position: absolute;
    bottom: 200px;
    left: 25px;
    margin-bottom: 15px;
}

.visit-us-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {

    .contact-form-container {
        margin: 0 auto;
    }

    .contact-hero-heading span {
        font-size: 35px;
    }

    .contact-hero-content,
    .contact-form-content {
        flex-direction: column;
        gap: 40px;
        padding: 0 15px;
    }

    .contact-hero-heading h1 {
        font-size: 36px;
    }

    .form-row {
        flex-direction: column;
        gap: 16px;
    }

    .contact-form-wrapper {
        padding: 10px;
        min-width: -webkit-fill-available;
        width: 350px;
    }

    .visit-us-image {
        display: none !important;
    }

    .visit-us-map {
        height: -webkit-fill-available !important;
        margin: 0 auto;
    }

    .visit-us-heading h2 {
        font-size: 28px;
    }

    .visit-us-container {
        display: block;
    }

    .visit-us-description {
        text-align: left;
        width: 100%;
    }

    .address-overlay {
        position: static;
        margin-top: 20px;
        color: white;
        z-index: 8;
    }
}

@media (max-width: 480px) {
    .contact-hero-section,
    .contact-form-section,
    .visit-us-section {
        padding-left: 0px;
        padding-right: 0px;
    }

    .contact-form-wrapper {
        padding: 0px;
        width: 100%;
    }
}
