/* ─────────────────────────────────────────────
   Contact Page – contact.css
   GeoCal brand: orange #e58e1a  purple #6d56cc
   ───────────────────────────────────────────── */

/* ── Override column widths for contact page ── */
.contact-page .body-main {
  width: 45%;
}

.contact-page .body-sidebar {
  width: 55%;
  background-color: #ffffff;
  border-left: 1px solid #e8e8e8;
  padding: 2.5rem 2rem;
  display: block;
  gap: unset;
}

/* ── Left column ── */
.contact-form-col {
  padding: 2.5rem 3rem 2.5rem 2rem;
}

.get-in-touch-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: #6d56cc;
  margin-bottom: 1.5rem;
}

/* ── Form elements ── */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label-gc {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1c1c2e;
  margin-bottom: 0.4rem;
}

.required {
  color: #e58e1a;
}

.form-control-gc {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  font-family: 'Inter', sans-serif;
  color: #1c1c2e;
  background-color: #ffffff;
  border: 1.5px solid #d0d0d0;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control-gc:focus {
  border-color: #6d56cc;
  box-shadow: 0 0 0 3px rgba(109, 86, 204, 0.15);
}

.form-control-gc.invalid {
  border-color: #d9534f;
}

textarea.form-control-gc {
  resize: vertical;
  min-height: 140px;
}

/* ── Name row: First / Last ── */
.name-row {
  display: flex;
  gap: 1rem;
}

.name-field {
  flex: 1;
}

.sub-label {
  display: block;
  font-size: 0.72rem;
  color: #888;
  margin-top: 0.25rem;
}

/* ── Field error ── */
.field-error {
  display: none;
  font-size: 0.74rem;
  color: #d9534f;
  margin-top: 0.25rem;
}

.field-error.visible {
  display: block;
}

/* ── Submit button ── */
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #6d56cc;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 0.90rem;
  font-weight: 600;
  padding: 0.60rem 2.25rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  margin-top: 0.75rem;
  letter-spacing: 0.02em;
}

.btn-submit:hover {
  background-color: #5a45b0;
}

.btn-submit:active {
  transform: scale(0.98);
}

.btn-submit:disabled {
  background-color: #b0b0b0;
  cursor: not-allowed;
}

/* ── Spinner ── */
.spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 4px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Status alerts ── */
.contact-alert {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 5px;
  font-size: 0.87rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.contact-alert-success {
  background-color: #eafaf1;
  color: #1e7e45;
  border: 1px solid #a3d9b1;
}

.contact-alert-error {
  background-color: #fdf2f2;
  color: #c0392b;
  border: 1px solid #f5b7b1;
}

/* ── Right column ── */
.ci-section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1c1c2e;
  margin-bottom: 0.5rem;
}

.ci-description {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.ci-link {
  color: #6d56cc;
  text-decoration: none;
  font-weight: 600;
}

.ci-link:hover {
  text-decoration: underline;
}

/* ── Info panel (purple box) ── */
.info-panel {
  background-color: #000000;
  border-radius: 8px;
  padding: 1.75rem 1.5rem;
}

.info-panel-title {
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.info-section-heading {
  font-size: 0.88rem;
  font-style: italic;
  font-weight: 600;
  color: #e58e1a;
  margin-bottom: 0.65rem;
  letter-spacing: 0.03em;
}

/* ── Info card (white card inside panel) ── */
.info-card {
  background-color: #ffffff;
  border-radius: 6px;
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
}

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

.info-row {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.3rem 0.6rem;
  font-size: 0.83rem;
  color: #333;
  padding: 0.3rem 0;
  line-height: 1.5;
}

.info-icon {
  color: #6d56cc;
  font-size: 0.88rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.info-sub {
  color: #888;
  font-size: 0.78em;
}

.info-card-link {
  color: #6d56cc;
  text-decoration: none;
  font-weight: 500;
}

.info-card-link:hover {
  color: #e58e1a;
  text-decoration: underline;
}

/* ── Mobile responsive ── */
@media (max-width: 767px) {
  .contact-page .body-main,
  .contact-page .body-sidebar {
    width: 100%;
  }

  .contact-page .body-sidebar {
    border-left: none;
    border-top: 3px solid #e58e1a;
    padding: 2rem 1.25rem;
  }

  .contact-form-col {
    padding: 2rem 1.25rem;
  }

  .name-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn-submit {
    width: 100%;
  }
}
