
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Kanit', sans-serif;
}

a {
    text-decoration: none;
}

.contactus-header-section {
    position: relative;
    width: 100%;
    height: 400px;
    background-image: url('/assets/images/banners/headbanner2.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contactus-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 50%, rgba(139, 0, 0, 0.4) 100%);
    z-index: 1;
}

.content-header {
    position: relative;
    z-index: 2;
    padding: 20px;
    animation: fadeInScale 1s ease-out forwards;
}

.content-header h1 {
    font-size: 4.5em;
    margin-bottom: 15px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.content-header h1::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #f0f0f0;
    border-radius: 2px;
}

.contactus-header-title {
    font-size: 1.2em;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 10px;
}

.contactus-header-title a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.contactus-header-title a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.contactus-header-title span {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 8px;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.contact-redline {
    width: 100%;
    height: 10vh;
    background: linear-gradient(to right, #ff1313, #ff1313, #8f0000);
}


.contact-section,
.contact-factory-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 80px 40px;
    background-color: #ffffff;
    gap: 60px;
    flex-wrap: wrap;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin: 40px auto;
    max-width: 1200px;
    border-radius: 10px;
}

.contact-info,
.contact-factory-info {
    flex: 1;
    min-width: 300px;
    max-width: 550px;
    padding: 0;
}

.contact-section-title,
.contact-factory-section-title {
    font-size: 2.2em;
    color: #cb2027;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 10px;
}

.contact-section-title::after,
.contact-factory-section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: #cb2027;
    border-radius: 2px;
}

.contact-section-location-group {
    display: flex;
    flex-direction: column;
}
.contact-location-name,
.contact-factory-location-name {
    font-size: 1.6em;
    color: #333;
    font-weight: 500;
    margin-bottom: 0px;
}
.contact-section-location-group p {
    margin-top: 0; 
    margin-bottom: 0; 
    font-size: 1.1em;
    color: #666;
}
.contact-address,
.contact-factory-address {
    font-size: 1.05em;
    color: #555;
    line-height: 1.8;
    margin-bottom: 10px;
}

.contact-details,
.contact-factory-details {
    list-style: none;
    padding: 0;
    margin-bottom: 50px;
}

.contact-details li,
.contact-factory-details li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #444;
}

.contact-details li i,
.contact-factory-details li i {
    color: #cb2027;
    font-size: 1.4em;
    margin-right: 20px;
    width: 30px;
    text-align: center;
    flex-shrink: 0;
}

.contact-details li span a,
.contact-factory-details li span a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.contact-details li span a:hover,
.contact-factory-details li span a:hover {
    color: #cb2027;
    text-decoration: none;
}

.contact-details li span:first-of-type,
.contact-factory-details li span:first-of-type {
    font-weight: 600;
    margin-right: 15px;
    color: #333;
}

.contact-details li span:last-of-type,
.contact-factory-details li span:last-of-type {
    font-weight: 400;
    color: #555;
    word-break: break-word;
}

.contact-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
    margin: 0;
    font-family: 'Kanit', sans-serif;
    line-height: 1.6;
    box-sizing: border-box;
    padding: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1.05em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.btn i {
    margin-right: 10px;
    font-size: 1.2em;
}

.btn-red {
    background-color: #cb2027;
    color: #ffffff;
}

.btn-red:hover {
    background-color: #a81a20;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.btn-google {
    background-color: #ffffff;
    color: #333;
    border: 1px solid #cb2027;
}

.btn-google:hover {
    background-color: #cb2027;
    transform: translateY(-3px);
    color: #ffffff;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.btn-google:hover i {
    color: #ffffff;
}

/* Map containers */
.map-container,
.map-factory-container {
    flex: 1.5;
    min-width: 350px;
    max-width: 650px;
    background-color: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    position: relative;
    height: 0;
    padding-bottom: 45%;
    max-height: 350px;
}

.map-container iframe,
.map-factory-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* #social-main-container */
.social-main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 30px;
    background-color: #e6e6e6;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.text-column {
    text-align: center;
}

.insee-text {
    font-weight: 700;
    font-size: 2.5rem;
    color: #e4002b;
    margin: 0;
}

.follow-us-text {
    font-size: 1.2rem;
    color: #000000;
    margin: 5px 0 0;
}

/* Social Icons Section */
.social-social-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.social-icons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.social-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
}

.icon-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-color: #e4002b;
    color: #ffffff;
    font-size: 2rem;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.icon-link:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.icon-link.line:hover {
    background-color: #00C300;
}

.icon-link.facebook:hover {
    background-color: #1877F2;
}

.icon-link.email:hover {
    background-color: #EA4335;
}

.icon-link.phone:hover {
    background-color: #2c3e50;
}

.social-insee-text {
    font-weight: 600;
    font-size: 0.9rem;
    color: #e4002b;
    margin: 0;
}

.social-us-text {
    font-size: 0.75rem;
    color: #000000;
    margin: 0;
}

/* QR Code Section */
.qr-code-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.qr-heading {
    font-size: 1.2rem;
    font-weight: 600;
    color: #e4002b;
    margin: 0;
    text-align: center;
}

.qr-code-img {
    width: 120px;
    height: 120px;
    padding: 10px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qr-code-img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.qr-code-img img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}


/* --- Responsive Design --- */

@media (max-width: 1024px) {

    .contact-section,
    .contact-factory-section {
        flex-direction: column;
        align-items: center;
        padding: 60px 20px;
        gap: 40px;
    }

    .contact-info,
    .contact-factory-info,
    .map-container,
    .map-factory-container {
        min-width: unset;
        max-width: 100%;
        width: 100%;
    }

    .contactus-header-section {
        height: 300px;
    }

    .content-header h1 {
        font-size: 3.5em;
    }

    .contactus-header-title {
        font-size: 1em;
    }

    .map-container,
    .map-factory-container {
        padding-bottom: 56.25%;
        max-height: 400px;
    }
}

/* Mobile devices */
@media (max-width: 768px) {

    .contact-section,
    .contact-factory-section {
        padding: 40px 15px;
        margin: 20px auto;
    }
    .contact-section-location-group p {
        font-size: 0.9em;
    }
    .content-header h1 {
        font-size: 2.8em;
        letter-spacing: 1px;
    }

    .content-header h1::after {
        width: 50px;
        height: 3px;
    }

    .contactus-header-title {
        font-size: 0.9em;
    }

    .contact-section-title,
    .contact-factory-section-title {
        font-size: 1.8em;
    }

    .contact-location-name,
    .contact-factory-location-name {
        font-size: 1.4em;
    }

    .contact-address,
    .contact-factory-address {
        font-size: 0.95em;
    }

    .contact-details li,
    .contact-factory-details li {
        display: flex;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        margin-bottom: 15px;
    }

    .contact-details li i,
    .contact-factory-details li i {
        margin-right: 15px;
        margin-bottom: 0;
    }

    .contact-details li span:first-of-type,
    .contact-factory-details li span:first-of-type {
        margin-right: 5px;
        white-space: nowrap;
    }

    .contact-details li span:last-of-type,
    .contact-factory-details li span:last-of-type {
        display: inline;
        flex-direction: row;
        gap: 5px;
        flex-wrap: wrap;
    }

    .contact-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 1em;
    }

    .map-container,
    .map-factory-container {
        padding-bottom: 75%;
        max-height: 300px;
    }
}

@media (max-width: 576px) {
    .social-main-container {
        padding: 20px;
    }

    .insee-text {
        font-size: 2.5rem;
    }

    .follow-us-text {
        font-size: 1rem;
    }

    .icon-link {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .qr-heading {
        font-size: 1rem;
    }

    .qr-code-img {
        width: 100px;
        height: 100px;
    }
}

/* Smaller mobile devices */
@media (max-width: 480px) {
    .contactus-header-section {
        height: 250px;
    }

    .content-header h1 {
        font-size: 2.2em;
    }

    .contactus-header-title {
        font-size: 0.8em;
    }

    .contact-section,
    .contact-factory-section {
        padding: 30px 10px;
        margin: 15px auto;
        gap: 30px;
    }

    .contact-section-title,
    .contact-factory-section-title {
        font-size: 1.6em;
    }

    .contact-location-name,
    .contact-factory-location-name {
        font-size: 1.2em;
    }

    .contact-address,
    .contact-factory-address {
        font-size: 0.9em;
    }

    .contact-details li,
    .contact-factory-details li {
        font-size: 0.95em;
    }

    .btn {
        padding: 10px 15px;
        font-size: 0.95em;
    }

    .map-container,
    .map-factory-container {
        padding-bottom: 85%;
        max-height: 250px;
    }
}

@media (min-width: 768px) {
    .social-main-container {
        flex-direction: row;
        justify-content: space-around;
        gap: 50px;
        padding: 50px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .social-social-section {
        flex-direction: row;
        align-items: flex-start;
        gap: 40px;
    }

    .social-icons-container {
        gap: 20px;
    }

    .icon-link {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .insee-text {
        font-size: 2.5rem;
    }

    .follow-us-text {
        font-size: 1.2rem;
    }

    .qr-heading {
        font-size: 1.2rem;
    }

    .qr-code-img {
        width: 120px;
        height: 120px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    }
}