/* ============================
   FOOTER STYLES - OVERLAY LAYOUT
   ============================ */

/* Footer Container */
.footer-container {
    max-width: max;
    margin: 0 auto;
    background-color: #cdc2b8;
    position: relative;
    min-height: 500px;
    border-radius: 10px;
    overflow: hidden;
}

/* Left Section - Full Background */
.left-section {
    position: absolute;
    top: 0;
    left:80;
    width: 70%;
    height: 100%;
    padding: 40px;
    background-color: #cdc2b8;
    z-index: 1;
}

.company-title {
    font-size: 24px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 5px;
}

.company-subtitle {
    font-size: 18px;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.4;
}

.divider {
    border: none;
    height: 2px;
    background: repeating-linear-gradient(
        to right,
        #666 0,
        #666 5px,
        transparent 5px,
        transparent 10px
    );
    margin: 20px 0;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px; /* ลดจาก 30px เป็น 15px */
    margin-top: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: #ff0000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.contact-text {
    font-size: 20px;
    color: #333;
    font-weight: 500;
}

/* Right Section - Overlay on Top */
.right-section {
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    width: 350px;
    background-color: #ff6b35;
    padding: 30px;
    display: flex;
    flex-direction: column;
    z-index: 2;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.form-title {
    background-color: #1a1a2e;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    border-radius: 5px;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.form-input::placeholder {
    color: #cdc2b8;
}

.form-textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
    resize: vertical;
    min-height: 100px;
    box-sizing: border-box;
}

.submit-btn {
    width: 100%;
    background-color: #ff6b35;
    color: white;
    border: 2px solid white;
    text-align: center;
    padding: 15px;
    font-size: 16px;
    margin-bottom: 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    background-color: #ff5722;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ============================
   FOOTER RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
    .right-section {
        right: 20px;
        width: 300px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 10px; /* เหมือนกับ desktop */
        margin-right: 320px; /* Make space for form */
    }
}

@media (max-width: 768px) {
    .footer-container {
        min-height: auto;
    }
    
    .left-section {
        position: static;
        width: 100%;
        height: auto;
        padding: 30px 20px;
    }
    
    .right-section {
        position: static;
        transform: none;
        width: 100%;
        margin: 20px 0 0 0;
        border-radius: 0;
    }
    
    .contact-grid {
     gap: 5px 20px;      /* column-gap น้อยลง */
    max-width: 400px; 
    }
    
    .company-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .left-section {
        padding: 20px 15px;
    }
    
    .right-section {
        padding: 20px;
    }
}