/* ── CretaHub Contact Page ───────────────────────────────── */

#che-contact-wrap, #che-contact-wrap * {
  box-sizing: border-box;
}

/* Root variables — needed for all child elements */
:root {
  --che-primary:            #004d70;
  --che-primary-dark:       #003552;
  --che-secondary:          #895200;
  --che-amber:              #FDA53A;
  --che-surface:            #fcf9f8;
  --che-surface-low:        #f6f3f2;
  --che-surface-white:      #ffffff;
  --che-on-surface:         #1b1c1c;
  --che-on-surface-variant: #3e4850;
  --che-outline-variant:    #bec8d2;
  --che-font-headline:      "Noto Serif", Georgia, serif;
  --che-font-body:          "Plus Jakarta Sans", sans-serif;
}

#che-contact-wrap {
  --che-primary:            #004d70;
  --che-primary-dark:       #003552;
  --che-secondary:          #895200;
  --che-amber:              #FDA53A;
  --che-surface:            #fcf9f8;
  --che-surface-low:        #f6f3f2;
  --che-surface-white:      #ffffff;
  --che-on-surface:         #1b1c1c;
  --che-on-surface-variant: #3e4850;
  --che-outline-variant:    #bec8d2;
  --che-font-headline:      "Noto Serif", Georgia, serif;
  --che-font-body:          "Plus Jakarta Sans", sans-serif;

  background: var(--che-surface);
  color: var(--che-on-surface);
  font-family: var(--che-font-body);
  overflow-x: hidden;
}

/* ── Animated gradient border (same as homepage) ─────────── */
@property --che-ga {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes che-spin {
  to { --che-ga: 360deg; }
}
#che-contact-wrap .che-gbc {
  background-image:
    linear-gradient(var(--che-surface-white), var(--che-surface-white)),
    conic-gradient(from var(--che-ga), #004d70 0%, #FDA53A 30%, #FFD080 50%, #FDA53A 70%, #004d70 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border: 2px solid transparent;
  border-radius: 20px;
}
#che-contact-wrap .che-gbc:hover {
  animation: che-spin 5s linear infinite;
}

/* ── Layout helpers ───────────────────────────────────────── */
#che-contact-wrap .che-section {
  padding: 100px 0 120px;
  background: var(--che-surface);
}
#che-contact-wrap .che-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
#che-contact-wrap .che-eyebrow {
  font-family: var(--che-font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
}

/* Hero styles → premium-hero.css */

/* ── Contact Grid ─────────────────────────────────────────── */
.che-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: start;
}

/* ── Info cards ───────────────────────────────────────────── */
.che-contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
#che-contact-wrap .che-contact-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  background: #fff;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  opacity: 0; /* GSAP animates to 1 */
}
#che-contact-wrap .che-contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,77,112,0.15);
}
.che-contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0,77,112,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--che-primary);
}
.che-contact-card-title {
  font-family: var(--che-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--che-on-surface-variant);
  margin: 0 0 6px;
}
.che-contact-card-val {
  font-family: var(--che-font-body);
  font-size: 0.95rem;
  color: var(--che-on-surface);
  line-height: 1.55;
  margin: 0;
}
.che-contact-card-val a {
  color: var(--che-primary);
  text-decoration: none;
}
.che-contact-card-val a:hover {
  color: var(--che-amber);
}
.che-contact-response-note {
  font-family: var(--che-font-body);
  font-size: 0.82rem;
  color: var(--che-on-surface-variant);
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 0 4px;
}
.che-contact-response-note svg {
  color: #2e9e5b;
  flex-shrink: 0;
}

/* ── Form wrap ────────────────────────────────────────────── */
.che-contact-form-wrap {
  position: sticky;
  top: 40px;
}
.che-contact-form-inner {
  padding: 40px 44px;
  background: #fff;
  opacity: 0; /* GSAP animates to 1 */
}
.che-contact-form-title {
  font-family: var(--che-font-headline);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--che-primary);
  margin: 0 0 28px;
  letter-spacing: -0.02em;
}

/* ── Custom contact form ──────────────────────────────────── */
#che-contact-form-el {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.che-field-group {
  display: flex;
  flex-direction: column;
}
#che-contact-form-el input[type="text"],
#che-contact-form-el input[type="email"],
#che-contact-form-el textarea {
  width: 100%;
  font-family: var(--che-font-body);
  font-size: 0.95rem;
  color: var(--che-on-surface);
  background: var(--che-surface);
  border: 1.5px solid var(--che-outline-variant);
  border-radius: 10px;
  padding: 14px 18px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
}
#che-contact-form-el input:focus,
#che-contact-form-el textarea:focus {
  border-color: var(--che-primary);
  box-shadow: 0 0 0 3px rgba(0,77,112,0.1);
  background: #fff;
}
#che-contact-form-el textarea {
  resize: vertical;
}
.che-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--che-font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--che-primary);
  border: none;
  border-radius: 10px;
  padding: 16px 36px;
  cursor: pointer;
  transition: background 0.22s ease, transform 0.18s ease, box-shadow 0.22s ease;
  align-self: flex-start;
  position: relative;
}
.che-submit-btn:hover:not(:disabled) {
  background: var(--che-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,77,112,0.25);
}
.che-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.che-submit-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: che-spin-loader 0.7s linear infinite;
}
.che-submit-btn.loading .che-submit-spinner { display: block; }
.che-submit-btn.loading .che-submit-label  { opacity: 0.7; }
@keyframes che-spin-loader {
  to { transform: rotate(360deg); }
}
.che-feedback {
  font-family: var(--che-font-body);
  font-size: 0.88rem;
  border-radius: 8px;
  padding: 12px 16px;
  border: 1.5px solid;
}
.che-feedback--success {
  border-color: #2e9e5b;
  background: rgba(46,158,91,0.07);
  color: #1d6e40;
}
.che-feedback--error {
  border-color: #d9534f;
  background: rgba(217,83,79,0.07);
  color: #a94442;
}

/* ── Social icons ─────────────────────────────────────────── */
.che-contact-socials {
  margin-top: 8px;
  padding: 20px 24px;
  background: var(--che-surface-white);
  border-radius: 20px;
  border: 1.5px solid var(--che-outline-variant);
}
.che-contact-socials-label {
  font-family: var(--che-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--che-on-surface-variant);
  display: block;
  margin-bottom: 14px;
}
.che-contact-socials-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.che-social-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 12px;
  font-family: var(--che-font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  color: #fff;
}
.che-social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  filter: brightness(1.08);
  color: #fff;
}
.che-social-fb  { background: #1877f2; }
.che-social-ig  { background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%); }
.che-social-wa  { background: #25d366; }
.che-social-vi  { background: #7360f2; }

/* ── Map section ──────────────────────────────────────────── */
#che-contact-map-section {
  background: var(--che-surface-low);
  padding: 80px 0 0;
}
.che-contact-map-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px 36px;
}
.che-contact-map-title {
  font-family: var(--che-font-headline);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 300;
  color: var(--che-primary);
  margin: 0;
  letter-spacing: -0.02em;
}
.che-contact-map-title em {
  font-style: italic;
  color: var(--che-secondary);
}
.che-contact-map-wrap {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
}
.che-contact-map {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  filter: saturate(0.85) contrast(1.05);
}
.che-map-directions-btn {
  position: absolute;
  bottom: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--che-primary);
  color: #fff;
  font-family: var(--che-font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.che-map-directions-btn:hover {
  background: var(--che-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.3);
  color: #fff;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .che-contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .che-contact-form-wrap {
    position: static;
  }
  .che-contact-form-inner {
    padding: 28px 24px;
  }
}
@media (max-width: 600px) {
  /* .che-premium-hero responsive → premium-hero.css */
  #che-contact-wrap .che-section {
    padding: 64px 0 80px;
  }
  #che-contact-wrap .che-container {
    padding: 0 20px;
  }
  .che-contact-socials-row {
    grid-template-columns: 1fr 1fr;
  }
  .che-contact-map-wrap {
    height: 300px;
  }
  .che-contact-map-header {
    padding: 0 20px 28px;
  }
  #che-contact-map-section {
    padding-top: 60px;
  }
}
