/* ----------------------------------------------------
   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 */
}