/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-section {
  padding: var(--space-3xl) 0;
  background: var(--surface-alt);
  min-height: calc(100vh - var(--header-h));
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  max-width: 1000px;
  margin-inline: auto;
}
@media (max-width: 768px) {
  .contact-card { grid-template-columns: 1fr; }
}

/* ---- LEFT PANEL ---- */
.contact-left {
  background: var(--grad-blue);
  padding: var(--space-2xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  position: relative;
  overflow: hidden;
}
.contact-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.contact-logo {
  height: 52px;
  width: auto;
  background: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  box-sizing: content-box;
  align-self: flex-start;
}
.contact-tagline {
  font-size: 1.3rem;
  font-weight: var(--fw-bold);
  color: white;
  line-height: 1.4;
}
.contact-tagline-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.4rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  line-height: 1.6;
}
.contact-info-icon {
  width: 36px; height: 36px;
  min-width: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.contact-info-label {
  font-size: 0.7rem;
  font-weight: var(--fw-semi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-sky);
  display: block;
  margin-bottom: 0.2rem;
}
.contact-info-value a {
  color: rgba(255,255,255,0.9);
  transition: color var(--dur-fast);
}
.contact-info-value a:hover { color: var(--clr-sky); }

.contact-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 200px;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.1);
}
.contact-map iframe {
  width: 100%; height: 100%;
  border: none;
  display: block;
  filter: invert(0.9) hue-rotate(185deg) brightness(0.85);
}

/* ---- RIGHT PANEL ---- */
.contact-right {
  background: var(--surface);
  padding: var(--space-2xl) var(--space-xl);
  display: flex;
  flex-direction: column;
}

.contact-right h2 {
  font-size: 1.6rem;
  font-weight: var(--fw-bold);
  color: var(--heading);
  margin-bottom: var(--space-xs);
}
.contact-right .subtext {
  font-size: 0.9rem;
  color: var(--clr-text-mute);
  margin-bottom: var(--space-xl);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  flex: 1;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-label {
  font-size: 0.82rem;
  font-weight: var(--fw-semi);
  color: var(--clr-text);
}
.form-label .req { color: #E53935; margin-left: 2px; }

.form-input,
.form-textarea {
  padding: 0.75em 1em;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--clr-text);
  background: var(--surface-alt);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
  width: 100%;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--clr-bright);
  box-shadow: 0 0 0 3px rgba(47,128,208,0.12);
  background: var(--surface);
  outline: none;
}
.form-input.invalid,
.form-textarea.invalid {
  border-color: #E53935;
  box-shadow: 0 0 0 3px rgba(229,57,53,0.1);
}

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

.form-error {
  font-size: 0.75rem;
  color: #E53935;
  display: none;
}
.form-error.visible { display: block; }

.form-actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.btn-reset {
  background: var(--clr-grey);
  color: var(--clr-text);
  border-radius: var(--radius-full);
  padding: 0.72em 1.6em;
  font-weight: var(--fw-semi);
  font-size: 0.95rem;
  transition: background var(--dur-fast);
}
.btn-reset:hover { background: var(--clr-sky-light); }

/* Success state */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  text-align: center;
  flex: 1;
  animation: fadeIn 0.5s var(--ease-out);
}
.form-success.visible { display: flex; }
.success-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(47,128,208,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  animation: float 3s ease-in-out infinite;
}
.form-success h3 {
  font-size: 1.4rem;
  font-weight: var(--fw-bold);
  color: var(--heading);
}
.form-success p {
  color: var(--clr-text-mute);
  font-size: 0.9rem;
}

/* ---- thank-you panel extras ---- */
.success-meta {
  width: 100%;
  max-width: 420px;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  background: rgba(47,128,208,0.08);
  border: 1px solid rgba(47,128,208,0.2);
  text-align: left;
  font-size: 0.88rem;
  color: var(--heading);
}
.success-meta:empty { display: none; }
.success-meta dt { font-size: 0.7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--clr-royal, #1E4FA3); margin-top: .5rem; }
.success-meta dt:first-child { margin-top: 0; }
.success-meta dd { margin: .1rem 0 0; word-break: break-word; }
.success-urgent { font-size: 0.85rem; }
.success-urgent a { color: var(--clr-royal, #1E4FA3); font-weight: 600; }
.success-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; align-items: center; }
.form-success .btn { text-decoration: none; }

/* ---- send error + spam trap ---- */
.form-alert {
  margin-bottom: var(--space-md);
  padding: .8rem 1rem;
  border-radius: 12px;
  background: #fdecec;
  border: 1px solid #f3b5b5;
  color: #8a1f1f;
  font-size: .9rem;
  line-height: 1.5;
}
.form-alert[hidden] { display: none; }
.form-alert a { color: #8a1f1f; font-weight: 600; text-decoration: underline; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Quote list on the contact form ---- */
.opt { font-weight: 400; opacity: 0.6; font-size: 0.85em; }
.quote-box { border: 1.5px solid var(--clr-bright); border-radius: var(--radius-lg); padding: var(--space-lg); margin-bottom: var(--space-xl); background: var(--surface-alt); }
.quote-box[hidden] { display: none; }
.quote-box-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-md); }
.quote-box-head h3 { font-size: 1.05rem; color: var(--heading); }
.quote-clear { background: none; border: 0; color: var(--clr-bright); cursor: pointer; font: inherit; font-size: 0.85rem; text-decoration: underline; }
.quote-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.quote-items li { display: flex; align-items: center; gap: 0.8rem; padding: 0.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.quote-items img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: #EAF1FA; }
.quote-items .nm { flex: 1; font-size: 0.92rem; color: var(--heading); line-height: 1.3; }
.quote-items .nm small { display: block; color: var(--clr-text-mute); font-size: 0.78rem; }
.quote-items input { width: 72px; padding: 0.45em 0.6em; border: 1.5px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--clr-text); font: inherit; }
.quote-items button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--border); color: var(--heading); font-size: 1.2rem; cursor: pointer; }
.quote-hint { margin-top: var(--space-md); font-size: 0.85rem; color: var(--clr-text-mute); }
.quote-hint a { color: var(--clr-bright); font-weight: 600; }
