/* ============================================================
   CONTACT PAGE — Books & Memories (Brandemic-inspired Redesign)
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #0c1829;
  color: #e2e8f0;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}
@media (max-width: 768px) {
  body { cursor: auto; }
}

/* -- Film grain overlay -- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* -- Heading Shimmer effect -- */
.brand-heading {
  font-family: 'Merriweather', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  background: linear-gradient(135deg, #f4d03f 0%, #ffe993 50%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: goldShimmer 6s linear infinite;
  margin-bottom: 1.5rem;
}
@keyframes goldShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* -- Reveal animation -- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* -- Custom cursor -- */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background-color: #f4d03f;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
  box-shadow: 0 0 10px rgba(244, 208, 63, 0.6);
  mix-blend-mode: screen;
}
.custom-cursor.hover {
  width: 44px;
  height: 44px;
  background-color: rgba(244, 208, 63, 0.12);
  border: 1px solid #f4d03f;
}
@media (max-width: 768px) {
  .custom-cursor { display: none !important; }
}

/* ----------------------------------------------
   CONTACT LAYOUT & GRID
---------------------------------------------- */
.contact-hero-section {
  padding: 140px 8% 6rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 80% 20%, rgba(244, 208, 63, 0.03) 0%, transparent 60%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 6rem;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

/* -- Left Side Panel -- */
.contact-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow-tag {
  font-size: 1.1rem;
  color: #f4d03f;
  font-family: 'Merriweather', serif;
  font-style: italic;
  margin-bottom: 0.8rem;
  display: block;
}

.brand-subtext {
  font-size: 1.05rem;
  color: #9aacbe;
  line-height: 1.8;
  margin-bottom: 3.5rem;
  max-width: 480px;
}

.info-blocks {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  margin-bottom: 3.5rem;
}

.info-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.info-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #62768f;
}

.info-link {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 500;
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
  width: fit-content;
}

.info-link:hover {
  color: #f4d03f;
}

/* Social links */
.social-connect {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-row {
  display: flex;
  gap: 0.8rem;
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(244, 208, 63, 0.25);
  background: rgba(244, 208, 63, 0.03);
  color: #f4d03f;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.social-icon-btn:hover {
  background-color: #f4d03f;
  color: #0c1829;
  border-color: #f4d03f;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(244, 208, 63, 0.35);
}

/* -- Right Side Panel -- */
.contact-form-panel {
  display: flex;
  align-items: center;
}

.form-container-card {
  width: 100%;
  background: rgba(22, 34, 53, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 3rem 2.8rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.form-container-card h2 {
  font-size: 1.6rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.gold-accent-line {
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #f4d03f, #d4af37);
  border-radius: 2px;
  margin-bottom: 2.5rem;
}

/* -- Interactive selectors (Pills) -- */
.form-group-interactive {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2.2rem;
}

.group-title-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #62768f;
  text-transform: uppercase;
}

.pill-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.2rem;
}

.pill-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  color: #8899bb;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pill-btn:hover {
  border-color: rgba(244, 208, 63, 0.4);
  color: #f4d03f;
  background: rgba(244, 208, 63, 0.03);
}

.pill-btn.active {
  border-color: #f4d03f;
  background: #f4d03f;
  color: #0c1829;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(244, 208, 63, 0.3);
}

/* -- floating labels, minimalist lines -- */
.form-input-group {
  position: relative;
  margin-bottom: 2rem;
  width: 100%;
}

.form-input-group input,
.form-input-group textarea {
  width: 100%;
  padding: 0.8rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: border-bottom-color 0.3s ease;
  resize: none;
  outline: none;
  margin-bottom: 0;
  border-radius: 0;
  box-shadow: none;
}

/* floating label behavior */
.floating-label {
  position: absolute;
  left: 0;
  top: 0.8rem;
  color: #8899bb;
  font-size: 1rem;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Inter', sans-serif;
  margin: 0;
}

/* Focus and input states */
.form-input-group input:focus ~ .floating-label,
.form-input-group input:not(:placeholder-shown) ~ .floating-label,
.form-input-group textarea:focus ~ .floating-label,
.form-input-group textarea:not(:placeholder-shown) ~ .floating-label {
  top: -1rem;
  font-size: 0.75rem;
  color: #f4d03f;
  letter-spacing: 0.05em;
}

/* Underline trace animation */
.input-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #f4d03f, #d4af37);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-input-group input:focus ~ .input-line,
.form-input-group textarea:focus ~ .input-line {
  width: 100%;
}

.form-input-group input:focus,
.form-input-group textarea:focus {
  border-bottom-color: transparent;
}

/* -- submit button -- */
.submit-form-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 1.1rem;
  background: linear-gradient(135deg, #f4d03f, #e0bb30);
  color: #0c1829;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  margin-top: 1.5rem;
  box-shadow: 0 8px 24px rgba(244, 208, 63, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.submit-form-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(244, 208, 63, 0.45);
}

.submit-form-btn i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.submit-form-btn:hover i {
  transform: translateX(4px);
}

/* Status message */
.form-status-message {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 20px;
}

.form-status-message.sending { color: #f4d03f; }
.form-status-message.success { color: #52c45a; }
.form-status-message.error { color: #e85b5b; }

/* ----------------------------------------------
   HEADER (keep consistent with shared-header)
---------------------------------------------- */

/* ----------------------------------------------
   RESPONSIVE DESIGN
---------------------------------------------- */
@media (max-width: 1024px) {
  .contact-grid {
    gap: 3.5rem;
  }
}

@media (max-width: 768px) {

  .contact-hero-section {
    padding: 120px 6% 4rem;
  }

  .contact-grid { grid-template-columns: 1fr; width: 100%; max-width: 100%; overflow-x: hidden;
    gap: 4.5rem;
  }

  .brand-subtext {
    max-width: 100%;
    margin-bottom: 2.5rem;
  }

  .info-blocks {
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 480px) {
  .form-container-card {
    padding: 2.2rem 1.6rem;
    border-radius: 16px;
  }

  .brand-heading {
    font-size: 2.4rem;
  }

  .pill-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .info-link {
    font-size: 1.15rem;
  }
}

