/* ══════════════════════════════════════════════
   CONTACT PAGE — css/contact.css
   Depends on css/style.css for design tokens
══════════════════════════════════════════════ */

/* ─── SCROLL PROGRESS ─── */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 1100;
  height: 2px; width: 0%;
  background: linear-gradient(to right, var(--amber), var(--gold));
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ─── HERO ─── */
#contact-hero {
  position: relative; height: 55svh; min-height: 440px;
  display: flex; flex-direction: column;
  justify-content: flex-end; align-items: flex-start;
  overflow: hidden;
}
.ch-bg { position: absolute; inset: 0; z-index: 0; }
.ch-img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.1);
  animation: chZoom 16s ease-out forwards;
}
@keyframes chZoom { to { transform: scale(1); } }
.ch-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(18,6,0,0.75) 0%, rgba(18,6,0,0.15) 20%, transparent 45%),
    linear-gradient(105deg, rgba(18,6,0,0.95) 0%, rgba(18,6,0,0.6) 45%, transparent 75%);
}
.ch-content {
  position: relative; z-index: 5;
  padding: 0 clamp(24px,6vw,100px) 60px;
  max-width: 780px;
}
.ch-eyebrow {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--ff-label); font-size: 0.68rem;
  letter-spacing: 0.35em; color: var(--amber); margin-bottom: 24px;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.7s 1.6s, transform 0.7s 1.6s var(--ease-out);
}
.ch-eyebrow.vis { opacity: 1; transform: none; }
.ch-eyebrow .eyebrow-line { width: 36px; height: 1px; background: var(--amber); }

.ch-h1 {
  font-family: var(--ff-display);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 300; line-height: 0.9;
  color: var(--cream); margin: 0 0 24px;
  letter-spacing: -0.01em;
}
.ch-h1 em { font-style: italic; color: var(--amber); }
.cll { display: block; overflow: hidden; }
.clli {
  display: block;
  transform: translateY(115%);
  transition: transform 1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 1ms + 0ms);
}
.clli.vis { transform: translateY(0); }

.ch-sub {
  font-size: clamp(0.88rem, 1.3vw, 1.05rem); line-height: 1.8;
  color: rgba(246,238,216,0.65); max-width: 560px;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.8s 2s, transform 0.8s 2s var(--ease-out);
}
.ch-sub.vis { opacity: 1; transform: none; }

/* ─── CONTACT GRID LAYOUT ─── */
#contact-main { background: var(--bg); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 100px); max-width: 1200px; margin: 0 auto;
}

/* Left Column Info */
.info-h3 {
  font-family: var(--ff-display); font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300; color: var(--text-h); line-height: 1.15;
  margin: 16px 0;
}
.info-intro {
  font-size: 0.95rem; line-height: 1.85; color: var(--text-m);
  margin-bottom: 40px;
}
.info-cards { display: flex; flex-direction: column; gap: 20px; }
.info-card {
  display: flex; gap: 20px; padding: 24px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; transition: border-color 0.3s, transform 0.4s var(--ease-out);
}
.info-card:hover {
  border-color: rgba(200,130,10,0.2); transform: translateX(6px);
}
.ic-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(200,130,10,0.08); border: 1px solid rgba(200,130,10,0.15);
  color: var(--amber); font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ic-details h4 {
  font-family: var(--ff-display); font-size: 1.15rem; font-weight: 500;
  color: var(--text-h); margin-bottom: 6px;
}
.ic-details a {
  font-size: 1rem; color: var(--accent); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; display: inline-block;
  margin-bottom: 4px;
}
.ic-details span {
  font-size: 1rem; color: var(--text-h); font-weight: 500;
  display: inline-block; margin-bottom: 4px;
}
.ic-details p { font-size: 0.8rem; line-height: 1.6; color: var(--text-m); }

.info-footer-badges {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 40px;
  border-top: 1.5px solid var(--border); padding-top: 28px;
}
.ifb-item {
  font-family: var(--ff-label); font-size: 0.68rem; letter-spacing: 0.2em;
  padding: 6px 16px; border-radius: 20px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-m);
}

/* Right Column Form */
.contact-form-col {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; padding: clamp(24px, 5vw, 48px);
  box-shadow: 0 30px 80px rgba(60,20,0,0.05);
}
[data-theme="dark"] .contact-form-col { box-shadow: 0 30px 80px rgba(0,0,0,0.45); }

.form-wrapper h3 {
  font-family: var(--ff-display); font-size: 1.8rem; font-weight: 400;
  color: var(--text-h); margin-bottom: 12px; line-height: 1.25;
}
.form-subtext {
  font-size: 0.85rem; line-height: 1.7; color: var(--text-m);
  margin-bottom: 36px;
}

.interactive-form { display: flex; flex-direction: column; gap: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Input group styling with floating label logic */
.input-group {
  position: relative; width: 100%;
}
.input-group input[type="text"],
.input-group input[type="email"],
.input-group input[type="tel"],
.input-group textarea,
.input-group select {
  width: 100%; padding: 14px 16px;
  border-radius: 2px; border: 1.5px solid var(--border);
  background: var(--bg); color: var(--text-h);
  font-family: var(--ff-body); font-size: 0.9rem;
  transition: border-color 0.3s, background-color 0.3s;
}
.input-group textarea { resize: vertical; }

/* Hide default select arrow */
.input-group select {
  appearance: none; -webkit-appearance: none;
  cursor: pointer; padding-right: 40px;
}
/* Custom select arrow overlay */
.select-group::after {
  content: '▼'; font-size: 0.65rem; color: var(--text-m);
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  pointer-events: none; opacity: 0.8;
}

/* Floating labels absolute styling */
.input-group label {
  position: absolute; left: 16px; top: 14px;
  font-size: 0.88rem; color: var(--text-m); opacity: 0.75;
  pointer-events: none; transition: transform 0.3s var(--ease-out), font-size 0.3s, opacity 0.3s, color 0.3s;
  transform-origin: left top;
}
/* Textarea label spacing */
.input-group textarea + label {
  white-space: normal; line-height: 1.4; padding-right: 16px;
}

/* Input states (focus / valid entries) float label up */
.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
  outline: none; border-color: var(--amber); background: var(--surface);
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group input:valid + label,
.input-group textarea:focus + label,
.input-group textarea:not(:placeholder-shown) + label,
.input-group textarea:valid + label,
.input-group select:focus + label,
.input-group select:not([value=""]):valid + label,
.input-group select:valid + label {
  transform: translateY(-24px) scale(0.8);
  opacity: 1; color: var(--amber); font-weight: 500;
}

/* Specific adjustment for select group label */
.select-label {
  top: 14px !important;
}

/* Form submission button hover transitions */
.form-submit-btn {
  width: 100%; padding: 16px; font-size: 0.8rem;
  letter-spacing: 0.2em; display: flex; align-items: center;
  justify-content: center; gap: 8px; cursor: pointer;
}
.btn-arrow { transition: transform 0.3s var(--ease-out); }
.form-submit-btn:hover .btn-arrow { transform: translateX(4px); }

/* Sending spinner / checkmark styling */
.form-submit-btn.sending {
  background: var(--espresso) !important; color: var(--gold) !important;
  pointer-events: none;
}
.form-submit-btn.success {
  background: #3A8B5F !important; color: #fff !important;
  border-color: #3A8B5F !important; pointer-events: none;
}

/* Success Card styling */
.form-success-card {
  text-align: center; padding: 48px 24px;
  animation: cardFadeIn 0.6s var(--ease-out) both;
}
@keyframes cardFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
.success-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(58,139,95,0.1); border: 2px solid #3A8B5F;
  color: #3A8B5F; font-size: 2.2rem; display: flex;
  align-items: center; justify-content: center; margin: 0 auto 28px;
}
.form-success-card h3 {
  font-family: var(--ff-display); font-size: 2rem; font-weight: 300;
  color: var(--text-h); margin-bottom: 16px;
}
.form-success-card p {
  font-size: 0.92rem; line-height: 1.8; color: var(--text-m);
  max-width: 440px; margin: 0 auto;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; gap: 60px; }
  .contact-form-col { padding: clamp(24px, 6vw, 36px); }
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; gap: 24px; }
}
