/* ===== BASE CONTACT PAGE ===== */
.contact-page {
  background: var(--main-white-pure-color)
  background: var(--main-white-pure-color);
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Text", sans-serif;
  color: #0f172a;
}

.contact-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* ===== HERO ===== */
.contact-hero {
  padding-top: 20px;
  margin-bottom: 16px;
}

.contact-hero-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 32px 28px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.contact-hero-label {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4b6bff;
  background: rgba(75, 107, 255, 0.08);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 14px;
}

.contact-hero-title {
  font-size: 26px;
  line-height: 1.3;
  margin: 0 0 8px;
}

.contact-hero-subtitle {
  font-size: 14px;
  line-height: 1.7;
  color: #6b7280;
  max-width: 560px;
  margin: 0;
  font-weight: 500;
}

/* ===== LAYOUT ===== */
.contact-main {
  margin-top: 24px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: flex-start;
}

/* ===== LEFT COLUMN (INFO) ===== */
.contact-info-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 22px 22px 18px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
}

.contact-info-card h2 {
  font-size: 18px;
  margin: 0 0 6px;
}

.contact-info-card p {
  font-size: 14px;
  line-height: 1.7;
  color: #4b5563;
  margin: 0 0 12px;
  font-weight: 500;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 8px;
}

.contact-info-item {
  background: #f9fafb;
  border-radius: 16px;
  padding: 12px 12px 10px;
}

.contact-info-item h3 {
  font-size: 14px;
  margin: 0 0 4px;
  color: #111827;
  font-weight: 600;
}

.contact-info-item p {
  font-size: 13px;
  margin: 0;
  font-weight: 500;
}

.contact-info-item a {
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 500;
}

.contact-info-item a:hover {
  text-decoration: underline;
}

.contact-info-note {
  font-size: 12px;
  color: #6b7280;
}

.contact-phone-label {
  font-size: 12px;
  color: #6b7280;
}

.contact-phone-value {
  font-size: 13px;
  font-weight: 500;
  color: #111827;
}

/* ===== RIGHT COLUMN (FORM) ===== */
.contact-form-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 22px 22px 20px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.contact-form-card h2 {
  font-size: 18px;
  margin: 0 0 4px;
}

.contact-form-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 16px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form-notice {
  display: none;
  margin: 0 0 10px 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 13px;
  line-height: 1.35;
}

.contact-form-notice.is-error {
  display: block;
  background: var(--main-white-pure-color);
  border-color: rgba(14, 54, 87, 0.2);
  color: #0e3657;
}

.contact-form-notice.is-success {
  display: block;
  background: #effcf3;
  border-color: #bbf7d0;
  color: #166534;
}

.contact-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-form-row-inline {
  align-items: center;
}

.contact-form-field {
  flex: 1 1 0;
  min-width: 0;
}

.contact-form-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #111827;
  margin-bottom: 4px;
}

.contact-form-field input,
.contact-form-field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  padding: 9px 11px;
  font-size: 13px;
  font-family: inherit;
  color: #111827;
  background: #f9fafb;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-weight: 500;
}

.contact-form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form-field input:focus,
.contact-form-field textarea:focus {
  outline: none;
  border-color: #4b6bff;
  box-shadow: 0 0 0 1px rgba(75, 107, 255, 0.35);
  background: #ffffff;
}

.contact-form-field.has-error input,
.contact-form-field.has-error textarea,
.contact-form-privacy.has-error .contact-checkbox {
  border-color: #ef4444;
}

.contact-form-privacy.has-error .contact-checkbox {
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff5f5;
}

.contact-field-error {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--main-white-pure-color);
  border: 1px solid rgba(14, 54, 87, 0.18);
  color: #0e3657;
  font-size: 12px;
  line-height: 1.15;
  letter-spacing: .01em;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  transform: translateY(-2px);
  opacity: 0;
  animation: contactErrIn .18s ease forwards;
  font-weight: 500;
}

.contact-field-error::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ff453a;
  box-shadow: 0 0 0 3px rgba(255, 69, 58, 0.1);
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes contactErrIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Checkbox */
.contact-checkbox {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #4b5563;
  cursor: pointer;
  font-weight: 500;
}

.contact-checkbox input[type="checkbox"] {
  margin-top: 2px;
  width: 14px;
  height: 14px;
}

/* Actions */
.contact-form-actions {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.contact-btn-primary {
  border: none;
  border-radius: 999px;
  padding: 9px 22px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: var(--main-primary-color);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.45);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.contact-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.5);
}

.contact-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.4);
  opacity: 0.95;
}

.contact-btn-primary.is-disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.contact-form.is-loading {
  pointer-events: none;
}

.contact-form.is-success {
  min-height: 210px;
  display: grid;
  align-items: center;
}

.contact-form .is-hidden-by-success {
  display: none !important;
}

.contact-form-success {
  width: 100%;
  text-align: center;
  padding: 10px 8px;
}

.contact-form-success__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0f172a;
}

.contact-form-success__text {
  font-size: 14px;
  line-height: 1.45;
  color: #4b5563;
  max-width: 420px;
  margin: 0 auto;
}

.contact-form-small {
  font-size: 12px;
  color: #6b7280;
}

/* ===== CHAT PREVIEW ===== */
.contact-chat-preview {
  margin-top: 32px;
}

.contact-chat-card {
  background: #e5ebff;
  border-radius: 24px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr);
  gap: 18px;
  align-items: center;
}

.contact-chat-text h2 {
  font-size: 16px;
  margin: 0 0 6px;
  color: #1e3a8a;
  font-weight: 600;
}

.contact-chat-text p {
  font-size: 13px;
  margin: 0 0 4px;
  color: #1e293b;
  font-weight: 500;
}

.contact-chat-note {
  font-size: 12px;
  color: #4b5563;
}

/* Chat placeholder bubble */
.contact-chat-placeholder {
  display: flex;
  justify-content: flex-end;
}

.contact-chat-bubble {
  background: #ffffff;
  border-radius: 999px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.contact-chat-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #4b6bff;
  animation: contact-chat-pulse 1.2s infinite ease-in-out;
}

.contact-chat-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.contact-chat-dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes contact-chat-pulse {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  40% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .contact-chat-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-chat-placeholder {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .contact-hero-card {
    border-radius: 22px;
    padding: 24px 18px;
  }

  .contact-hero-title {
    font-size: 22px;
  }

  .contact-info-card,
  .contact-form-card {
    border-radius: 18px;
    padding: 18px 16px;
  }

  .contact-chat-card {
    border-radius: 18px;
    padding: 16px 14px;
  }

  .contact-hero-subtitle {
    font-size: 13px;
  }
}
