/* ==========================================================================
   CONTACT PAGE – contact-page.css
   Premium, elegant contact page styling for Kế Toán Diệu Tâm
   ========================================================================== */

.contact-page {
  background: #fffdf8;
}

.contact-page main {
  overflow-x: clip;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.contact-page .contact-hero {
  position: relative;
  background: linear-gradient(180deg, #fdfbf7 0%, #faf8f2 100%);
  padding: 40px 0 72px;
  overflow: hidden;
}

.contact-page .contact-hero-bg-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.contact-page .contact-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}

.contact-page .contact-hero-orb--1 {
  width: 400px;
  height: 400px;
  top: -120px;
  right: -60px;
  background: radial-gradient(circle, rgba(182,141,64,0.08) 0%, transparent 70%);
}

.contact-page .contact-hero-orb--2 {
  width: 300px;
  height: 300px;
  bottom: -80px;
  left: -80px;
  background: radial-gradient(circle, rgba(106,90,205,0.04) 0%, transparent 70%);
}

/* Breadcrumbs */
.contact-page .contact-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  font-size: 14px;
  font-weight: 500;
  color: #7a6a58;
}

.contact-page .contact-breadcrumbs a {
  color: inherit;
}

.contact-page .contact-breadcrumbs a:hover {
  color: #6a4421;
}

.contact-page .contact-breadcrumbs i {
  color: #9a8b79;
}

/* Hero content */
.contact-page .contact-hero-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.contact-page .contact-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.contact-page .contact-hero-eyebrow i {
  color: var(--gold-dark);
}

.contact-page .contact-hero-title {
  font-family: var(--font-serif);
  font-size: 52px;
  line-height: 1.18;
  color: #111827;
  margin-bottom: 22px;
}

.contact-page .contact-hero-title .italic-accent {
  color: var(--gold-dark);
  font-style: italic;
}

.contact-page .contact-hero-lead {
  font-size: 17px;
  line-height: 1.75;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   CONTACT INFO CARDS
   ========================================================================== */
.contact-page .contact-info-section {
  padding: 0 0 80px;
  margin-top: -20px;
  position: relative;
  z-index: 2;
}

.contact-page .contact-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.contact-page .contact-info-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 20px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

.contact-page .contact-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), #D4AF37);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-page .contact-info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(182,141,64,0.1);
  border-color: rgba(182,141,64,0.15);
}

.contact-page .contact-info-card:hover::before {
  opacity: 1;
}

.contact-page .contact-info-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #ffffff;
  margin: 0 auto 18px;
  transition: transform 0.3s ease;
}

.contact-page .contact-info-card:hover .contact-info-icon {
  transform: scale(1.1);
}

.contact-page .contact-info-icon--phone {
  background: linear-gradient(135deg, #0a7e42, #14b86a);
  box-shadow: 0 8px 20px rgba(20,184,106,0.2);
}

.contact-page .contact-info-icon--email {
  background: linear-gradient(135deg, #1e64c8, #3b82f6);
  box-shadow: 0 8px 20px rgba(59,130,246,0.2);
}

.contact-page .contact-info-icon--location {
  background: linear-gradient(135deg, #a84112, #e86321);
  box-shadow: 0 8px 20px rgba(232,99,33,0.2);
}

.contact-page .contact-info-icon--clock {
  background: linear-gradient(135deg, #6A5ACD, #8B5CF6);
  box-shadow: 0 8px 20px rgba(139,92,246,0.2);
}

.contact-page .contact-info-card h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.contact-page .contact-info-card p {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: #2C1A0B;
  line-height: 1.5;
}

.contact-page .contact-info-card p a {
  color: inherit;
  transition: color 0.3s ease;
}

.contact-page .contact-info-card p a:hover {
  color: var(--gold-dark);
}

.contact-page .contact-info-note {
  font-size: 12.5px;
  color: #9ca3af;
  font-weight: 500;
}

/* ==========================================================================
   MAIN FORM + SIDEBAR GRID
   ========================================================================== */
.contact-page .contact-main-section {
  background: #f9fafb;
}

.contact-page .contact-main-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

/* Form Card */
.contact-page .contact-form-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 40px 36px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.05);
}

.contact-page .contact-form-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-page .contact-form-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(182,141,64,0.08);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-page .contact-form-card-header h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: #2C1A0B;
  margin-bottom: 4px;
  line-height: 1.3;
}

.contact-page .contact-form-card-header .form-desc {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 0;
}

/* Form rows */
.contact-page .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-page .form-group .required {
  color: #dc2626;
  font-weight: 400;
}

.contact-page .form-group .optional {
  color: #9ca3af;
  font-weight: 400;
  font-size: 12px;
}

/* Textarea styling */
.contact-page .textarea-wrapper {
  position: relative;
}

.contact-page .textarea-wrapper > i {
  position: absolute;
  left: 14px;
  top: 14px;
  transform: none;
  color: var(--dark);
  font-size: 13px;
  pointer-events: none;
  opacity: 0.7;
}

.contact-page .textarea-wrapper textarea {
  width: 100%;
  min-height: 110px;
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 12px 16px 12px 40px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--dark);
  transition: 0.3s;
  outline: none;
  resize: vertical;
  line-height: 1.6;
}

.contact-page .textarea-wrapper textarea:focus {
  border-color: var(--gold-dark);
  background: #FFF;
  box-shadow: 0 0 0 3px rgba(182,141,64,0.1);
}

.contact-page .textarea-wrapper textarea::placeholder {
  color: #A0AAB5;
  font-weight: 400;
}

/* Form note */
.contact-page .contact-form-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 20px;
  padding: 12px 16px;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #6b7280;
}

.contact-page .contact-form-note i {
  color: var(--gold-dark);
  margin-top: 2px;
  flex-shrink: 0;
}

/* Contact form specific override */
.contact-page .contact-form {
  margin: 0;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.contact-page .contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Quick Connect */
.contact-page .contact-quick-connect {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}

.contact-page .contact-quick-connect h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.contact-page .contact-quick-connect > p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 20px;
}

.contact-page .contact-quick-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-page .contact-quick-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  text-decoration: none;
}

.contact-page .contact-quick-btn > .fa-arrow-right {
  margin-left: auto;
  font-size: 12px;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.3s ease;
}

.contact-page .contact-quick-btn:hover > .fa-arrow-right {
  opacity: 1;
  transform: translateX(0);
}

.contact-page .contact-quick-btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #ffffff;
  flex-shrink: 0;
}

.contact-page .contact-quick-btn-text .label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 2px;
}

.contact-page .contact-quick-btn-text .desc {
  display: block;
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
}

/* Zalo button */
.contact-page .contact-quick-btn--zalo {
  background: rgba(0,104,255,0.04);
}

.contact-page .contact-quick-btn--zalo .contact-quick-btn-icon {
  background: #0068FF;
  box-shadow: 0 4px 12px rgba(0,104,255,0.2);
}

.contact-page .contact-quick-btn--zalo:hover {
  background: rgba(0,104,255,0.08);
  border-color: rgba(0,104,255,0.15);
  transform: translateX(4px);
}

.contact-page .contact-quick-btn--zalo > .fa-arrow-right {
  color: #0068FF;
}

/* Phone button */
.contact-page .contact-quick-btn--phone {
  background: rgba(20,184,106,0.04);
}

.contact-page .contact-quick-btn--phone .contact-quick-btn-icon {
  background: linear-gradient(135deg, #0a7e42, #14b86a);
  box-shadow: 0 4px 12px rgba(20,184,106,0.2);
}

.contact-page .contact-quick-btn--phone:hover {
  background: rgba(20,184,106,0.08);
  border-color: rgba(20,184,106,0.15);
  transform: translateX(4px);
}

.contact-page .contact-quick-btn--phone > .fa-arrow-right {
  color: #0a7e42;
}

/* Email button */
.contact-page .contact-quick-btn--email {
  background: rgba(59,130,246,0.04);
}

.contact-page .contact-quick-btn--email .contact-quick-btn-icon {
  background: linear-gradient(135deg, #1e64c8, #3b82f6);
  box-shadow: 0 4px 12px rgba(59,130,246,0.2);
}

.contact-page .contact-quick-btn--email:hover {
  background: rgba(59,130,246,0.08);
  border-color: rgba(59,130,246,0.15);
  transform: translateX(4px);
}

.contact-page .contact-quick-btn--email > .fa-arrow-right {
  color: #1e64c8;
}

/* Social Card */
.contact-page .contact-social-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}

.contact-page .contact-social-card h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
}

.contact-page .contact-social-links {
  display: flex;
  gap: 12px;
}

.contact-page .contact-social-link {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #ffffff;
  transition: all 0.3s ease;
}

.contact-page .contact-social-link:hover {
  transform: translateY(-3px);
}

.contact-page .contact-social-link--fb {
  background: #1877F2;
  box-shadow: 0 4px 12px rgba(24,119,242,0.2);
}

.contact-page .contact-social-link--fb:hover {
  box-shadow: 0 8px 20px rgba(24,119,242,0.3);
  color: #fff;
}

.contact-page .contact-social-link--zalo {
  background: #0068FF;
  box-shadow: 0 4px 12px rgba(0,104,255,0.2);
}

.contact-page .contact-social-link--zalo:hover {
  box-shadow: 0 8px 20px rgba(0,104,255,0.3);
  color: #fff;
}

/* Commitment Card */
.contact-page .contact-commitment-card {
  background: linear-gradient(135deg, #fdfbf7, #faf6eb);
  border: 1px solid rgba(182,141,64,0.15);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
}

.contact-page .contact-commitment-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(182,141,64,0.1);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 16px;
}

.contact-page .contact-commitment-card h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #2C1A0B;
  margin-bottom: 10px;
}

.contact-page .contact-commitment-card > p {
  font-size: 13.5px;
  line-height: 1.7;
  color: #6b7280;
  margin-bottom: 16px;
}

.contact-page .contact-commitment-card strong {
  color: #2C1A0B;
}

.contact-page .contact-commitment-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(182,141,64,0.08);
  border: 1px solid rgba(182,141,64,0.15);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 0.02em;
}

.contact-page .contact-commitment-badge i {
  color: #16a34a;
  font-size: 13px;
}

/* ==========================================================================
   GOOGLE MAPS SECTION
   ========================================================================== */
.contact-page .contact-map-section {
  padding: 0 0 100px;
  background: #f9fafb;
}

.contact-page .contact-map-header {
  text-align: center;
  margin-bottom: 32px;
}

.contact-page .contact-map-header h2 {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  color: #2C1A0B;
  margin-bottom: 8px;
}

.contact-page .contact-map-header p {
  font-size: 15px;
  color: #6b7280;
}

.contact-page .contact-map-wrapper {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
}

.contact-page .contact-map-wrapper iframe {
  display: block;
  width: 100%;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.contact-page .contact-faq-section {
  background: #ffffff;
}

.contact-page .contact-faq-header {
  text-align: center;
  margin-bottom: 48px;
}

.contact-page .contact-faq-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(182,141,64,0.06);
  border: 1px solid rgba(182,141,64,0.15);
  border-radius: 100px;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.contact-page .contact-faq-eyebrow i {
  font-size: 14px;
}

.contact-page .contact-faq-header h2 {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  color: #2C1A0B;
  margin-bottom: 14px;
}

.contact-page .contact-faq-header > p {
  font-size: 16px;
  line-height: 1.7;
  color: #6b7280;
  max-width: 560px;
  margin: 0 auto;
}

/* FAQ List */
.contact-page .contact-faq-list {
  max-width: 780px;
  margin: 0 auto;
}

.contact-page .contact-faq-item {
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #ffffff;
  transition: all 0.3s ease;
}

.contact-page .contact-faq-item:hover {
  border-color: rgba(182,141,64,0.2);
}

.contact-page .contact-faq-item.is-open {
  border-color: rgba(182,141,64,0.25);
  box-shadow: 0 8px 24px rgba(182,141,64,0.08);
}

.contact-page .contact-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: #2C1A0B;
  transition: color 0.3s ease;
}

.contact-page .contact-faq-question:hover {
  color: var(--gold-dark);
}

.contact-page .contact-faq-question i {
  font-size: 12px;
  color: #9ca3af;
  transition: transform 0.35s ease, color 0.3s ease;
  flex-shrink: 0;
}

.contact-page .contact-faq-item.is-open .contact-faq-question i {
  transform: rotate(180deg);
  color: var(--gold-dark);
}

.contact-page .contact-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.23, 1, 0.32, 1), padding 0.3s ease;
  padding: 0 24px;
}

.contact-page .contact-faq-item.is-open .contact-faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

.contact-page .contact-faq-answer p {
  font-size: 14.5px;
  line-height: 1.75;
  color: #555;
  margin: 0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1200px) {
  .contact-page .contact-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .contact-page .contact-hero-title {
    font-size: 42px;
  }

  .contact-page .contact-main-grid {
    grid-template-columns: 1fr;
  }

  .contact-page .contact-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .contact-page .contact-commitment-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .contact-page .contact-hero {
    margin-top: var(--mobile-header-offset, 63px);
    padding: 24px 0 40px;
  }

  .contact-page .contact-breadcrumbs {
    margin-bottom: 18px;
    font-size: 13px;
  }

  .contact-page .contact-hero-eyebrow {
    font-size: 11px;
    padding: 7px 14px;
    margin-bottom: 18px;
  }

  .contact-page .contact-hero-title {
    font-size: 32px;
    margin-bottom: 16px;
  }

  .contact-page .contact-hero-lead {
    font-size: 15px;
  }

  .contact-page .contact-info-section {
    padding: 0 0 48px;
    margin-top: -10px;
  }

  .contact-page .contact-info-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .contact-page .contact-info-card {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .contact-page .contact-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 18px;
    margin-bottom: 12px;
  }

  .contact-page .contact-info-card h3 {
    font-size: 14px;
  }

  .contact-page .contact-info-card p {
    font-size: 13px;
  }

  .contact-page .contact-info-note {
    font-size: 11px;
  }

  .contact-page .contact-form-card {
    padding: 28px 20px;
    border-radius: 20px;
  }

  .contact-page .contact-form-card-header {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
  }

  .contact-page .contact-form-card-header h2 {
    font-size: 22px;
  }

  .contact-page .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-page .contact-sidebar {
    grid-template-columns: 1fr;
  }

  .contact-page .contact-quick-connect {
    padding: 24px 20px;
  }

  .contact-page .contact-map-section {
    padding: 0 0 60px;
  }

  .contact-page .contact-map-header h2 {
    font-size: 24px;
  }

  .contact-page .contact-map-wrapper {
    border-radius: 16px;
  }

  .contact-page .contact-map-wrapper iframe {
    height: 280px;
  }

  .contact-page .contact-faq-header h2 {
    font-size: 28px;
  }

  .contact-page .contact-faq-question {
    padding: 16px 18px;
    font-size: 14px;
  }

  .contact-page .contact-faq-answer {
    padding: 0 18px;
  }

  .contact-page .contact-faq-item.is-open .contact-faq-answer {
    padding: 0 18px 16px;
  }
}
