/* ========================================
   CONTACT SECTION
   Contact form and contact information
   ======================================== */

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

@media (max-width: 968px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .contact-container {
        gap: 30px;
    }

    .contact-section-title {
        font-size: 1.3rem;
    }

    body.th .contact-section-title {
        font-size: 1.15rem;
    }
}

@media (max-width: 480px) {
    .contact-section-title {
        font-size: 1.1rem;
    }

    body.th .contact-section-title {
        font-size: 1rem;
    }
}

.contact-main-address {
    text-align: center;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .contact-main-address {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .contact-main-address {
        margin-bottom: 30px;
    }
}

.contact-main-address h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
    line-height: 1.4;
}

body.th .contact-main-address h3 {
    font-size: 1.4rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .contact-main-address h3 {
        font-size: 1.3rem;
    }

    body.th .contact-main-address h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .contact-main-address h3 {
        font-size: 1.1rem;
    }

    body.th .contact-main-address h3 {
        font-size: 1rem;
    }
}

.contact-main-address .section-subtitle {
    margin-bottom: 0;
}

/* Contact Info Wrapper (Left Side) */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.th .contact-section-title {
    font-size: 1.3rem;
}

.contact-info-box {
    border-radius: 8px;
    background: white;
}

/* Contact Form Wrapper (Right Side) */
.contact-form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

body.th .contact-form-desc {
    font-size: 0.9rem;
}

.contact-form-box {
    border-radius: 8px;
    background: white;
}

/* Google Maps */
.contact-map {
    margin-top: 24px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-map iframe {
    display: block;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 2px solid rgba(37, 99, 235, 0.12);
    transition: all 0.3s ease;
}

.contact-form:hover {
    box-shadow: 0 15px 50px rgba(37, 99, 235, 0.2);
    border-color: var(--primary);
}

.contact-form .form-group {
    margin-bottom: 18px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px 15px;
    font-size: 14px;
}

.contact-form .submit-btn {
    padding: 12px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .contact-form {
        padding: 30px 25px;
    }
}

@media (max-width: 480px) {
    .contact-form {
        padding: 25px 20px;
    }
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 500;
    font-size: 15px;
}

body.th .form-group label {
    font-size: 14.5px;
}

.contact-form-box .form-group label {
    display: none;
}

.form-group input:not([type="checkbox"]),
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
    background: white;
    line-height: 1.5;
}

body.th .form-group input:not([type="checkbox"]),
body.th .form-group textarea {
    font-size: 15px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .form-group input:not([type="checkbox"]),
    .form-group textarea {
        padding: 12px 18px;
        font-size: 16px;
    }

    body.th .form-group input:not([type="checkbox"]),
    body.th .form-group textarea {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .form-group input:not([type="checkbox"]),
    .form-group textarea {
        padding: 12px 16px;
    }
}

.form-group input:not([type="checkbox"]):focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d946ef;
    background: white;
    box-shadow: 0 0 0 2px rgba(217, 70, 239, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
}

@media (max-width: 480px) {
    .contact-info {
        gap: 15px;
    }
}

/* Social media row - display Facebook and Line in a single row */
.social-media-row {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 767px) {
    .social-media-row {
        grid-template-columns: 1fr;
    }
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0;
    background: transparent;
    margin-bottom: 20px;
}

.info-item:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .info-item {
        gap: 14px;
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .info-item {
        gap: 12px;
        margin-bottom: 14px;
    }
}

.info-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
    transition: all 0.3s ease;
}

.info-icon svg {
    width: 18px;
    height: 18px;
    fill: white;
}

@media (max-width: 480px) {
    .info-icon {
        width: 36px;
        height: 36px;
    }

    .info-icon svg {
        width: 16px;
        height: 16px;
    }
}

.facebook-icon {
    background: linear-gradient(135deg, #1877f2, #0c5ec2) !important;
}

.line-icon {
    background: linear-gradient(135deg, #00C300, #00B900) !important;
}

.info-icon .icon-text {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    display: none;
}

.line-item .info-icon .icon-text {
    display: inline;
}

.info-text h3 {
    color: var(--dark);
    margin-bottom: 5px;
    font-size: 1rem;
    line-height: 1.5;
}

body.th .info-text h3 {
    font-size: 0.95rem;
    line-height: 1.6;
}

.info-text p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

body.th .info-text p {
    font-size: 0.9rem;
    line-height: 1.8;
}

@media (max-width: 480px) {
    .info-text h3 {
        font-size: 0.9rem;
    }

    body.th .info-text h3 {
        font-size: 0.85rem;
    }

    .info-text p {
        font-size: 0.85rem;
        word-break: break-word;
    }

    body.th .info-text p {
        font-size: 0.8rem;
    }
}

.info-text p a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-text p a:hover {
    color: var(--secondary);
    text-decoration: underline;
}
