/* ============================================================
   CONTACT PAGE — Ambav
   ============================================================ */

/* ── CONTACT LAYOUT ── */
.contact-section {
  background: var(--ivory);
  padding: var(--sec-v) 0;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: start;
}

/* ── FORM ANCHOR OFFSET ── */
#contact-form {
  scroll-margin-top: 220px;
}

/* ── FORM ── */
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--gold);
  border-radius: 8px;
  padding: 48px;
  box-shadow: 0 8px 40px rgba(10,35,66,0.08);
}

.contact-form-wrap h2 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.contact-form-wrap > p {
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--ash);
  margin-bottom: 40px;
  line-height: 1.65;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-light);
}

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

.contact-form .form-group.mb-3 {
  margin-bottom: 0 !important;
}

.contact-form #enquiry,
.contact-form #products,
.contact-form #message {
  margin-top: 0;
}

.contact-form .form-group:has(#enquiry),
.contact-form .form-group:has(#products),
.contact-form .form-group:has(#message) {
  margin-top: 12px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .form-group label { white-space: normal; }
  .form-hint { display: none; }
}

.required { color: var(--gold); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  background: linear-gradient(to bottom, var(--white) 0%, var(--ivory) 100%);
  border: 1px solid rgba(10,35,66,0.12);
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  outline: none;
  border-radius: 6px;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--pearl);
  font-weight: 300;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  background: var(--white);
  border-color: rgba(0,151,167,0.3);
  border-bottom-color: var(--gold);
  border-left: 3px solid var(--gold);
  box-shadow: 0 2px 0 0 var(--gold), 0 4px 16px rgba(0,151,167,0.08);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-bottom-color: var(--color-error);
  box-shadow: 0 1px 0 0 var(--color-error);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23767676' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

.form-group textarea {
  resize: vertical;
  min-height: 160px;
}

.error-msg {
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--color-error);
  min-height: 18px;
}

/* Multi-select */
.form-select-multi {
  min-height: 130px;
  padding: 8px 0;
  background-image: none !important;
  cursor: pointer;
}

.form-select-multi option {
  padding: 10px 20px;
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--ink);
  border-radius: 0;
}

.form-select-multi option:checked {
  background: var(--gold);
  color: var(--white);
  font-weight: 500;
}

.form-hint {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--ash);
  letter-spacing: 0;
  text-transform: none;
  margin-left: 8px;
  opacity: 0.75;
}

/* Bootstrap covers this — migrated to .form-check / .form-check-label */
/* .checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--ink);
  cursor: pointer;
} */

/* accent-color is brand-specific — keep for .form-check-input */
.form-check-input {
  accent-color: var(--gold);
}

/* .checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  padding: 0;
  accent-color: var(--gold);
  cursor: pointer;
  border: none;
  box-shadow: none;
} */

/* Submit row */
.form-submit-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  margin-top: 8px;
}

.form-submit-row .btn-gold {
  width: 100%;
  padding: 18px 36px;
  font-size: 1rem;
  letter-spacing: 0.14em;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-rich, #c8860a) 100%);
  box-shadow: 0 4px 20px rgba(0,151,167,0.3);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-submit-row .btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,151,167,0.45);
  background: linear-gradient(135deg, var(--gold-rich, #c8860a) 0%, var(--gold) 100%);
}

.form-submit-row .btn-gold:disabled,
.form-submit-row .btn-gold[data-sending] {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-note {
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--ash);
}

.form-note::before {
  content: '✓ ';
  color: var(--gold);
  font-weight: 500;
}

/* Success */
.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  background: var(--color-success-bg);
  border: 1px solid var(--color-success-border);
  padding: 16px 20px;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--color-success-text);
}

.form-success.visible { display: flex; }

.form-success-icon {
  width: 28px; height: 28px;
  background: var(--color-success-text);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ── CONTACT INFO ── */
.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
}

.info-card {
  background: var(--white);
  padding: 36px;
}

.info-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.info-item:last-child { margin-bottom: 0; }

.info-item-icon {
  width: 36px; height: 36px;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 2px;
}

.info-item strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 4px;
}

.info-item p, .info-item a {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--ash);
  line-height: 1.6;
  margin: 0;
}

.info-item a:hover { color: var(--gold); }

/* Regional offices */
.offices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.office-item strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}

.office-item p {
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--ash);
  line-height: 1.55;
  margin: 0;
}

/* Dealer card */
.dealer-card {
  background: var(--ocean);
  padding: 36px;
}

.dealer-card h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--ivory);
  margin-bottom: 12px;
}

.dealer-card p {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-dark-muted);
  margin-bottom: 24px;
  line-height: 1.65;
}

/* ── MAP ── */
.map-section {
  background: var(--cream);
  padding: 0;
}

.map-wrap {
  height: 420px;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.map-address-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  background: var(--white);
  border-top: 3px solid var(--gold);
  box-shadow: 0 -2px 12px rgba(10,35,66,0.06);
}

.map-address-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.map-address-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.map-address-text strong {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
}

.map-address-text span {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--ash);
}

@media (max-width: 600px) {
  .map-address-bar { flex-direction: column; align-items: flex-start; padding: 20px 24px; gap: 12px; }
  .map-address-bar .btn { width: 100%; text-align: center; }
}

.map-pin-group strong {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--ink);
}

.map-pin-group p {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--ash);
  max-width: 320px;
}

.map-pin-group a {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  margin-top: 8px;
  transition: color var(--t-fast);
}

.map-pin-group a:hover { color: var(--gold-dark); }

/* ── DIRECTIONS BUTTON ── */
.map-directions-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--ivory);
  padding: 10px 18px 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.1);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}

.map-directions-btn:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184,134,11,0.4);
  border-color: transparent;
}

.map-directions-btn-icon {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.map-directions-btn:hover .map-directions-btn-icon {
  background: rgba(255,255,255,0.2);
}

.map-directions-btn-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.map-directions-btn-label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.map-directions-btn-sub {
  font-size: 0.75rem;
  font-weight: 300;
  opacity: 0.65;
}

@media (max-width: 600px) {
  .map-directions-btn { width: 100%; justify-content: center; }
}

/* ── CONTACT INFO PREMIUM CARD ── */
.info-card-premium {
  background: var(--ocean);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(10,35,66,0.18);
}

.info-card-header {
  padding: 36px 36px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.info-card-header h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ivory);
  margin: 8px 0 10px;
  letter-spacing: -0.01em;
}

.info-card-header p {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-dark-muted, rgba(255,255,255,0.55));
  line-height: 1.65;
  margin: 0;
}

.info-card-body {
  padding: 8px 0;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 36px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--t-fast);
}

.info-row:last-child { border-bottom: none; }
.info-row:hover { background: rgba(255,255,255,0.04); }

.info-row-icon {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.info-row strong {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 5px;
}

.info-row span {
  display: block;
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
}

.info-row a {
  color: rgba(255,255,255,0.82);
  transition: color var(--t-fast);
}

.info-row a:hover { color: var(--gold); }

.info-row-closed {
  font-size: 0.8125rem !important;
  color: rgba(255,255,255,0.4) !important;
  margin-top: 2px;
}


/* ── CALL BAR ── */
.call-bar {
  background: var(--ink);
  padding: 20px 0;
  border-bottom: 3px solid var(--gold);
}

.call-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.call-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.call-bar-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.call-bar-label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ivory);
  letter-spacing: 0.01em;
}

.call-bar-sub {
  display: block;
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--text-dark-muted, rgba(255,255,255,0.55));
  margin-top: 2px;
}

.call-bar-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-rich, #c8860a) 100%);
  color: var(--white);
  padding: 14px 24px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(184,134,11,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}

.call-bar-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(184,134,11,0.55);
  color: var(--white);
}

.call-bar-btn-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.call-bar-btn-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.call-bar-btn-cta {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

.call-bar-btn-num {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

@media (max-width: 600px) {
  .call-bar-inner { flex-direction: column; align-items: flex-start; }
  .call-bar-btn { width: 100%; justify-content: center; }
}

/* ── FAQ ── */
.faq-section {
  background: var(--ivory);
  padding: var(--sec-v) 0;
}

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

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
  transition: color var(--t-fast);
}

.faq-q::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.25s;
}

.faq-item.open .faq-q { color: var(--gold); }
.faq-item.open .faq-q::after { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
}

.faq-item.open .faq-a {
  max-height: 200px;
  padding: 0 24px 20px;
}

.faq-a p {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--ash);
  line-height: 1.7;
  margin: 0;
}

.faq-a a { color: var(--gold); }
.faq-a a:hover { text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .contact-inner { grid-template-columns: 1fr; gap: 56px; }
  .contact-info-col { display: grid; grid-template-columns: 1fr 1fr; }
  .dealer-card { grid-column: span 2; }
}

@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-info-col { grid-template-columns: 1fr; }
  .dealer-card { grid-column: span 1; }
  .offices-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  /* Call bar stacks vertically */
  .call-bar-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .call-bar-btn { width: 100%; justify-content: center; }

  /* Form wrap — reduce padding so it doesn't overflow */
  .contact-form-wrap { padding: 24px 16px; }

  /* Contact info card — tighter padding on small screens */
  .info-card { padding: 20px 16px; }
  .info-card-header { padding: 24px 20px 20px; }
  .info-row { padding: 16px 20px; }
  .info-card-body { padding: 4px 0; }

  /* Map address bar stacks */
  .map-address-bar { flex-direction: column; align-items: flex-start; padding: 20px 16px; gap: 12px; }
  .map-directions-btn { width: 100%; justify-content: center; }
  .map-wrap { margin-left: 0; margin-right: 0; }

  /* FAQ tighter padding */
  .faq-q { padding: 16px 18px; font-size: 0.875rem; }
  .faq-item.open .faq-a { padding: 0 18px 16px; }

  /* Form wrap tighter */
  .contact-form-wrap { padding: 28px 20px; }
}
