/* Contact Form Styles
 * Extracted from style.css for conditional loading
 * Loaded on: contact-us page only
 * Uses Mailchimp for WP (mc4wp) forms
 */

/* ========================================
   CONTACT PAGE STYLES - PREMIUM 2025
   ======================================== */

/* Contact Page Background - Match homepage dark gradient */
.page-id-contact-us,
body.page-id-36,
body[class*="contact"] .wp-site-blocks {
  background: var(--wp--preset--gradient--hero-dark) !important;
  min-height: 100vh;
  min-height: 100dvh; /* Respects mobile address bar */
}

/* Add subtle gold particle effect like homepage */
body.page-id-36 .wp-site-blocks::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(
      2px 2px at 20% 30%,
      rgba(255, 215, 0, 0.4) 0%,
      transparent 100%
    ),
    radial-gradient(
      2px 2px at 80% 20%,
      rgba(255, 215, 0, 0.3) 0%,
      transparent 100%
    ),
    radial-gradient(
      2px 2px at 40% 70%,
      rgba(255, 215, 0, 0.35) 0%,
      transparent 100%
    ),
    radial-gradient(
      2px 2px at 70% 60%,
      rgba(255, 215, 0, 0.25) 0%,
      transparent 100%
    );
  pointer-events: none;
  z-index: 0;
  animation: particleFloat 20s ease-in-out infinite;
}

/* Main content wrapper - ensure proper z-index
 * padding-top: KEEP !important — overrides inline block style `padding-top:0` in template
 * padding-bottom: KEEP !important — overrides style.css:3661 global `.page-id-36 main { padding-bottom: 0 !important }` */
body.page-id-36 main,
body.page-id-36 main.wp-block-group {
  position: relative;
  z-index: 1;
  padding-top: calc(
    var(--header-height, 110px) + 24px
  ) !important; /* Keep contact content below fixed header */
  padding-bottom: 80px !important;
}

/* Page Title - Premium gold styling (ALL HEADINGS)
 * Specificity boost via double-class to win over theme.json element defaults */
body.page-id-36.page-id-36 .wp-block-post-title,
body.page-id-36.page-id-36 h1.wp-block-heading,
body.page-id-36.page-id-36 h1,
body.page-id-36.page-id-36 .entry-title,
.page-id-36.page-id-36 h1 {
  font-family: var(--wp--preset--font-family--heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--wp--preset--color--gold-bright);
  text-align: center;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow:
    0 3px 12px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(212, 175, 55, 0.6);
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease-out;
}

/* Section Headings like "GET IN TOUCH" - Gold styling */
body.page-id-36.page-id-36 h2.wp-block-heading,
body.page-id-36.page-id-36 h2,
body.page-id-36.page-id-36 h3.wp-block-heading,
body.page-id-36.page-id-36 h3,
.page-id-36.page-id-36 h2,
.page-id-36.page-id-36 h3 {
  font-family: var(--wp--preset--font-family--heading);
  color: var(--wp--preset--color--gold-bright);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Smaller h2 styling */
body.page-id-36.page-id-36 h2,
.page-id-36.page-id-36 h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* Subtitle/Description text - All paragraphs cream/white */
body.page-id-36 .wp-block-post-content > p:first-of-type,
body.page-id-36 .contact-intro {
  font-family: var(--wp--preset--font-family--body);
  font-size: 1.2rem;
  color: var(--wp--preset--color--cream);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px auto;
  line-height: 1.8;
  opacity: 0.9;
}

/* Ensure ALL text on Contact page is visible (white/cream) */
.page-id-36.page-id-36 main,
.page-id-36.page-id-36 main p,
.page-id-36.page-id-36 .mc4wp-form label,
.page-id-36.page-id-36 .mc4wp-form p,
.page-id-36.page-id-36 .wp-block-column p,
.page-id-36.page-id-36 .wp-block-group p,
body.page-id-36.page-id-36 p {
  color: var(--wp--preset--color--white);
}

/* Form Container - Constrained width with glass effect */
body.page-id-36 .mc4wp-form-widget,
body.page-id-36 .mc4wp-form {
  max-width: 650px;
  margin: 0 auto;
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 26px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 215, 0, 0.1);
}

/* Contact form field labels - Gold accent */
.page-id-36 .mc4wp-form label {
  color: var(--wp--preset--color--gold-bright);
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 5px;
  display: block;
}

/* Ensure all form elements use border-box sizing */
.page-id-36 .mc4wp-form input,
.page-id-36 .mc4wp-form textarea,
.page-id-36 .mc4wp-form select {
  box-sizing: border-box;
}

/* Contact form input fields - Premium styling */
.page-id-36 .mc4wp-form input[type="text"],
.page-id-36 .mc4wp-form input[type="email"],
.page-id-36 .mc4wp-form input[type="tel"],
.page-id-36 .mc4wp-form textarea {
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--wp--preset--color--dark-charcoal);
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  padding: 14px 18px;
  width: 100%;
  font-family: var(--wp--preset--font-family--body);
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-id-36 .mc4wp-form input[type="text"]:focus,
.page-id-36 .mc4wp-form input[type="email"]:focus,
.page-id-36 .mc4wp-form input[type="tel"]:focus,
.page-id-36 .mc4wp-form textarea:focus {
  border-color: var(--wp--preset--color--gold-bright);
  outline: 2px solid var(--wp--preset--color--gold-bright);
  outline-offset: 2px;
  box-shadow:
    0 0 0 4px rgba(255, 215, 0, 0.2),
    0 4px 20px rgba(255, 215, 0, 0.15);
  transform: translateY(-2px);
}

/* Textarea specific styling */
.page-id-36 .mc4wp-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* Form field spacing */
.page-id-36 .mc4wp-form p {
  margin-bottom: 14px;
}

/* Form Row Styling */
.page-id-36 .mc4wp-form .form-row {
  margin-bottom: 24px;
}

.page-id-36 .mc4wp-form .form-row label {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.page-id-36 .mc4wp-form .form-row .required {
  color: var(--pl-color-error);
  margin-left: 3px;
}

/* Submit Button - Gold Gradient
 * KEEP !important — overrides style.css:3678-3695 global `input[type="submit"]` rules that use !important */
.page-id-36 .mc4wp-form input[type="submit"] {
  background: var(--wp--preset--gradient--gold-shimmer) !important;
  color: var(--wp--preset--color--rich-black) !important;
  font-family: var(--wp--preset--font-family--heading) !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  padding: 12px 22px !important;
  border: none !important;
  border-radius: 50px !important;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  transition: all 0.3s ease;
  box-shadow: var(--wp--custom--shadows--button);
  display: block;
  width: 100%;
  margin-top: 14px;
}

/* KEEP !important on transform/box-shadow — overrides style.css:3828 global hover rules */
.page-id-36 .mc4wp-form input[type="submit"]:hover {
  transform: translateY(-3px) !important;
  box-shadow: var(--wp--custom--shadows--gold) !important;
  background: var(--wp--preset--gradient--gold-dark) !important;
}

.page-id-36 .mc4wp-form input[type="submit"]:active {
  transform: translateY(-1px) !important;
}

/* Form response messages */
.page-id-36 .mc4wp-response {
  border-radius: 12px;
  padding: 15px 20px;
  margin-top: 20px;
  font-family: var(--wp--preset--font-family--body);
}

.page-id-36 .mc4wp-success {
  background: rgba(46, 204, 113, 0.2);
  border: 1px solid var(--pl-color-success);
  color: var(--pl-color-success);
}

.page-id-36 .mc4wp-error {
  background: rgba(231, 76, 60, 0.2);
  border: 1px solid var(--pl-color-error);
  color: var(--pl-color-error);
}

/* Select Dropdown - Premium Gold Styling */
.page-id-36 .mc4wp-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: rgba(255, 255, 255, 0.95);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23B8860B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 20px;
  color: var(--wp--preset--color--dark-charcoal);
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  padding: 16px 50px 16px 18px;
  width: 100%;
  font-family: var(--wp--preset--font-family--body);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-id-36 .mc4wp-form select:focus {
  border-color: var(--wp--preset--color--gold-bright);
  outline: 2px solid var(--wp--preset--color--gold-bright);
  outline-offset: 2px;
  box-shadow:
    0 0 0 4px rgba(255, 215, 0, 0.2),
    0 4px 20px rgba(255, 215, 0, 0.15);
  transform: translateY(-2px);
}

.page-id-36 .mc4wp-form select:hover {
  border-color: rgba(255, 215, 0, 0.5);
}

/* Mobile responsiveness */
@media (max-width: 767px) {
  body.page-id-36.page-id-36 .wp-block-post-title,
  body.page-id-36.page-id-36 h1.wp-block-heading {
    font-size: 2.2rem;
    letter-spacing: 1px;
  }

  body.page-id-36 .mc4wp-form-widget,
  body.page-id-36 .mc4wp-form {
    padding: 30px 25px;
    margin: 0 15px;
  }

  /* KEEP !important — overrides style.css global submit button !important */
  .page-id-36 .mc4wp-form input[type="submit"] {
    padding: 16px 30px !important;
    font-size: 1rem !important;
  }
}

/* Premium Form Container - Glass Effect */
.contact-form-premium {
  background: rgba(26, 26, 26, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 215, 0, 0.25);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 215, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Contact Hero Image Enhancement */
.contact-hero-image img {
  box-shadow:
    0 12px 40px rgba(255, 215, 0, 0.15),
    0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
}

.contact-hero-image:hover img {
  transform: scale(1.02);
  box-shadow:
    0 16px 50px rgba(255, 215, 0, 0.25),
    0 6px 25px rgba(0, 0, 0, 0.35);
}

/* ========================================
   KEYFRAMES — required by this file
   ======================================== */

@keyframes particleFloat {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(-20px) translateX(10px);
  }
  50% {
    transform: translateY(-10px) translateX(-10px);
  }
  75% {
    transform: translateY(-30px) translateX(5px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
