/* ShipPlus — Contact page (from Figma "contact" 587:9061, "contact-mobile" 752:1647) */

.contact-page {
  background: #f6f8fe;
  padding: 64px 0 100px;
}

.contact-card {
  display: flex;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-lg, 0 10px 15px rgba(0, 0, 0, 0.1));
}

/* ---------- Left / info panel ---------- */
.contact-info-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 100px;
  background: linear-gradient(37deg, #091a41 0%, #015f80 100%);
  color: #fff;
}

.contact-info-content { display: flex; flex-direction: column; gap: 24px; }
.contact-info-content h1 {
  font: 700 39px/1.21 var(--font-latin, "Inter", sans-serif);
  color: #fff;
}
.contact-info-content p {
  font: 400 20px/32px var(--font-latin, "Inter", sans-serif);
  color: #fff;
}

.contact-section-label {
  font: 700 20px/30px var(--font-thai);
  color: #38c5bb;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.contact-icon-circle {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-icon-circle img { width: 24px; height: 24px; }
.contact-info-item h3 {
  font: 700 20px/32px var(--font-latin, "Inter", sans-serif);
  color: #00f5e3;
  margin-bottom: 4px;
}
.contact-info-item p {
  font: 400 18px/28px var(--font-thai);
  color: #fff;
}

.contact-social { display: flex; align-items: center; gap: 24px; }
.contact-social span { font: 400 18px/28px var(--font-thai); color: #fff; }
.contact-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-social img { width: 16px; height: 16px; }

/* ---------- Right / form panel ---------- */
.contact-form-panel {
  flex: 1;
  padding: 100px;
  background: #f9fafb;
}

.contact-form-header { margin-bottom: 48px; }
.contact-form-header h2 {
  font: 700 40px/48px var(--font-thai);
  color: var(--ink);
  margin-bottom: 16px;
}
.contact-form-header p {
  font: 400 18px/28px var(--font-thai);
  color: #171717;
}

.contact-form { display: flex; flex-direction: column; gap: 24px; }
.form-row { display: flex; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.form-field label { font: 400 18px/28px var(--font-thai); color: #171717; }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  height: 50px;
  padding: 0 20px;
  border: 1px solid #d3d7df;
  border-radius: 8px;
  background: #fff;
  font: 400 18px/28px var(--font-thai);
  color: var(--ink);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #d4d4d4; }

.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("../assets/contact-chevron-down.svg");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 14px;
  color: #d4d4d4;
}
.form-field select:invalid { color: #d4d4d4; }
.form-field select option { color: var(--ink); }

.form-field textarea {
  height: 160px;
  padding: 16px 20px;
  resize: vertical;
  font-family: var(--font-thai);
}

.contact-submit { width: 100%; }

.contact-privacy {
  font: 400 14px/1.21 var(--font-latin, "Inter", sans-serif);
  color: #6e6b7b;
}
.contact-privacy a { color: var(--teal); text-decoration: underline; }

/* ---------- Mobile (Figma frame contact-mobile, 752:1647, 390px) ---------- */
@media (max-width: 767px) {
  .contact-page { padding: 0; background: #fff; }
  .container.contact-container { padding: 0; }

  .contact-card {
    flex-direction: column;
    border-radius: 0;
    box-shadow: none;
  }

  .contact-info-panel {
    padding: 40px 20px;
    gap: 16px;
  }
  .contact-info-content { gap: 8px; }
  .contact-info-content h1 { font: 700 28px/36px var(--font-thai); }
  .contact-info-content p {
    font: 400 14px/24px var(--font-thai);
    color: #d3d7df;
  }
  .contact-section-label { font-size: 20px; margin-top: 8px; }

  .contact-info-list { gap: 16px; }
  .contact-info-item {
    gap: 16px;
    background: #fff;
    border: 1px solid #ebedf1;
    border-radius: 12px;
    padding: 16px;
  }
  .contact-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--teal);
  }
  .contact-icon-circle img { width: 18px; height: 18px; }
  .contact-info-item h3 { font: 700 14px/20px var(--font-thai); color: var(--navy); }
  .contact-info-item p { font: 400 14px/20px var(--font-thai); color: #404040; }

  .contact-social { margin-top: 8px; }

  .contact-form-panel { padding: 32px 20px 48px; background: #f9fafb; }
  .contact-form-header { margin-bottom: 24px; }
  .contact-form-header h2 { font: 700 22px/1.51 var(--font-thai); margin-bottom: 8px; }
  .contact-form-header p { font: 400 14px/20px var(--font-thai); color: #69616b; }

  .contact-form { gap: 16px; }
  .form-row { flex-direction: column; gap: 16px; }
  .form-field { gap: 8px; }
  .form-field label { font: 400 13px/1.51 var(--font-thai); color: var(--ink); }
  .form-field input,
  .form-field select,
  .form-field textarea {
    height: 46px;
    padding: 12px 16px;
    border-color: #ebedf1;
    font: 400 13px/1.51 var(--font-thai);
  }
  .form-field select { background-position: right 16px center; }
  .form-field textarea { height: 120px; padding: 16px; }

  .contact-submit { padding: 12px 24px; border-radius: 12px; }
  .contact-privacy { font-size: 11px; }
}

/* Alert notifications & Turnstile container */
.contact-alert {
  padding: 14px 18px;
  border-radius: 8px;
  font: 500 15px/1.5 var(--font-thai);
  margin-bottom: 20px;
  scroll-margin-top: 100px;
}

.contact-alert-success {
  background-color: #E8F9F3;
  border: 1px solid #19B5A5;
  color: #0E6B61;
}

.contact-alert-error {
  background-color: #FDF2F2;
  border: 1px solid #F05252;
  color: #9B1C1C;
}

.turnstile-wrapper {
  margin: 4px 0;
  display: flex;
  justify-content: flex-start;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.contact-submit:disabled,
.contact-submit.is-submitting {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

.contact-submit .btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: contact-spin 0.75s linear infinite;
  flex-shrink: 0;
}

.contact-submit.is-submitting .btn-spinner {
  display: inline-block;
}

.contact-submit.is-submitting .btn-arrow {
  display: none;
}

@keyframes contact-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
