/* ═══════════════════════════════════════════════════════════════════════════
   Contact Page — Split BG, info left, form overlay right
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Page wrapper ──────────────────────────────────────── */
.contact-page {
  position: relative;
  min-height: calc(100vh - 64px);
  overflow: hidden;
}

/* ── Split backgrounds (absolute, behind content) ──────── */
.contact-bg-left {
  position: absolute;
  top: 0; left: 0;
  width: 65%;
  height: 100%;
  background: var(--gray-50, #f9fafb);
  overflow: hidden;
}
.contact-bg-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: auto;
  height: auto;
  max-width: 100%;
  opacity: 0.45;
  pointer-events: none;
}
.contact-bg-right {
  position: absolute;
  top: 0; right: 0;
  width: 35%;
  height: 100%;
  background: var(--purple, #017eb7);
}

/* ── Content layer (on top of backgrounds) ─────────────── */
.contact-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 64px);
  padding: 60px 0;
}
.contact-content > .container {
  width: 100%;
}

/* ── Grid: info left + form right ──────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 48px;
  align-items: center;
  max-width: 927px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════
   LEFT COLUMN — Info (on white bg)
   ══════════════════════════════════════════════════════════ */
.contact-info {
  padding-right: 20px;
}

.contact-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple, #017eb7);
  margin-bottom: 12px;
}

.contact-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--gray-900, #111827);
  margin: 0 0 16px;
  line-height: 1.25;
}

.contact-desc {
  font-size: 14px;
  color: var(--gray-600, #4b5563);
  line-height: 1.7;
  margin: 0 0 14px;
}
.contact-desc strong {
  font-weight: 700;
  color: var(--gray-900, #111827);
}

/* Detail list (email, alamat) */
.contact-detail-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--gray-600, #4b5563);
  line-height: 1.6;
}
.contact-detail-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--purple, #017eb7);
}
.contact-detail-item a {
  color: var(--purple, #017eb7);
  text-decoration: none;
}
.contact-detail-item a:hover {
  text-decoration: underline;
}

/* Response note */
.contact-response-note {
  font-size: 13px;
  color: var(--gray-500, #6b7280);
  line-height: 1.7;
  margin: 20px 0 0;
}
.contact-response-note strong {
  font-weight: 700;
  color: var(--gray-900, #111827);
}

/* Social icons — white card, centered */
.contact-social-card {
  display: flex;
  gap: 14px;
  margin: 28px auto 0;
  padding: 20px 32px;
  background: var(--white, #fff);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  justify-content: center;
  max-width: 220px;
}
.contact-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--purple-mid, #4a90d9);
  background: var(--purple, #017eb7);
  color: var(--white, #fff);
  transition: border-color var(--t), opacity var(--t);
  text-decoration: none;
}
.contact-social-icon:hover {
  opacity: 0.85;
  border-color: var(--purple, #017eb7);
}

/* ══════════════════════════════════════════════════════════
   RIGHT COLUMN — Form card (white, overlays onto purple)
   ══════════════════════════════════════════════════════════ */
.contact-form-card {
  background: var(--white, #fff);
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.10), 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 40px 36px;
}

.contact-form-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900, #111827);
  margin: 0 0 6px;
}

.contact-form-desc {
  font-size: 13px;
  color: var(--gray-500, #6b7280);
  line-height: 1.6;
  margin: 0 0 24px;
}

/* ── Form Elements ─────────────────────────────────────── */
.contact-form .ct-form-group {
  margin-bottom: 18px;
}
.contact-form .ct-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700, #374151);
  margin-bottom: 5px;
}
.contact-form .ct-label .req {
  color: #ef4444;
}
.contact-form .ct-input,
.contact-form .ct-select {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font);
  line-height: 1.5;
  color: var(--gray-900, #111827);
  background: var(--white, #fff);
  border: 1px solid var(--gray-300, #d1d5db);
  border-radius: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}
.contact-form .ct-input:focus,
.contact-form .ct-select:focus {
  outline: none;
  border-color: var(--purple, #017eb7);
  box-shadow: 0 0 0 3px rgba(1, 126, 183, 0.12);
}
.contact-form .ct-input.has-error,
.contact-form .ct-select.has-error {
  border-color: #ef4444;
}
.contact-form .ct-textarea {
  resize: vertical;
  min-height: 90px;
}
.contact-form .ct-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
.contact-form .ct-error {
  font-size: 12px;
  color: #ef4444;
  margin-top: 3px;
  min-height: 0;
}

/* ── Form row (2-col) ──────────────────────────────────── */
.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Privacy note ──────────────────────────────────────── */
.contact-privacy-note {
  font-size: 12px;
  color: var(--gray-400, #9ca3af);
  line-height: 1.6;
  margin: 0 0 20px;
}
.contact-privacy-note a {
  color: var(--purple, #017eb7);
  text-decoration: underline;
}

/* ── Submit button ─────────────────────────────────────── */
.btn-contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--purple, #017eb7);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--t), opacity var(--t);
}
.btn-contact-submit:hover {
  opacity: 0.9;
}
.btn-contact-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Spinner ───────────────────────────────────────────── */
.btn-contact-submit .btn-spinner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-contact-submit .btn-spinner svg {
  animation: ct-spin 1s linear infinite;
}
@keyframes ct-spin {
  to { transform: rotate(360deg); }
}

/* ── CAPTCHA ───────────────────────────────────────────── */
.contact-form .cf-turnstile,
.contact-form .g-recaptcha {
  margin-top: 4px;
}

/* ── Form message ──────────────────────────────────────── */
.contact-form-message {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}
.contact-form-message--success {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}
.contact-form-message--error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

/* ══════════════════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .contact-bg-left {
    width: 100%;
    height: 45%;
  }
  .contact-bg-right {
    width: 100%;
    height: 55%;
    top: auto; bottom: 0;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact-info {
    padding-right: 0;
    text-align: center;
  }
  .contact-detail-list {
    align-items: left;
  }
  .contact-social-card {
    margin-left: auto;
    margin-right: auto;
  }
  .contact-content {
    padding: 40px 0;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .contact-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .contact-title {
    font-size: 24px;
  }
  .contact-form-card {
    padding: 28px 20px;
  }
  .contact-content {
    padding: 28px 0;
  }
  .contact-desc{
    text-align: left;
  }
}
