/* ==========================================================================
   Contact / "Leave me a note" Section Styling
   Pixel-perfect mobile responsiveness, sticky-note aesthetics, and accessible controls.
   ========================================================================== */

.contact-assistive-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.contact-email-fallback {
  margin: 12px 0 0;
  text-align: center;
  font-family: "DM Mono", monospace;
  font-size: 12px;
  line-height: 1.5;
}
.contact-email-fallback a { color: #111212; text-underline-offset: 3px; }
.contact-email-fallback a:focus-visible { outline: 2px solid #005ed9; outline-offset: 3px; }

/* --------------------------------------------------------------------------
   1. Contact Title & Selection Handles (Desktop + Mobile)
   -------------------------------------------------------------------------- */
.framer-qU3Lj .framer-6sk12e {
  transform: rotate(3deg) !important;
  display: inline-flex !important;
  position: relative !important;
  padding: 16px 20px 8px 20px !important;
  max-width: calc(100vw - 32px) !important;
  box-sizing: border-box !important;
  margin: 0 auto !important;
}

.framer-qU3Lj .framer-6sk12e .framer-tm4l6c h1 {
  margin: 0 !important;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight: 500 !important;
  letter-spacing: -0.03em !important;
  color: var(--token-4f4ed186-9023-4858-830a-5202d69249c1, #111212) !important;
}

.framer-qU3Lj .framer-3h1dq5 {
  transform: rotate(-3deg) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 2px !important;
}

/* --------------------------------------------------------------------------
   2. Sticky Note Form Container
   -------------------------------------------------------------------------- */
.contact-sticky-form-wrapper {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  position: relative;
  box-sizing: border-box;
  z-index: 10;
}

.contact-sticky-note {
  position: relative;
  background-color: var(--token-cd9da077-16e0-46f3-9a80-6bf4c2a79928, rgb(245, 221, 161));
  border-radius: 12px;
  padding: 24px 20px 20px 20px;
  box-shadow:
    0px 1px 3px rgba(0, 0, 0, 0.05),
    0px 6px 24px -4px rgba(0, 0, 0, 0.09),
    0px 14px 36px -8px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
  width: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Translucent Tape Accent at top */
.sticky-tape {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 20px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  pointer-events: none;
}

/* Form Inner Layout */
.contact-form-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
}

.contact-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.step-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  margin-bottom: 2px;
}

.step-title {
  font-family: "Geist Mono", monospace, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--token-4f4ed186-9023-4858-830a-5202d69249c1, #111212);
  margin: 0;
  display: block;
}

.step-counter {
  font-family: "Geist Mono", monospace, sans-serif;
  font-size: 11px;
  color: rgba(17, 18, 18, 0.72);
  letter-spacing: 0.02em;
}

/* Textarea styling */
.contact-textarea {
  width: 100%;
  min-height: 110px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.25);
  border: 1.5px solid rgba(17, 18, 18, 0.15);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; /* 16px prevents iOS Safari auto-zoom */
  line-height: 1.45;
  color: var(--token-4f4ed186-9023-4858-830a-5202d69249c1, #111212);
  resize: vertical;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.contact-textarea::placeholder,
.contact-input::placeholder {
  color: rgba(17, 18, 18, 0.45);
}

.contact-textarea:focus,
.contact-input:focus {
  outline: none;
  border-color: #005ed9;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 94, 217, 0.15);
}

.contact-textarea.has-error,
.contact-input.has-error {
  border-color: #d32f2f;
  background: rgba(255, 235, 235, 0.4);
}

/* Validation message */
.validation-msg {
  margin: 6px 0 0 0;
  font-family: "Geist Mono", monospace, sans-serif;
  font-size: 11.5px;
  color: #c62828;
  line-height: 1.3;
}

/* Step Actions (Buttons) */
.step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  gap: 12px;
}

.hint-wrap {
  flex: 1;
}

.keyboard-hint {
  font-family: "Geist Mono", monospace, sans-serif;
  font-size: 10px;
  color: rgba(17, 18, 18, 0.72);
}

/* Black pill primary button */
.contact-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: var(--token-4f4ed186-9023-4858-830a-5202d69249c1, #111212);
  color: #ffffff;
  border: 1px solid #111212;
  border-radius: 999px;
  min-height: 44px; /* Touch target */
  padding: 0 18px;
  font-family: "Geist Mono", monospace, sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.contact-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  background-color: #000000;
}

.contact-btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.contact-btn-primary:focus-visible {
  outline: 2px solid #005ed9;
  outline-offset: 3px;
}

.contact-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-step-badge {
  opacity: 0.75;
  font-size: 11px;
}

/* Step 2 Inputs */
.input-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.field-label {
  font-family: "Geist Mono", monospace, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--token-4f4ed186-9023-4858-830a-5202d69249c1, #111212);
}

.required-tag {
  font-size: 10.5px;
  color: #b71c1c;
  font-weight: 400;
}

.optional-tag {
  font-size: 10.5px;
  color: rgba(17, 18, 18, 0.5);
  font-weight: 400;
}

.contact-input {
  width: 100%;
  height: 44px; /* Touch target */
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.25);
  border: 1.5px solid rgba(17, 18, 18, 0.15);
  border-radius: 8px;
  padding: 0 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; /* 16px prevents iOS Safari auto-zoom */
  color: var(--token-4f4ed186-9023-4858-830a-5202d69249c1, #111212);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

/* Reply toggle checkbox */
.reply-toggle-group {
  background: rgba(255, 255, 255, 0.3);
  border: 1px dashed rgba(17, 18, 18, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 2px 0;
}

.reply-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  min-height: 36px;
}

.reply-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #111212;
  flex-shrink: 0;
}

.reply-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: #111212;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.reply-text strong {
  font-family: "Geist Mono", monospace, sans-serif;
  font-size: 12px;
}

.reply-subtext {
  font-size: 11px;
  color: rgba(17, 18, 18, 0.6);
}

/* Step 2 Actions */
.step-2-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.contact-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--token-4f4ed186-9023-4858-830a-5202d69249c1, #111212);
  border: 1px solid rgba(17, 18, 18, 0.25);
  border-radius: 999px;
  min-height: 44px;
  padding: 0 16px;
  font-family: "Geist Mono", monospace, sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  user-select: none;
}

.contact-btn-back:hover:not(:disabled) {
  background: #ffffff;
  transform: translateY(-1px);
}

.contact-btn-back:focus-visible {
  outline: 2px solid #005ed9;
  outline-offset: 3px;
}

.contact-btn-send {
  flex: 1;
  max-width: 180px;
}

/* Spinner */
.btn-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: contact-spin 0.6s linear infinite;
}

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

/* Error Banner */
.contact-error-banner {
  background: rgba(211, 47, 47, 0.12);
  border: 1px solid rgba(211, 47, 47, 0.35);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: #b71c1c;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.error-icon {
  font-size: 14px;
  flex-shrink: 0;
}

/* Success State */
.contact-success-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 12px 16px 12px;
  gap: 12px;
}

.success-icon {
  font-size: 32px;
  animation: contact-bounce 1s ease-in-out infinite alternate;
}

@keyframes contact-bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-4px); }
}

.success-title {
  font-family: "Geist Mono", monospace, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #111212;
  margin: 0;
}

.success-desc {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(17, 18, 18, 0.7);
  margin: 0;
  max-width: 280px;
}

.contact-btn-reset {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--token-4f4ed186-9023-4858-830a-5202d69249c1, #111212);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  min-height: 42px;
  padding: 0 20px;
  font-family: "Geist Mono", monospace, sans-serif;
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.contact-btn-reset:hover {
  transform: translateY(-1px);
  background: #000000;
}

/* --------------------------------------------------------------------------
   3. Polaroid Photographs Responsive Layout
   -------------------------------------------------------------------------- */
/* Desktop Polaroids (Floating) */
@media (min-width: 810px) {
  .framer-qU3Lj .framer-dmkmmb {
    display: flex !important;
    position: absolute !important;
    top: calc(50% - 150px) !important;
    left: 0 !important;
    width: 100% !important;
    height: 300px !important;
    justify-content: space-between !important;
    padding: 0 56px !important;
    pointer-events: none !important;
    z-index: 1 !important;
  }

  .framer-qU3Lj .framer-aqm8nu-container,
  .framer-qU3Lj .framer-1ojpf9-container {
    pointer-events: auto !important;
    cursor: grab;
  }
}

/* Mobile Polaroids (Repositioned below the form) */
@media (max-width: 809.98px) {
  /* Prevent horizontal scroll */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Section height and layout */
  .framer-qU3Lj .framer-18s9aw8 {
    height: auto !important;
    min-height: calc(100svh - 48px) !important;
    padding: 24px 0 72px 0 !important;
    gap: 20px !important;
    overflow: visible !important;
  }

  .framer-qU3Lj .framer-1jzctws {
    gap: 20px !important;
    padding: 0 16px !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  /* Scale CONTACT title proportionally */
  .framer-qU3Lj .framer-6sk12e {
    transform: rotate(3deg) !important;
    max-width: min(calc(100vw - 32px), 320px) !important;
    padding: 12px 14px 6px 14px !important;
  }

  .framer-qU3Lj .framer-6sk12e .framer-tm4l6c h1 {
    font-size: clamp(34px, 11vw, 54px) !important;
    line-height: 1.1 !important;
  }

  /* Repositioned Polaroids on Mobile: Never cover the form */
  .framer-qU3Lj .framer-dmkmmb {
    display: flex !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 360px !important;
    margin: 8px auto 4px auto !important;
    padding: 0 !important;
    height: auto !important;
    order: 3 !important; /* Positions after form and quote */
    pointer-events: auto !important;
    z-index: 5 !important;
  }

  .framer-qU3Lj .framer-aqm8nu-container {
    display: block !important;
    width: 125px !important;
    max-width: 42vw !important;
    height: 155px !important;
    transform: rotate(-4deg) !important;
    flex: none !important;
    pointer-events: auto !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
  }

  .framer-qU3Lj .framer-1ojpf9-container {
    display: block !important;
    width: 125px !important;
    max-width: 42vw !important;
    height: 155px !important;
    transform: rotate(5deg) !important;
    flex: none !important;
    pointer-events: auto !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
  }

  /* Quote styling on mobile */
  .framer-qU3Lj .framer-7qkk4t {
    order: 2 !important;
    max-width: calc(100vw - 32px) !important;
    margin: 4px 0 !important;
  }

  .framer-qU3Lj .framer-7qkk4t h5 {
    font-size: clamp(16px, 4.8vw, 22px) !important;
    line-height: 1.3 !important;
    text-align: center !important;
  }

  /* Social link styling */
  .framer-qU3Lj .framer-15ncfh8 {
    margin-top: 12px !important;
    padding-bottom: 24px !important;
  }
}

/* Small mobile widths (320px - 360px) */
@media (max-width: 360px) {
  .contact-sticky-note {
    padding: 20px 14px 16px 14px;
  }

  .framer-qU3Lj .framer-aqm8nu-container,
  .framer-qU3Lj .framer-1ojpf9-container {
    width: 110px !important;
    height: 140px !important;
  }

  .step-actions {
    flex-wrap: wrap;
  }
}
