/* Contact page + Contact Form 7 dedicated styles */
.page-contact {
  position: relative;
  background:
    radial-gradient(circle at 12% 3%, rgba(139, 92, 246, .17), transparent 30%),
    radial-gradient(circle at 88% 14%, rgba(56, 189, 248, .16), transparent 28%),
    linear-gradient(180deg, #fff 0%, #f8f7ff 48%, #fff 100%);
  color: #121237;
  overflow: hidden;
}
.page-contact::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(139,92,246,.28) 0 1px, transparent 1.6px);
  background-size: 72px 72px;
  opacity: .18;
  animation: contactStarField 32s linear infinite;
  z-index: -1;
}
.contact-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 140px 0 104px;
  overflow: hidden;
}
.contact-hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.78) 44%, rgba(255,255,255,.22) 100%),
    url('../images/novamor-cosmic-love-hero.png') center center/cover no-repeat;
  transform: scale(1.03);
  animation: contactHeroDrift 18s ease-in-out infinite alternate;
}
.contact-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 32%, rgba(255,255,255,.55), transparent 18%),
    radial-gradient(circle at 42% 62%, rgba(240,171,252,.26), transparent 24%);
}
.contact-hero__inner { position: relative; z-index: 1; }
.contact-label,
.page-contact .section-heading__sub {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #6d5dfc;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
}
.contact-label::before,
.page-contact .section-heading__sub::before {
  content: '✦';
  letter-spacing: 0;
  color: #38bdf8;
}
.contact-hero__title {
  margin: 18px 0 26px;
  max-width: 780px;
  font-family: 'Noto Serif JP','Cormorant Garamond',serif;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 1.18;
  letter-spacing: .08em;
  font-weight: 600;
  color: #121237;
}
.contact-hero__text {
  max-width: 760px;
  color: #4f5274;
  font-size: 1.06rem;
  line-height: 2.05;
}
.contact-card,
.contact-form-panel,
.contact-policy__box,
.contact-cta {
  position: relative;
  border: 1px solid rgba(139,92,246,.16);
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(18px);
  border-radius: 34px;
  box-shadow: 0 24px 76px rgba(73,63,161,.12);
  overflow: hidden;
}
.contact-card::before,
.contact-form-panel::before,
.contact-policy__box::before {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  right: -130px;
  top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,.17), transparent 70%);
  pointer-events: none;
}
.contact-card { padding: 54px; }
.contact-card h2,
.contact-policy__box h2,
.contact-cta h2 {
  margin: 14px 0 0;
  font-family: 'Noto Serif JP','Cormorant Garamond',serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.35;
  letter-spacing: .06em;
  color: #121237;
}
.contact-card p,
.contact-policy__box p,
.contact-cta p {
  margin-top: 20px;
  color: #555878;
  line-height: 2;
}
.contact-example { position: relative; }
.contact-example__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 48px;
}
.contact-example__item {
  position: relative;
  min-height: 176px;
  padding: 30px;
  border-radius: 26px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(139,92,246,.14);
  box-shadow: 0 16px 48px rgba(73,63,161,.09);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  overflow: hidden;
}
.contact-example__item::after {
  content: '';
  position: absolute;
  inset: auto -35% -60% 20%;
  height: 130px;
  background: radial-gradient(circle, rgba(56,189,248,.18), transparent 72%);
  transition: transform .35s ease, opacity .35s ease;
  opacity: .6;
}
.contact-example__item:hover {
  transform: translateY(-8px);
  border-color: rgba(139,92,246,.42);
  box-shadow: 0 28px 72px rgba(139,92,246,.16);
}
.contact-example__item:hover::after { transform: translateY(-18px); opacity: 1; }
.contact-example__item span {
  display: block;
  margin-bottom: 18px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: #7468e8;
}
.contact-example__item p { position: relative; z-index: 1; margin: 0; color: #2f3358; line-height: 1.8; font-weight: 700; }
.contact-form-panel { padding: 58px; }
.contact-form__lead { margin: 20px 0 34px; color: #555878; line-height: 1.95; }
.page-contact .contact-form {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}
.contact-form .wpcf7 { width: 100%; }
.contact-form .wpcf7-form p { margin: 0 0 22px; }
.contact-form label {
  display: block;
  margin-bottom: 9px;
  font-weight: 800;
  color: #171735;
}
.contact-form input[type='text'],
.contact-form input[type='email'],
.contact-form input[type='tel'],
.contact-form input[type='url'],
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 17px 18px;
  border: 1px solid rgba(139,92,246,.22);
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  color: #171735;
  font-size: 16px;
  line-height: 1.6;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease, transform .25s ease;
}
.contact-form textarea { min-height: 190px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: #8b5cf6;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(139,92,246,.12), 0 14px 34px rgba(73,63,161,.08);
  transform: translateY(-1px);
}
.contact-form input[type='submit'] {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 230px;
  padding: 18px 34px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #171735, #8b5cf6 54%, #38bdf8);
  color: #fff;
  font-weight: 800;
  letter-spacing: .1em;
  cursor: pointer;
  box-shadow: 0 18px 46px rgba(139,92,246,.26);
  transition: transform .3s ease, box-shadow .3s ease, filter .3s ease;
}
.contact-form input[type='submit']:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 64px rgba(139,92,246,.35);
  filter: brightness(1.05);
}
.contact-form .wpcf7-spinner { margin-left: 12px; }
.wpcf7-not-valid-tip { margin-top: 8px; color: #d84a7c; font-size: 13px; }
.wpcf7-response-output {
  margin: 28px 0 0 !important;
  padding: 16px 18px !important;
  border-radius: 16px;
  border-color: rgba(139,92,246,.35) !important;
  background: rgba(139,92,246,.06);
  color: #35375c;
}
.contact-policy__box { padding: 42px; }
.contact-policy__box a { color: #6d5dfc; text-decoration: underline; text-underline-offset: 4px; }
.contact-cta {
  padding: 74px 48px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.28), transparent 42%),
    linear-gradient(135deg, rgba(18,18,55,.96), rgba(139,92,246,.86));
  color: #fff;
}
.contact-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.62) 0 1px, transparent 1.4px);
  background-size: 92px 92px;
  opacity: .22;
  animation: contactStarField 24s linear infinite;
}
.contact-cta > * { position: relative; z-index: 1; }
.contact-cta .contact-label,
.contact-cta h2,
.contact-cta p { color: #fff; }
.contact-cta p { max-width: 760px; margin-left: auto; margin-right: auto; color: rgba(255,255,255,.84); }
@keyframes contactHeroDrift {
  from { transform: scale(1.03) translate3d(0,0,0); }
  to { transform: scale(1.075) translate3d(-18px, 10px, 0); }
}
@keyframes contactStarField {
  from { background-position: 0 0; }
  to { background-position: 220px 360px; }
}
@media (max-width: 1024px) {
  .contact-example__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .contact-hero { min-height: auto; padding: 116px 0 82px; }
  .contact-hero__bg { background-position: center; }
  .contact-card, .contact-form-panel { padding: 38px 24px; }
  .contact-policy__box, .contact-cta { padding: 36px 24px; }
}
@media (max-width: 560px) {
  .contact-example__grid { grid-template-columns: 1fr; }
  .contact-form input[type='submit'] { width: 100%; }
  .contact-hero__text br { display: none; }
}
