/* Hơ Mông — Auxiliary pages (Contact, Policies, 404) */

.aux-page {
  background: var(--white);
  color: var(--purple-950);
}

.aux-page .account-main {
  padding: 0;
  background: var(--white);
}

.aux-hero {
  text-align: center;
  padding: 120px 24px 48px;
  position: relative;
}

.aux-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(75, 31, 94, 0.04), transparent 55%);
  pointer-events: none;
}

.aux-hero__eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.aux-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  color: var(--purple-950);
  margin-bottom: 12px;
}

.aux-hero__sub {
  max-width: 560px;
  margin: 0 auto;
  color: rgba(75, 31, 94, 0.65);
  font-size: 1rem;
  line-height: 1.65;
}

.aux-section {
  padding: 48px 0 80px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  align-items: stretch;
}

.contact-info {
  padding: 32px;
  background: #ffffff;
  border: 1px solid rgba(75, 31, 94, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.contact-info__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--purple-950);
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(75, 31, 94, 0.06);
}

.contact-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.contact-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(75, 31, 94, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-800);
  font-size: 1.125rem;
  flex-shrink: 0;
}

.contact-item__label {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  margin-bottom: 4px;
}

.contact-item__value {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(75, 31, 94, 0.85);
}

.contact-item__value a {
  color: var(--purple-800);
  transition: color 0.2s;
}

.contact-item__value a:hover { color: var(--purple-950); }

.contact-form-wrap {
  padding: 32px;
  background: #ffffff;
  border: 1px solid rgba(75, 31, 94, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.contact-form__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--purple-950);
  margin-bottom: 24px;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 500px) {
  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.aux-field {
  margin-bottom: 20px;
}

.aux-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: rgba(75, 31, 94, 0.8);
}

.aux-field input,
.aux-field textarea {
  width: 100%;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid rgba(75, 31, 94, 0.15);
  border-radius: 10px;
  color: var(--purple-950);
  font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.aux-field input::placeholder,
.aux-field textarea::placeholder {
  color: rgba(75, 31, 94, 0.4);
}

.aux-field input:focus,
.aux-field textarea:focus {
  outline: none;
  border-color: var(--purple-800);
  box-shadow: 0 0 0 3px rgba(111, 60, 140, 0.12);
}

.aux-field textarea {
  min-height: 140px;
  resize: vertical;
}

.aux-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 28px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(198, 40, 57, 0.25);
  transition: transform 0.35s, box-shadow 0.35s;
}

.aux-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(198, 40, 57, 0.35);
}

/* Policies */
.policies-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px 48px;
  align-items: start;
}

.policies-tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.policies-tab {
  padding: 14px 18px;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(75, 31, 94, 0.7);
  background: rgba(75, 31, 94, 0.04);
  border: 1px solid rgba(75, 31, 94, 0.08);
  border-radius: 10px;
  transition: all 0.25s;
}

.policies-tab:hover {
  color: var(--purple-950);
  border-color: rgba(75, 31, 94, 0.25);
}

.policies-tab--active {
  background: rgba(75, 31, 94, 0.06);
  color: var(--purple-950);
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.policies-content {
  padding: 36px;
  background: #ffffff;
  border: 1px solid rgba(75, 31, 94, 0.08);
  border-radius: var(--radius-lg);
  min-height: 420px;
  box-shadow: var(--shadow);
}

.policies-panel {
  display: none;
  animation: policy-fade 0.35s ease;
}

.policies-panel--active { display: block; }

@keyframes policy-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.policies-panel h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--purple-950);
  margin-bottom: 8px;
}

.policies-panel__updated {
  font-size: 0.75rem;
  color: rgba(75, 31, 94, 0.5);
  margin-bottom: 24px;
}

.policies-panel p,
.policies-panel li {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: rgba(75, 31, 94, 0.8);
  margin-bottom: 16px;
}

.policies-panel ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.policies-panel h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--red);
  margin: 24px 0 12px;
}

.policies-mobile-tabs {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

/* 404 */
.error-page {
  min-height: 100vh;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
}

.error-page::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(75, 31, 94, 0.04), transparent 70%);
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.error-page__logo {
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.error-page__logo img { height: 64px; width: auto; margin: 0 auto; }

.error-page__graphic {
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}

.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--gold) 0%, var(--red) 50%, var(--purple-800) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 8px 24px rgba(75, 31, 94, 0.15));
}

.error-page__icon {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 16px;
  animation: error-float 3s ease-in-out infinite;
}

@keyframes error-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.error-page__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  color: var(--purple-950);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.error-page__desc {
  max-width: 480px;
  color: rgba(75, 31, 94, 0.6);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.error-page__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(198, 40, 57, 0.25);
  transition: transform 0.35s, box-shadow 0.35s;
  position: relative;
  z-index: 1;
}

.error-page__cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(198, 40, 57, 0.35);
}

.error-page__lang {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.error-page__lang button {
  padding: 6px 12px;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: 999px;
  color: rgba(75, 31, 94, 0.6);
  border: 1px solid rgba(75, 31, 94, 0.15);
  transition: all 0.2s;
  background: transparent;
}

.error-page__lang button.active,
.error-page__lang button:hover {
  color: var(--purple-950);
  border-color: var(--gold);
  background: rgba(75, 31, 94, 0.04);
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .policies-layout { grid-template-columns: 1fr; }
  .policies-tabs { display: none; }
  .policies-mobile-tabs { display: flex; }
  .policies-content { padding: 24px; }
}

@media (max-width: 600px) {
  .aux-hero { padding-top: 100px; }
  .contact-info, .contact-form-wrap { padding: 24px; }
  .map-container { padding: 24px; }
  .map-iframe-wrapper { min-height: 280px; }
  .map-iframe-wrapper iframe { min-height: 280px; }
}

.contact-left-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.map-container {
  grid-column: 1 / -1;
  background: #ffffff;
  border: 1px solid rgba(75, 31, 94, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px;
}

.map-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--purple-950);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.map-title i {
  color: var(--red);
}

.map-iframe-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(75, 31, 94, 0.1);
  box-shadow: 0 2px 8px rgba(75, 31, 94, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-iframe-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(75, 31, 94, 0.12);
}

.map-iframe-wrapper iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: none;
}
