/* ===================================
   Contact Page Custom Styling (OVERRIDE)
   - Prompt font across whole page
   - Fix select dropdown style + overflow cut
   =================================== */

/* ✅ Global Font: Prompt ทั้งหน้า */
html, body{
    font-family: 'Prompt', sans-serif;
}

/* ให้ฟอนต์ไปถึงทุก element ที่มักโดนธีมทับ */
button, input, select, textarea{
    font-family: inherit;
}

/* Page wrapper background */
.boxed_wrapper {
    background: #ffffff;
}

/* Main header on contact page */
.main-header {
    background: #ffffff;
}

/* ✅ FIX: กัน dropdown / element โดนตัด (สำคัญมาก) */
.contact-section,
.contact-section .content-column,
.contact-section .content-box,
.contact-section .form-inner,
.contact-section .form-inner .form-group,
.contact-info-section,
.auto-container,
.row{
    overflow: visible !important;
}

/* Contact Info Section Enhancement - Match index.php bg-color-1 */
.contact-info-section {
    background: #e5f8ed !important;
    position: relative;
    overflow: hidden; /* อันนี้เป็น background effect ได้ แต่ด้านบนเรามี override overflow visible ให้โซนฟอร์มแล้ว */
}

.contact-info-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.contact-info-section .sec-title h2 {
    font-size: 42px;
    font-weight: 700;
    color: #222222;
    margin-bottom: 20px;
    font-family: inherit;
}

.contact-info-section .sec-title h5 {
    font-size: 16px;
    font-weight: 600;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-family: inherit;
}

.contact-info-section .sec-title p {
    font-size: 16px;
    color: #777777;
    max-width: 700px;
    margin: 20px auto 0;
    line-height: 1.8;
    font-family: inherit;
}

.info-block-one {
    transition: all 0.4s ease;
    margin-bottom: 30px;
}

.info-block-one .inner-box {
    background: #ffffff;
    padding: 45px 30px;
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.info-block-one .inner-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.info-block-one:hover .inner-box {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.2);
}

.info-block-one:hover .inner-box::before {
    transform: scaleX(1);
}

.info-block-one .icon-box {
    width: 80px;
    height: 80px;
    line-height: 80px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 50%;
    margin: 0 auto 25px;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #667eea;
}

.info-block-one:hover .icon-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.info-block-one h4 {
    font-size: 22px;
    font-weight: 600;
    color: #222222;
    margin-bottom: 15px;
    font-family: inherit;
}

.info-block-one p {
    font-size: 16px;
    color: #777777;
    line-height: 1.8;
    font-family: inherit;
}

.info-block-one p a {
    color: #ff3366;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.info-block-one p a:hover {
    color: #e62958;
    text-decoration: underline;
}

/* Contact Form Section Enhancement - Match index.php bg-color-1 */
.contact-section {
    background: #e5f8ed !important;
    padding: 80px 0;
}

.contact-section .content-box {
    padding-right: 30px;
}

.contact-section .sec-title h5 {
    font-size: 16px;
    font-weight: 600;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-family: inherit;
}

.contact-section .sec-title h2 {
    font-size: 42px;
    font-weight: 700;
    color: #222222;
    margin-bottom: 40px;
    line-height: 1.3;
    font-family: inherit;
}

/* Form Styling */
.form-inner {
    background: #ffffff;
    padding: 45px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

/* ✅ Form fields */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    height: 55px;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    padding: 0 20px;
    font-size: 15px;
    color: #222;
    transition: all 0.3s ease;
    background: #ffffff;
    font-family: inherit; /* ✅ Prompt */
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #ff3366;
    box-shadow: 0 0 0 4px rgba(255, 51, 102, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

/* ✅ Select dropdown arrow + spacing */
.form-group select {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ff3366' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 45px;
}

/* ✅ กัน option บางเครื่องเป็นดำ/อ่านยาก */
.form-group select option {
    color: #222;
}

/* Submit Button Enhancement - Match theme color */
.message-btn .theme-btn {
    background: #ff3366;
    color: #ffffff;
    padding: 15px 45px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 51, 102, 0.3);
    text-transform: capitalize;
    letter-spacing: 0.5px;
    font-family: inherit; /* ✅ Prompt */
}

.message-btn .theme-btn:hover {
    background: #e62958;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 51, 102, 0.4);
}

.message-btn .theme-btn:active {
    transform: translateY(-1px);
}

/* Google Map Enhancement */
.google-map-area {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.1);
    height: 100%;
    min-height: 550px;
}

.google-map-area iframe {
    width: 100%;
    height: 100%;
    min-height: 550px;
    border: none;
    border-radius: 20px;
}

/* Popup Enhancement */
.popupx-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
}

.popupx-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.popupx {
    background: #ffffff;
    border-radius: 24px;
    padding: 50px 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.popupx-overlay.is-open .popupx {
    transform: scale(1) translateY(0);
}

.popupx-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(34, 197, 94, 0);
    }
}

.popupx-title {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin-bottom: 15px;
    font-family: inherit;
}

.popupx-text {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
    font-family: inherit;
}

.popupx-btn {
    background: #ff3366;
    color: #ffffff;
    padding: 14px 50px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 51, 102, 0.3);
    font-family: inherit; /* ✅ Prompt */
}

.popupx-btn:hover {
    background: #e62958;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 51, 102, 0.4);
}

/* Responsive Adjustments */
@media only screen and (max-width: 991px) {
    .contact-section .content-box {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .google-map-area {
        min-height: 400px;
    }

    .google-map-area iframe {
        min-height: 400px;
    }
}

@media only screen and (max-width: 767px) {
    .contact-info-section .sec-title h2,
    .contact-section .sec-title h2 {
        font-size: 32px;
    }

    .form-inner {
        padding: 30px 20px;
    }

    .info-block-one .inner-box {
        padding: 35px 20px;
    }

    .popupx {
        padding: 40px 25px;
    }

    .popupx-title {
        font-size: 24px;
    }
}

/* Animation for form inputs */
.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input,
.form-group select {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state for button */
.theme-btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.theme-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}





/* ✅ Social Circle Buttons */
.contact-social{
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ปุ่มวงกลม */
.social-circle{
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.social-circle:hover{
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 14px 28px rgba(0,0,0,.16);
}

.social-circle:active{
  transform: translateY(-1px);
}

/* สี Facebook / LINE */
.social-circle.fb{ background: #1877F2; }   /* Facebook Blue */
.social-circle.line{ background: #06C755; } /* LINE Green */


.social-circle i{
  font-size: 22px;
  line-height: 1;
}
