/* ============================================================
   CONTACT PAGE STYLES
   Used only by: contact.html
   Global styles (nav, footer, buttons, colors) are in styles.css
   ============================================================ */

/* CONTACT SECTION — the main content area with form and info panel */
.contact-section {
  width: min(1040px, calc(100% - 128px));
  margin: 0 auto;
  padding: 64px 0;
}

.contact-section .eyebrow { margin-bottom: 12px; }

/* Large italic title */
.contact-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 300;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 8px;
}

/* Subtitle below the title */
.contact-sub {
  font-size: 14px;
  color: var(--warm-muted);
  font-weight: 300;
  margin-bottom: 48px;
}

/* Two-column layout: contact form on the left, info panel on the right */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* CONTACT FORM */

.contact-form-column,
.contact-info {
  align-self: start;
}

/* Each form field (label + input) */
.form-field {
  margin-bottom: 24px;
}

/* Small uppercase label above each input */
.form-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm-muted);
  font-weight: 400;
  margin-bottom: 8px;
}

/* Text input and textarea share the same base styles */
.form-input,
.form-textarea {
  width: 100%;
  background: var(--cream);
  border: 0.5px solid var(--border-mid);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 300;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s;
}

/* Border turns terracotta when the field is active/focused */
.form-input:focus,
.form-textarea:focus {
  border-color: var(--terra);
}

.form-textarea {
  height: 140px;
  resize: vertical; /* lets the user drag to make it taller */
}

/* Submit button stretches to full width of the form */
.form-submit {
  width: 100%;
  margin-top: 8px;
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

/* INFO PANEL — the right column with email, location, availability */
.contact-info {
  background: var(--cream-deep);
  padding: 32px;
  height: 100%;
  border-radius: 4px;
}

/* Each info block (e.g. Email, Location, Availability) */
.info-row {
  margin-bottom: 24px;
}

/* Small uppercase label (e.g. "EMAIL", "LOCATION") */
.info-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm-muted);
  font-weight: 400;
  display: block;
  margin-bottom: 6px;
}

/* The value below the label (e.g. the actual email address) */
.info-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-style: italic;
  color: var(--ink);
  display: block;
}

.info-value.gold { color: var(--gold); }

/* Thin dividing line between info blocks */
.info-divider {
  height: 0.5px;
  background: var(--border);
  margin: 24px 0;
}

/* Small note items at the bottom of the info panel */
.info-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

/* Terracotta dot bullet point */
.info-note-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--terra);
  flex-shrink: 0;
  margin-top: 6px;
}

.info-note p {
  font-size: 13px;
  color: var(--warm-mid);
  font-weight: 300;
  line-height: 1.5;
}

/* ============================================================
   SUCCESS MESSAGE CARD
   Replaces the form after a successful submission.
   It sits in the same grid cell as the form, so it
   automatically inherits the same width.
   ============================================================ */

/* Outer card container — cream background, gold left border */
.success-card {
  background: var(--cream-deep); /* same background as the info panel on the right */
  border-left: 2px solid var(--gold); /* decorative gold stripe — runs the full height */
  border-radius: 4px;
  padding: 40px 36px;
}

/* --- HEADING ----------------------------------------------- */
/* Big, elegant, italic serif — the first thing the visitor reads */
.success-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 300;    /* "Light" weight */
  font-style: italic;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 20px; /* space between heading and gold rule */
}

/* --- GOLD RULE --------------------------------------------- */
/* Short horizontal bar beneath the heading, like a section marker */
.success-rule {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 24px; /* space between rule and body copy */
}

/* --- BODY COPY --------------------------------------------- */
/* Friendly confirmation in a clean sans-serif */
.success-body {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 300;      /* Light */
  color: var(--warm-muted);
  line-height: 1.6;
  margin-bottom: 28px;   /* space before the divider */
}

/* --- FULL-WIDTH DIVIDER ------------------------------------ */
/* Thin line that visually separates the body from the footer */
.success-divider {
  height: 0.5px;
  background: var(--border);
  margin-bottom: 24px;
}

/* --- FOOTER ROW ------------------------------------------- */
/* Holds the pill badge and the note text side by side */
.success-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap; /* wraps onto a second line on very narrow screens */
}

/* --- PILL BADGE ------------------------------------------- */
/* Small terracotta capsule: "✓ MESSAGE SENT" */
.success-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--terra);
  border-radius: 999px;  /* large radius = fully rounded "pill" ends */
  padding: 5px 12px;
  flex-shrink: 0;        /* pill never shrinks smaller than its natural size */
}

/* Checkmark icon inside the pill */
.success-pill-check {
  color: var(--cream);   /* light cream check on the terracotta background */
  font-size: 11px;
  line-height: 1;
}

/* "MESSAGE SENT" text inside the pill */
.success-pill-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
}

/* --- FOOTER NOTE ------------------------------------------ */
/* Small muted text sitting to the right of the pill */
.success-footer-note {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: var(--warm-muted);
  line-height: 1.4;
}

/* ============================================================
   FORM → SUCCESS TRANSITION ANIMATION
   The form fades out, then the success card fades in and
   rises slightly from below — a soft, editorial feel.
   ============================================================ */

/* Applied by JS just before the form disappears.
   The opacity transition gives us the fade-out effect. */
#formWrapper.is-fading {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Starting state for the success card when it first becomes visible.
   It begins fully transparent and nudged 14px downward. */
#successMessage {
  opacity: 0;
  transform: translateY(14px);
  /* Both properties transition so the card fades in AND rises at once */
  transition: opacity 0.45s ease, transform 0.45s ease;
}

/* JS adds this class after display:block is set.
   The browser then smoothly animates from the starting state above
   to this fully-visible state. */
#successMessage.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE — tablet (991px and below)
   ============================================================ */
@media (max-width: 991px) {
  .contact-section {
    width: min(100% - 48px, 1040px);
    padding: 48px 0;
  }
  /* Stack form and info panel vertically on smaller screens */
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   RESPONSIVE — mobile (479px and below)
   ============================================================ */
@media (max-width: 479px) {
  .contact-section {
    width: min(100% - 40px, 1040px);
    padding: 36px 0;
  }
}
