/* ----------------------------------------------------
   Contact & FAQ Section Styles
   Theme: Gold and Dark luxury theme (matches HEARTS EXPO 2026)
---------------------------------------------------- */

.contact-faq-section {
  padding: 120px 0;
  background: radial-gradient(circle at 50% 0%, #12161f 0%, #07080a 80%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.contact-faq-section .container {
  max-width: 800px;
}

.serif-title {
  font-family: 'Playfair Display', 'Noto Serif JP', 'Georgia', 'ヒラギノ明朝 ProN', serif;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.section-subtitle {
  font-family: 'Outfit', 'Noto Sans JP', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: #ffbe3b; /* Accent Gold */
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 3.5rem;
  text-transform: uppercase;
}

.contact-faq-section .section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 0;
}

/* FAQ Block */
.faq-block {
  margin-bottom: 90px;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.faq-item {
  background: #121316;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(255, 190, 59, 0.2);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.8rem;
  cursor: pointer;
  text-align: left;
  color: #ffffff;
  outline: none;
  font-size: 1.05rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: #ffbe3b;
}

.faq-icon-q {
  font-family: 'Playfair Display', 'Noto Serif JP', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffbe3b;
  margin-right: 1.2rem;
  flex-shrink: 0;
  line-height: 1;
}

.faq-q-text {
  flex-grow: 1;
  padding-right: 1rem;
  line-height: 1.5;
  font-family: 'Noto Sans JP', sans-serif;
}

.faq-toggle-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-toggle-icon::before,
.faq-toggle-icon::after {
  content: '';
  position: absolute;
  background-color: #ffffff;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}

.faq-toggle-icon::before {
  top: 8px;
  left: 0;
  width: 18px;
  height: 2px;
}

.faq-toggle-icon::after {
  top: 0;
  left: 8px;
  width: 2px;
  height: 18px;
}

.faq-question:hover .faq-toggle-icon::before,
.faq-question:hover .faq-toggle-icon::after {
  background-color: #ffbe3b;
}

.faq-question[aria-expanded="true"] .faq-toggle-icon {
  transform: rotate(90deg);
}

.faq-question[aria-expanded="true"] .faq-toggle-icon::after {
  transform: scaleY(0);
}

.faq-question[aria-expanded="true"] .faq-toggle-icon::before,
.faq-question[aria-expanded="true"] .faq-toggle-icon::after {
  background-color: #ffbe3b;
}

.faq-answer-wrapper {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.faq-answer {
  display: flex;
  align-items: flex-start;
  padding: 0 1.8rem 1.8rem 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.faq-icon-a {
  font-family: 'Playfair Display', 'Noto Serif JP', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-right: 1.2rem;
  flex-shrink: 0;
  line-height: 1;
}

.faq-a-text {
  color: #a0a0ab;
  font-size: 0.95rem;
  line-height: 1.8;
  flex-grow: 1;
  font-family: 'Noto Sans JP', sans-serif;
}

/* Contact Block */
.contact-block {
  margin-top: 60px;
}

.contact-block:first-child {
  margin-top: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.form-row {
  display: flex;
  width: 100%;
}

.form-group-item {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.form-group-item label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: 0.02em;
}

.tag-required {
  background-color: #ffbe3b;
  color: #000000;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  line-height: 1.4;
}

.tag-optional {
  background-color: rgba(255, 255, 255, 0.1);
  color: #a0a0ab;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  line-height: 1.4;
}

.form-group-item input,
.form-group-item textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 1rem 1.2rem;
  border-radius: 2px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-group-item select {
  width: 100%;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background: #121316 !important; /* Solid dark background to prevent rendering bleed */
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 1rem 1.2rem;
  border-radius: 2px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.95rem;
  outline: none !important;
  transition: none !important; /* Disable transition to prevent rendering flash */
  -webkit-tap-highlight-color: transparent !important; /* Disable tap flash on mobile */
}

.form-group-item select option {
  background-color: #121316; /* Dark background to match theme */
  color: #ffffff;            /* White text for contrast */
}

.form-group-item input:focus,
.form-group-item textarea:focus {
  border-color: #ffbe3b;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 10px rgba(255, 190, 59, 0.15);
}

.form-group-item select:focus,
.form-group-item select:active,
.form-group-item select:focus-visible,
.form-group-item select:hover {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  outline: none !important;
  transition: none !important;
}

.form-group-item select:focus,
.form-group-item select:active,
.form-group-item select:focus-visible {
  background: #1a1b20 !important; /* Keep solid dark background */
  border-color: #ffbe3b !important;
  box-shadow: 0 0 10px rgba(255, 190, 59, 0.15) !important;
}

.form-group-item input::placeholder,
.form-group-item textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.9rem;
}

/* Select wrapper style */
.select-wrapper {
  position: relative;
  width: 100%;
}

.select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 3rem;
}

.select-wrapper::after {
  content: '';
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 6px;
  background-color: #ffbe3b;
  clip-path: polygon(100% 0, 0 0, 50% 100%);
  pointer-events: none;
}

/* Dummy reCAPTCHA */
.recaptcha-dummy-wrapper {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-start;
}

.recaptcha-dummy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #121316;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  padding: 0 0.8rem 0 1.2rem;
  width: 100%;
  max-width: 302px;
  height: 76px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-family: Roboto, helvetica, arial, sans-serif;
  box-sizing: border-box;
}

.recaptcha-checkbox-container {
  display: flex;
  align-items: center;
}

.recaptcha-checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.recaptcha-checkbox-input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.recaptcha-checkbox-custom {
  position: relative;
  height: 24px;
  width: 24px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  margin-right: 0.8rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.recaptcha-checkbox-label:hover .recaptcha-checkbox-custom {
  border-color: rgba(255, 255, 255, 0.3);
}

.recaptcha-checkbox-input:checked ~ .recaptcha-checkbox-custom {
  background-color: #121316;
  border-color: #ffbe3b;
}

.recaptcha-checkbox-input:checked ~ .recaptcha-checkbox-custom::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid #ffbe3b;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
  animation: check-fade 0.2s ease-out;
}

@keyframes check-fade {
  from {
    opacity: 0;
    transform: rotate(45deg) scale(0.5);
  }
  to {
    opacity: 1;
    transform: rotate(45deg) scale(1);
  }
}

.recaptcha-text {
  font-size: 0.85rem;
  color: #ffffff;
  font-weight: 400;
}

.recaptcha-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
  width: 70px;
}

.recaptcha-logo-svg {
  margin-bottom: 2px;
}

.recaptcha-brand {
  font-size: 0.55rem;
  font-weight: 500;
  color: #a0a0ab;
  letter-spacing: 0.05em;
}

.recaptcha-policy {
  font-size: 0.5rem;
  color: #6b6b76;
  margin-top: 1px;
}

.recaptcha-policy a {
  color: #6b6b76;
  font-size: 0.4rem;
}

.recaptcha-policy a:hover {
  text-decoration: underline;
  color: #a0a0ab;
}

.recaptcha-policy .divider {
  margin: 0 1px;
}

/* Submit Button */
.form-submit-row {
  margin-top: 0.5rem;
}

.contact-submit-btn {
  width: 100%;
  background-color: transparent;
  color: #ffbe3b;
  border: 1px solid #ffbe3b;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  padding: 1.1rem;
  border-radius: 0;
  cursor: pointer;
  font-size: 1rem;
  letter-spacing: 0.1em;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.contact-submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffbe3b;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}

.contact-submit-btn:hover {
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 190, 59, 0.15);
}

.contact-submit-btn:hover::before {
  transform: scaleX(1);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .contact-faq-section {
    padding: 80px 0;
  }
  
  .contact-faq-section .section-title {
    font-size: 1.8rem;
  }
  
  .faq-question {
    padding: 1.2rem 1.4rem;
    font-size: 0.95rem;
  }
  
  .faq-icon-q, .faq-icon-a {
    font-size: 1.3rem;
    margin-right: 0.8rem;
  }
  
  .faq-answer {
    padding: 0 1.4rem 1.4rem 1.4rem;
  }
  
  .recaptcha-dummy {
    max-width: 100%;
  }
}

/* ----------------------------------------------------
   12. Footer Customization (Image layout)
---------------------------------------------------- */
.footer-image-wrapper {
  max-width: 450px;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.footer-image {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.footer-image:hover {
  transform: scale(1.02);
  border-color: rgba(255, 190, 59, 0.3);
}

/* Responsive adjustments for footer */
@media (max-width: 768px) {
  footer .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.5rem;
  }
  
  footer .footer-brand {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .footer-image-wrapper {
    max-width: 100%;
    justify-content: center;
  }
  
  .footer-image {
    max-width: 90%;
    margin: 0 auto;
  }
}

/* ----------------------------------------------------
   13. Creator Video Customization
---------------------------------------------------- */
.creator-video {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.creator-image-wrapper:hover .creator-video {
  transform: scale(1.03); /* Match the zoom animation of images */
}

/* ----------------------------------------------------
   14. Hero Area B Customization
---------------------------------------------------- */
.hero-card-b {
  position: relative;
  z-index: 3;
  width: 90%;
  max-width: 800px; /* Aligned with Area A */
  background: var(--glass-white);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 2.5rem 3rem;
  border-radius: 8px;
  color: var(--text-dark);
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  margin-top: 2.2rem;
  
  /* Slide & Fade Animation (delayed slightly after Area A) */
  opacity: 0;
  animation: fadeInCard 1.8s cubic-bezier(0.25, 1, 0.5, 1) both;
  animation-delay: 1.3s;
}

.hero-b-text {
  font-family: 'Noto Serif JP', 'Playfair Display', 'Georgia', serif;
  font-size: 0.96rem;
  line-height: 2;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #111111;
  text-align: center;
  word-break: keep-all; /* Prevent unnatural word wrapping in Japanese */
  overflow-wrap: break-word;
}

.hero-b-line {
  display: inline-block;
  white-space: nowrap;
}

.hero-b-phrase {
  display: inline-block;
}

/* sub element rendering */
.hero-headline sup {
  font-size: 0.62em;
  top: -0.35em;
  margin-left: 0.05em;
  vertical-align: super;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .hero-card-b {
    padding: 2rem 1.8rem;
    margin-top: 1.5rem;
  }
  
  .hero-b-text {
    font-size: 0.92rem !important;
    line-height: 1.8 !important;
    text-align: center !important;
    word-break: keep-all !important;
  }
}

/* ====================================================
   Emergency Layout Fixes & Background Restoration
   ==================================================== */

/* 1. Hero Section Setup */
.hero {
  height: auto !important; /* Allow growing to accommodate both cards */
  min-height: 100vh !important;
  overflow: visible !important;
  padding: 0 0 100px 0 !important; /* Reset padding-top, adjust padding-bottom */
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

/* 2. Restore Background Image Settings (Prevent Stretch) */
.hero-bg {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100vh !important; /* Keep background image height locked to viewport height */
  background-image: linear-gradient(to bottom, rgba(7, 8, 10, 0.1) 60%, #07080a 100%), 
                    url('assets/hero-bg.png') !important;
  background-size: cover !important;
  background-position: center top !important; /* Restore normal view from top center */
  background-repeat: no-repeat !important;
  z-index: 0 !important;
  transform-origin: center center !important;
  animation: backgroundZoom 20s linear infinite alternate !important;
}

/* 3. Logo Text Adjustment (Push down) */
.hero-title-bg {
  margin-top: clamp(6rem, 12vw, 10rem) !important; /* Push title down so it never clips at the top */
  margin-bottom: clamp(2rem, 4vw, 3rem) !important;
  position: relative !important;
  z-index: 2 !important;
}

/* 4. Hero Card A (Area A) Re-adjustment */
.hero-card {
  max-width: 800px !important; /* Revert to maximum elegant width */
  width: 90% !important;
  padding: 3rem 2.5rem !important;
  box-sizing: border-box !important;
  position: relative !important;
  z-index: 3 !important;
}

.hero-headline {
  font-size: clamp(1.3rem, 2.4vw, 1.85rem) !important;
  line-height: 1.6 !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  margin-bottom: 1.5rem !important;
}

/* Button container adjustments */
.hero-actions {
  width: 100% !important;
  gap: 1.2rem !important;
  justify-content: center !important;
}

/* 5. Hero Card B (Area B) Re-adjustment */
.hero-card-b {
  max-width: 800px !important; /* Keep aligned with Area A */
  width: 90% !important;
  background: var(--glass-white) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  padding: 2.5rem 2.5rem !important;
  border-radius: 8px !important;
  color: var(--text-dark) !important;
  text-align: center !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25) !important;
  box-sizing: border-box !important;
  position: relative !important;
  z-index: 3 !important; /* Elevated above background but aligned */
  margin-top: 2.2rem !important;
  margin-bottom: 6px !important;
}

/* Fix transition overlap to Creator Showcase */
.creator-section {
  position: relative !important;
  z-index: 5 !important; /* Lift the next section above the absolute background of hero */
  background-color: #07080a !important; /* Ensure it blocks any overflow */
  margin-top: 0 !important;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .hero-title-bg {
    margin-top: 5rem !important;
  }
  
  .hero-card, .hero-card-b {
    padding: 2rem 1.5rem !important;
    width: 92% !important;
  }
  
  .hero-headline {
    font-size: 1.25rem !important;
    line-height: 1.5 !important;
  }
  
  .hero-b-text {
    font-size: 0.95rem !important;
    line-height: 1.8 !important;
  }
  
  .hero-b-line {
    white-space: normal !important;
    display: inline !important;
  }
}
