/* Contact page layout */
.contact-page {
  max-width: 1400px;
  margin: 96px auto;
  padding: 0 16px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.contact-title {
  margin: 0 0 16px;
}

/* Left info column */
.contact-info {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px;
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.info-card {
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 18px;
  background: #fff;
}
.info-icon {
  color: var(--primary);
  margin-bottom: 8px;
}
.info-icon svg {
  width: 28px;
  height: 28px;
}
.info-card h3 {
  margin: 6px 0 6px;
}
.info-sub {
  margin: 0;
  color: var(--muted);
}

/* Right form column */
.contact-form {
  background: #ececf1;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.input, .textarea {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  padding: 10px 12px;
}
.input i, .textarea i { display: none; }
.input svg {
  width: 18px; height: 18px; color: var(--muted);
}
.input input, .textarea textarea {
  border: none;
  outline: none;
  font: inherit;
  background: transparent;
}
/* Phone group */
.phone-input .phone-group {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  width: 100%;
}
.country-select {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  padding: 8px 10px;
  min-width: 170px;
  font: inherit;
}
.input.error .country-select { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,0.1); }

.textarea {
  grid-template-columns: 1fr;
  padding: 0;
  background: transparent;
  border: none;
  margin: 6px 0 12px;
}
.textarea textarea {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  padding: 12px;
  resize: vertical;
}
.captcha {
  margin: 8px 0 16px;
}
.captcha .input { grid-template-columns: 1fr; background: #fff; }
.captcha-preview {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px dashed rgba(0,0,0,0.2);
  margin: 8px 0;
  min-height: 40px;
  line-height: 40px;
  user-select: none;
}
.captcha-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: 8px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  vertical-align: middle;
}
.captcha-refresh:hover {
  background: var(--primary-dark);
  transform: rotate(90deg);
}
/* Disabled/cooldown state */
.captcha-refresh.is-disabled,
.captcha-refresh:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}
.captcha-refresh.is-disabled:hover,
.captcha-refresh:disabled:hover {
  background: #ccc;
  transform: none;
}
.captcha-refresh svg {
  width: 18px;
  height: 18px;
}
.captcha-help {
  color: var(--muted);
  margin: 0;
  font-size: 0.85rem;
}
.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.submit-btn svg { width: 18px; height: 18px; }

/* Error states */
.input.error { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,0.1); }
.input input.is-error, .textarea textarea.is-error { border-color: #dc2626; }
.error-text { color: #dc2626; font-size: 0.85rem; margin-top: 6px; }

@media (max-width: 992px) {
  .contact-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* Popup notify (tone tím) */
.notify-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31,27,44,0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity .16s ease;
}
.notify-overlay.hide { opacity: 0; }
.notify-box {
  width: min(92vw, 420px);
  background: #ffffff;
  border: 1px solid #e2d5f6; /* viền tím nhạt */
  border-top: 6px solid var(--primary);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(122,80,154,0.20);
  padding: 18px 20px 14px;
  color: var(--text);
}
.notify-box.success { border-top-color: var(--primary); }
.notify-box.error { border-top-color: #b94b6a; }
.notify-title { font-weight: 800; font-size: 1.05rem; margin-bottom: 6px; color: var(--primary); }
.notify-message { color: var(--text); line-height: 1.6; }
.notify-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.notify-actions .notify-ok {
  background: var(--primary);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(122,80,154,0.25);
}
.notify-actions .notify-ok:hover { background: #6a4488; }

