/* Contact Page Specific Styles - Simplified version */

/* Base Styles */
.contact-page {
    background-color: #EBE9E1; /* Cream background */
    margin: 0;
    padding: 0;
}

#header {
    position: fixed;
    width: 100%;
    z-index: 100;
    transition: all 0.3s ease;
    background-color: transparent; /* Start transparent */
}

/* Matching product page header style */
#header.scrolled {
    background-color: rgba(234, 177, 35, 0.95) !important;
    backdrop-filter: blur(10px);
}

/* Contact Section Layout - Full Width Version */
.contact-section {
    display: flex;
    width: 100%;
    height: 100vh;
    padding-top: 70px; /* Account for fixed header height */
    box-sizing: border-box;
    overflow: hidden;
}

/* Image Column - Scale down image size */
.contact-image-column {
    position: relative;
    width: 42%;
    height: calc(100vh - 70px);
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Change from center to flex-start */
    padding-left: 0; /* Ensure no padding on left */
}

.envelope-image {
    width: 90%; /* Slightly wider to fill the space */
    height: auto;
    object-fit: contain;
    object-position: left center; /* Align to left */
    margin-left: 0; /* Ensure no margin on left */
    transform: translateX(-100%); /* Start off-screen to the right */
    transition: transform 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28); /* Bouncy effect */
}

.envelope-image.active {
    transform: translateX(0); /* Slide to original position */
}

.message-cloud {
    position: absolute;
    bottom: -400px; /* Start below the screen */
    left: 40%;
    transform: translateX(-50%); /* Center horizontally */
    width: 400px;
    height: auto;
    z-index: 10;
    transition: all 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    /* transition: bottom 0.5s ease-out; */
}

.message-cloud.active {
    bottom: 5%; /* Move up into view */
}

/* Form Column */
.contact-form-column {
    width: 58%;
    padding: 6vh 8vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form {
    max-width: 570px;
    margin: 0 auto;
    width: 100%;
}

/* Form Elements */
.form-group {
    margin-bottom: 30px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: var(--font-sm);
    color: #777;
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 0;
    font-size: var(--font-md);
    color: #333;
    border: none;
    border-bottom: 1px solid #ccc;
    background-color: transparent;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-red);
}

/* Send Button */
.form-submit {
    text-align: right;
    margin-top: 40px;
}

.send-button {
    background-color: transparent;
    color: var(--primary-red);
    border: none;
    border-bottom: 1px solid var(--primary-red);
    padding: 5px 0;
    font-size: var(--font-sm);
    cursor: pointer;
    transition: all 0.3s;
    text-transform: lowercase;
    letter-spacing: 1px;
}

.send-button:hover {
    color: var(--secondary-pink);
    border-color: var(--secondary-pink);
}

/* Footer Info - Right aligned with more spacing */
.contact-footer {
    margin-top: 15vh;
    font-size: var(--font-xs);
    color: #777;
    text-align: right;
}

.social-links {
    margin-bottom: 5px;
}

.social-links a {
    color: var(--primary-red);
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--secondary-pink);
}

.email-link {
    margin-top: 5px;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 10px;
}

/* Create padding at the top equal to header height and color it yellow */
.contact-section {
    padding-top: 70px; /* Adjust this to match your header height */
}

.contact-section::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px; /* Should match padding-top value */
    background: linear-gradient(to bottom, rgba(234, 177, 35, 0.9), rgba(234, 177, 35, 0.95));
    backdrop-filter: blur(10px);
    z-index: -1; /* Place it behind other content but above the body background */
    pointer-events: none; /* Don't interfere with interactions */
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .contact-form-column {
        padding: 5vh 6vw;
    }
    
    .contact-footer {
        margin-top: 10vh;
    }
}

@media (max-width: 992px) {
    .contact-section {
        flex-direction: column;
        height: auto;
    }

    .message-cloud {
        width: 150px;
    }
    
    .contact-image-column {
        justify-content: flex-start; /* Maintain left alignment on smaller screens */
    }
    
    .envelope-image {
        width: 85%; /* Adjusted for tablet */
        margin-left: 0;
    }
    
    .contact-form-column {
        width: 100%;
        padding: 40px 5vw;
    }
    
    .contact-footer {
        margin-top: 60px;
    }
}

@media (max-width: 768px) {
    .contact-image-column {
        height: 30vh;
    }

    .message-cloud {
        /* Change position to start from top-right off-screen */
        bottom: auto;
        left: auto;
        right: -120px;
        transform: none; /* Remove the horizontal centering */
        width: 120px;
        transition: all 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    }
    
    .message-cloud.active {
        /* Move to visible position */
        bottom: auto;
        top: 15%;
        right: 10%;
    }
    
    .envelope-image {
        width: 90%; /* Adjusted for mobile */
    }
    
    .form-submit {
        text-align: center;
    }
    
    .send-button {
        width: 100%;
        padding: 10px 0;
    }
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .contact-image-column {
        height: 25vh;
    }

    .message-cloud {
        width: 100px;
        top: -80px;
        right: -80px;
    }

    .message-cloud.active {
        top: 10%;
        right: 5%;
    }
    
    .envelope-image {
        width: 80%; /* Less reduction on very small screens */
    }
    
    .contact-form-column {
        padding: 30px 5vw;
    }
    
    .form-group {
        margin-bottom: 25px;
    }
    
    .form-group label {
        font-size: calc(var(--font-xs) * 1.1);
    }
    
    .form-group input,
    .form-group textarea {
        font-size: var(--font-sm);
    }
}
