/* 
======================
CONTACT FORM SECTION (Bottom) - COMPLETE
======================
*/
.sd-bespoke-web-design-hero#contact-form {
    background-image: url('../img/hero-lp.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: auto;
    padding: 80px 0;
    position: relative;
}

.sd-bespoke-web-design-hero#contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.sd-bespoke-web-design-hero#contact-form .sd-bespoke-web-design-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 60px;
}

.sd-bespoke-web-design-hero#contact-form .sd-bespoke-web-design-hero-content {
    display: block;
    flex: 1;
    max-width: 500px;
    color: white;
    text-align: left;
}

.sd-bespoke-web-design-hero#contact-form .sd-bespoke-web-design-hero-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.sd-bespoke-web-design-hero#contact-form .sd-bespoke-web-design-hero-content p {
    font-size: 1.2rem;
    margin-bottom: 0;
    opacity: 0.95;
    line-height: 1.5;
}

/* Form Container for Bottom Form */
.sd-bespoke-web-design-hero#contact-form .sd-bespoke-web-design-form-container {
    flex: 1;
    max-width: 650px;
    margin: 0;
    padding: 45px 50px 50px;
    background-color: rgba(51, 51, 51, 0.8);
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    position: relative;
}

.sd-bespoke-web-design-hero#contact-form .sd-bespoke-web-design-form h3 {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 15px;
    text-align: center;
    line-height: 1.2;
    padding-bottom: 15px;
    position: relative;
}

.sd-bespoke-web-design-hero#contact-form .sd-bespoke-web-design-form h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #db3c30;
}

.sd-bespoke-web-design-hero#contact-form .sd-bespoke-web-design-form p {
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.2rem;
}

/* Form Group Styles */
.sd-bespoke-web-design-hero#contact-form .sd-bespoke-web-design-form-group {
    margin-bottom: 25px;
}

.sd-bespoke-web-design-hero#contact-form .sd-bespoke-web-design-form-group input,
.sd-bespoke-web-design-hero#contact-form .sd-bespoke-web-design-form-group textarea {
    width: 100%;
    padding: 18px;
    border: 1px solid #555;
    border-radius: 4px;
    font-family: 'Quattrocento', serif;
    font-size: 1.1rem;
    background-color: rgba(255, 255, 255, 0.95);
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    color: #333;
}

.sd-bespoke-web-design-hero#contact-form .sd-bespoke-web-design-form-group input:focus,
.sd-bespoke-web-design-hero#contact-form .sd-bespoke-web-design-form-group textarea:focus {
    outline: none;
    border-color: #db3c30;
    box-shadow: 0 0 0 2px rgba(219, 60, 48, 0.2);
}

.sd-bespoke-web-design-hero#contact-form .sd-bespoke-web-design-form-group textarea {
    min-height: 220px;
    resize: none;
    font-family: 'Quattrocento', serif;
}

.sd-bespoke-web-design-hero#contact-form .sd-bespoke-web-design-form .sd-bespoke-web-design-button {
    width: 100%;
    margin-top: 20px;
    font-family: 'Quattrocento', serif;
    font-size: 1.2rem;
    padding: 18px 24px;
    background-color: #db3c30;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
    font-weight: 700;
}

.sd-bespoke-web-design-hero#contact-form .sd-bespoke-web-design-form .sd-bespoke-web-design-button:hover {
    background-color: #c02a1e;
}

/* Form Overlay Styles */
.sd-bespoke-web-design-hero#contact-form .sd-bespoke-web-design-form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(51, 51, 51, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.sd-bespoke-web-design-hero#contact-form .sd-bespoke-web-design-form-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sd-bespoke-web-design-hero#contact-form .sd-bespoke-web-design-form-processing {
    text-align: center;
}

.sd-bespoke-web-design-hero#contact-form .sd-bespoke-web-design-form-processing p {
    font-size: 1.3rem;
    color: #fff;
    margin: 0;
}

/* Contact Form - Tablet Styles (768px - 991px) */
@media (max-width: 991px) {
    .sd-bespoke-web-design-hero#contact-form {
        padding: 60px 0;
    }
    
    .sd-bespoke-web-design-hero#contact-form .sd-bespoke-web-design-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    
    .sd-bespoke-web-design-hero#contact-form .sd-bespoke-web-design-hero-content {
        text-align: center;
    }
    
    .sd-bespoke-web-design-hero#contact-form .sd-bespoke-web-design-hero-content h2 {
        font-size: 2.2rem;
    }
    
    .sd-bespoke-web-design-hero#contact-form .sd-bespoke-web-design-hero-content p {
        font-size: 1.1rem;
    }
    
    .sd-bespoke-web-design-hero#contact-form .sd-bespoke-web-design-form-container {
        max-width: 700px;
        width: 100%;
        padding: 40px 45px 45px;
    }
    
    .sd-bespoke-web-design-hero#contact-form .sd-bespoke-web-design-form h3 {
        font-size: 1.6rem;
    }
    
    .sd-bespoke-web-design-hero#contact-form .sd-bespoke-web-design-form-group {
        margin-bottom: 22px;
    }
    
    .sd-bespoke-web-design-hero#contact-form .sd-bespoke-web-design-form-group input,
    .sd-bespoke-web-design-hero#contact-form .sd-bespoke-web-design-form-group textarea {
        padding: 16px;
        font-size: 1.05rem;
    }
    
    .sd-bespoke-web-design-hero#contact-form .sd-bespoke-web-design-form-group textarea {
        min-height: 200px;
    }
    
    .sd-bespoke-web-design-hero#contact-form .sd-bespoke-web-design-form .sd-bespoke-web-design-button {
        padding: 16px 24px;
        font-size: 1.1rem;
    }
}

/* Contact Form - Mobile Styles (767px and below) */
@media (max-width: 767px) {
    .sd-bespoke-web-design-hero#contact-form {
        padding: 50px 0;
    }
    
    .sd-bespoke-web-design-hero#contact-form .sd-bespoke-web-design-container {
        gap: 30px;
        padding: 0 15px;
    }
    
    .sd-bespoke-web-design-hero#contact-form .sd-bespoke-web-design-hero-content h2 {
        font-size: 1.9rem;
        margin-bottom: 15px;
    }
    
    .sd-bespoke-web-design-hero#contact-form .sd-bespoke-web-design-hero-content p {
        font-size: 1rem;
    }
    
    .sd-bespoke-web-design-hero#contact-form .sd-bespoke-web-design-form-container {
        padding: 30px 25px 35px;
        border-radius: 0;
        margin: 0 -15px;
        max-width: 100%;
    }
    
    .sd-bespoke-web-design-hero#contact-form .sd-bespoke-web-design-form h3 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .sd-bespoke-web-design-hero#contact-form .sd-bespoke-web-design-form h3:after {
        width: 50px;
    }
    
    .sd-bespoke-web-design-hero#contact-form .sd-bespoke-web-design-form p {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    
    .sd-bespoke-web-design-hero#contact-form .sd-bespoke-web-design-form-group {
        margin-bottom: 20px;
    }
    
    .sd-bespoke-web-design-hero#contact-form .sd-bespoke-web-design-form-group input,
    .sd-bespoke-web-design-hero#contact-form .sd-bespoke-web-design-form-group textarea {
        padding: 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .sd-bespoke-web-design-hero#contact-form .sd-bespoke-web-design-form-group textarea {
        min-height: 180px;
    }
    
    .sd-bespoke-web-design-hero#contact-form .sd-bespoke-web-design-form .sd-bespoke-web-design-button {
        padding: 16px;
        font-size: 1.1rem;
        margin-top: 20px;
    }
    
    .sd-bespoke-web-design-hero#contact-form .sd-bespoke-web-design-form-overlay {
        border-radius: 0;
    }
}