/* ==========================================================================
   CONTACT SECTIONS
   ========================================================================== */

.homepage-contact-section {
    position: relative;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 100px 0 130px 0;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.contact-content-grid {
    position: relative;
    z-index: 2;
    align-items: flex-end;
    min-height: 500px;
}

.contact-form-area {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 500px;
}

.contact-form-container {
    background: rgba(44, 44, 44, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 50px 40px;
    color: var(--color-white);
    width: 100%;
    max-width: 500px;
    margin-bottom: -30px;
    position: relative;
    z-index: 3;
}

.contact-section-heading {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: var(--font-weight-light);
    color: var(--color-white);
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
}

.contact-section-heading em {
    font-family: var(--font-secondary);
    font-style: italic;
    font-weight: var(--font-weight-normal);
}

.contact-section-subtitle {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
}

/* Contact Form Styling */
.contact-form-wrapper {
    margin-top: var(--spacing-xl);
}

.homepage-contact-section .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.homepage-contact-section .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.homepage-contact-section .wpcf7 input[type="text"],
.homepage-contact-section .wpcf7 input[type="email"],
.homepage-contact-section .wpcf7 input[type="tel"],
.homepage-contact-section .wpcf7 select,
.homepage-contact-section .wpcf7 textarea {
    width: 100%;
    padding: var(--spacing-md) 0;
    border: none;
    border-bottom: var(--border-width) solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 14px;
    outline: none;
    transition: var(--transition-base);
}

.homepage-contact-section .wpcf7 input[type="text"]:focus,
.homepage-contact-section .wpcf7 input[type="email"]:focus,
.homepage-contact-section .wpcf7 input[type="tel"]:focus,
.homepage-contact-section .wpcf7 select:focus,
.homepage-contact-section .wpcf7 textarea:focus {
    border-bottom-color: rgba(255, 255, 255, 0.8);
}

.homepage-contact-section .wpcf7 input::placeholder,
.homepage-contact-section .wpcf7 textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.homepage-contact-section .wpcf7 textarea {
    min-height: 120px;
    resize: vertical;
    font-family: var(--font-primary);
}

.homepage-contact-section .wpcf7 select {
    background: transparent;
    border-bottom: var(--border-width) solid rgba(255, 255, 255, 0.3);
    color: var(--color-white);
}

.homepage-contact-section .wpcf7 select option {
    background: var(--color-primary);
    color: var(--color-white);
}

.homepage-contact-section .wpcf7 input[type="submit"] {
    background: var(--color-white);
    color: var(--color-primary);
    border: none;
    padding: var(--spacing-md) var(--spacing-xxl);
    font-family: var(--font-primary);
    font-weight: var(--font-weight-semibold);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-base);
    align-self: flex-start;
    margin-top: var(--spacing-sm);
}

.homepage-contact-section .wpcf7 input[type="submit"]:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* ==========================================================================
   MOBILE RESPONSIVE STYLES
   ========================================================================== */

/* Tablet and smaller - reduce gap to 15px */
@media (max-width: 768px) {
    .homepage-contact-section .wpcf7-form {
        gap: 15px;
    }
    
    .contact-form-container {
        padding: var(--spacing-xl) var(--spacing-lg);
    }
    
    .contact-section-heading {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .contact-section-subtitle {
        text-align: center;
        font-size: 0.85rem;
    }
}

/* Mobile phones - reduce gap to 10px */
@media (max-width: 480px) {
    .homepage-contact-section .wpcf7-form {
        gap: 10px;
    }
    
    .contact-form-container {
        padding: var(--spacing-lg) var(--spacing-md);
        margin-bottom: -20px;
    }
    
    .contact-section-heading {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-md);
    }
    
    .contact-section-subtitle {
        font-size: 0.8rem;
        margin-bottom: var(--spacing-lg);
    }
    
    .homepage-contact-section .wpcf7 input[type="text"],
    .homepage-contact-section .wpcf7 input[type="email"],
    .homepage-contact-section .wpcf7 input[type="tel"],
    .homepage-contact-section .wpcf7 select,
    .homepage-contact-section .wpcf7 textarea {
        padding: var(--spacing-sm) 0;
        font-size: 14px;
    }
    
    .homepage-contact-section .wpcf7 textarea {
        min-height: 80px;
    }
    
    .homepage-contact-section .wpcf7 input[type="submit"] {
        width: 100%;
        padding: var(--spacing-lg) var(--spacing-xl);
        font-size: 14px;
        margin-top: var(--spacing-md);
    }
}