/**
 * Contact Form 7 & Footer - Light Luxury Minimalist Redesign
 * 
 * Desktop-first responsive 2-column layout with:
 * - Minimalist bottom-border-only form styling
 * - Elegant contact information column
 * - Clean footer row layout
 * - Premium Burgundy & Charcoal aesthetic
 * 
 * Production-ready CSS for Cornel Aesthetics
 * All CF7 functionality preserved | Full accessibility compliance
 */

/* ========================================
   CONTACT SECTION - 2 COLUMN EDITORIAL LAYOUT
   ======================================== */

section#contact.luxury-contact-section {
  padding: 80px 5%;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Left Column - Image */
.luxury-contact-section .contact-image-col {
  position: relative;
  width: 100%;
  height: 600px;
  background-image: url('../images/pexels-stardustmultimedia-28316422.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Optional: Add overlay for better image presentation */
.luxury-contact-section .contact-image-col::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(139, 30, 37, 0.1), transparent);
  pointer-events: none;
}

/* Right Column - Contact Form */
.luxury-contact-section .contact-form-col {
  padding: 20px 0;
}

/* Form Title */
.luxury-contact-section .contact-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: #2D2D2D;
  margin: 0 0 40px 0;
  letter-spacing: -1px;
  line-height: 1.2;
  text-transform: none;
}

/* ========================================
   CONTACT FORM - MINIMALIST BOTTOM BORDERS
   ======================================== */

.cf7-form-wrapper {
  max-width: 100%;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Form Wrapper Container */
.cf7-form-wrapper .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Form Group Spacing */
.cf7-form-wrapper .wpcf7-form-group,
.cf7-form-wrapper .wpcf7-form-control-wrap,
.cf7-form-wrapper .wpcf7-form p {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
}

.cf7-form-wrapper .wpcf7-form-group:last-child,
.cf7-form-wrapper .wpcf7-form-control-wrap:last-child,
.cf7-form-wrapper .wpcf7-form p:last-of-type {
  margin-bottom: 0;
}

/* Form Labels - Clean Typography */
.cf7-form-wrapper label,
.cf7-form-wrapper .wpcf7-form label {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #2D2D2D;
  margin-bottom: 12px;
  display: block;
  line-height: 1.4;
  letter-spacing: 0;
}

/* Input & Textarea - Minimalist Bottom Border */
.cf7-form-wrapper input[type="text"],
.cf7-form-wrapper input[type="email"],
.cf7-form-wrapper input[type="url"],
.cf7-form-wrapper input[type="tel"],
.cf7-form-wrapper input[type="number"],
.cf7-form-wrapper textarea,
.cf7-form-wrapper select,
.cf7-form-wrapper .wpcf7-form input[type="text"],
.cf7-form-wrapper .wpcf7-form input[type="email"],
.cf7-form-wrapper .wpcf7-form input[type="url"],
.cf7-form-wrapper .wpcf7-form input[type="tel"],
.cf7-form-wrapper .wpcf7-form input[type="number"],
.cf7-form-wrapper .wpcf7-form textarea,
.cf7-form-wrapper .wpcf7-form select {
  width: 100%;
  padding: 12px 0;
  background-color: transparent;
  background-image: none;
  border: none;
  border-bottom: 1px solid #CCCCCC;
  border-radius: 0;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  color: #2D2D2D;
  line-height: 1.6;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Placeholder Text - Muted Grey */
.cf7-form-wrapper input::placeholder,
.cf7-form-wrapper textarea::placeholder,
.cf7-form-wrapper .wpcf7-form input::placeholder,
.cf7-form-wrapper .wpcf7-form textarea::placeholder {
  color: #999999;
  opacity: 1;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

/* Input Focus State - Smooth Color Transition */
.cf7-form-wrapper input:focus,
.cf7-form-wrapper textarea:focus,
.cf7-form-wrapper select:focus,
.cf7-form-wrapper .wpcf7-form input:focus,
.cf7-form-wrapper .wpcf7-form textarea:focus,
.cf7-form-wrapper .wpcf7-form select:focus {
  background-color: transparent;
  border-bottom-color: #2D2D2D;
  outline: none;
  box-shadow: none;
}

/* Textarea - Minimalist */
.cf7-form-wrapper textarea,
.cf7-form-wrapper .wpcf7-form textarea {
  resize: vertical;
  min-height: 100px;
  padding: 12px 0;
}

/* Select Dropdown */
.cf7-form-wrapper select,
.cf7-form-wrapper .wpcf7-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%232D2D2D' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 12px 8px;
  padding-right: 20px;
  cursor: pointer;
}

/* Checkbox & Radio - Custom Styling */
.cf7-form-wrapper input[type="checkbox"],
.cf7-form-wrapper input[type="radio"],
.cf7-form-wrapper .wpcf7-form input[type="checkbox"],
.cf7-form-wrapper .wpcf7-form input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 4px 8px 0 0;
  border: 1px solid #CCCCCC;
  background-color: #FFFFFF;
  cursor: pointer;
  vertical-align: middle;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.cf7-form-wrapper input[type="checkbox"]:focus,
.cf7-form-wrapper input[type="radio"]:focus {
  border-color: #2D2D2D;
  outline: none;
}

.cf7-form-wrapper input[type="checkbox"]:checked,
.cf7-form-wrapper .wpcf7-form input[type="checkbox"]:checked {
  background-color: #8B1E25;
  border-color: #8B1E25;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23FFFFFF' d='M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 11-1.06-1.06l7.25-7.25a.75.75 0 011.06 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

.cf7-form-wrapper input[type="radio"] {
  border-radius: 50%;
}

.cf7-form-wrapper input[type="radio"]:checked {
  background-image: radial-gradient(circle, #FFFFFF 40%, transparent 40%);
  background-size: 100% 100%;
}

/* ========================================
   SUBMIT BUTTON - LUXURY PREMIUM STYLE
   ======================================== */

.cf7-form-wrapper .wpcf7-submit,
.cf7-form-wrapper .wpcf7-form input[type="submit"],
.cf7-form-wrapper .wpcf7-form button[type="submit"],
.cf7-form-wrapper button,
.cf7-form-wrapper input[type="submit"] {
  width: 100%;
  padding: 16px 24px;
  background-color: #8B1E25;
  color: #FFFFFF;
  border: none;
  border-radius: 0;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  min-height: 48px;
  margin-top: 0;
  box-shadow: none;
}

.cf7-form-wrapper .wpcf7-submit:hover,
.cf7-form-wrapper .wpcf7-form input[type="submit"]:hover,
.cf7-form-wrapper button:hover,
.cf7-form-wrapper input[type="submit"]:hover {
  background-color: #6F1820;
  transform: none;
}

.cf7-form-wrapper .wpcf7-submit:focus,
.cf7-form-wrapper .wpcf7-form input[type="submit"]:focus,
.cf7-form-wrapper button:focus,
.cf7-form-wrapper input[type="submit"]:focus {
  outline: 2px solid #8B1E25;
  outline-offset: 2px;
  background-color: #6F1820;
}

.cf7-form-wrapper .wpcf7-submit:active,
.cf7-form-wrapper input[type="submit"]:active {
  transform: scale(0.98);
}

/* ========================================
   FORM VALIDATION & ERROR STATES
   ======================================== */

.cf7-form-wrapper .wpcf7-form input.wpcf7-not-valid,
.cf7-form-wrapper .wpcf7-form textarea.wpcf7-not-valid {
  border-bottom-color: #D32F2F;
}

.cf7-form-wrapper .wpcf7-form input.wpcf7-not-valid:focus,
.cf7-form-wrapper .wpcf7-form textarea.wpcf7-not-valid:focus {
  border-bottom-color: #D32F2F;
}

.cf7-form-wrapper span.wpcf7-not-valid-tip {
  display: block;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 12px;
  color: #D32F2F;
  margin-top: 4px;
  line-height: 1.4;
  font-weight: 500;
}

/* Success Message */
.cf7-form-wrapper .wpcf7-mail-sent-ok {
  background-color: transparent;
  border-bottom: 1px solid #2D7A4A;
  color: #2D7A4A;
  padding: 12px 0;
  margin-bottom: 20px;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

/* ========================================
   FOOTER - CLEAN ELEGANT ROW LAYOUT
   ======================================== */

footer.landing-footer {
  background-color: #FFFFFF;
  color: #2D2D2D;
  padding: 40px 5%;
  border-top: 1px solid #EAEAEA;
  position: relative;
}

.landing-footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 0;
  border-bottom: none;
}

/* Footer Logo - Left */
.landing-footer .footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  order: 1;
}

.landing-footer .footer-logo img {
  max-height: 50px;
  width: auto;
  transition: opacity 0.3s ease;
}

.landing-footer .footer-logo img:hover {
  opacity: 0.8;
}

/* Footer Bottom - Center (copyright) */
.landing-footer .footer-bottom {
  text-align: center;
  padding: 0;
  border-top: none;
  order: 2;
  flex-grow: 1;
}

.landing-footer .footer-bottom p {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 13px;
  color: #999999;
  margin: 0;
  line-height: 1.6;
}

/* Footer Contact/Links - Right */
.landing-footer .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
  order: 3;
  text-align: right;
}

.landing-footer .footer-contact h3 {
  display: none;
}

.landing-footer .footer-contact a {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  color: #8B1E25;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.landing-footer .footer-contact a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Footer Legal Links - Minimalist Style Below Copyright */
.landing-footer .footer-legal-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #EAEAEA;
}

.landing-footer .footer-legal-links a {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 12px;
  color: #555555;
  text-decoration: none;
  margin: 0 12px;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.landing-footer .footer-legal-links a:hover {
  color: #8B1E25; /* Burgundy brand color */
  opacity: 1;
  text-decoration: none;
}

.landing-footer .footer-legal-links a:focus-visible {
  outline: 2px solid #8B1E25;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ======================================== */

@media (max-width: 768px) {
  /* Contact Section - Vertical Stack */
  section#contact.luxury-contact-section {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 5%;
  }

  .luxury-contact-section .contact-image-col {
    height: 400px;
    order: 1;
  }

  .luxury-contact-section .contact-form-col {
    order: 2;
    padding: 0;
  }

  .luxury-contact-section .contact-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  /* Form - Adjusted Spacing */
  .cf7-form-wrapper .wpcf7-form-group,
  .cf7-form-wrapper .wpcf7-form-control-wrap,
  .cf7-form-wrapper .wpcf7-form p {
    margin-bottom: 24px;
  }

  .cf7-form-wrapper input[type="text"],
  .cf7-form-wrapper input[type="email"],
  .cf7-form-wrapper input[type="tel"],
  .cf7-form-wrapper textarea {
    font-size: 16px;
    padding: 12px 0;
  }

  /* Footer - Vertical Stack */
  .landing-footer .footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .landing-footer .footer-logo {
    justify-content: center;
    order: 1;
  }

  .landing-footer .footer-bottom {
    text-align: center;
    order: 2;
  }

  .landing-footer .footer-contact {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    text-align: center;
    order: 3;
  }

  /* Legal Links - Mobile */
  .landing-footer .footer-legal-links {
    flex-direction: row;
    justify-content: center;
    margin-top: 15px;
    padding-top: 12px;
  }

  .landing-footer .footer-legal-links a {
    font-size: 11px;
    margin: 0 8px;
  }

  .landing-footer .footer-contact a {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  section#contact.luxury-contact-section {
    padding: 40px 4%;
    gap: 30px;
  }

  .luxury-contact-section .contact-image-col {
    height: 300px;
  }

  .luxury-contact-section .contact-title {
    font-size: 1.75rem;
    margin-bottom: 24px;
  }

  .cf7-form-wrapper input[type="text"],
  .cf7-form-wrapper input[type="email"],
  .cf7-form-wrapper textarea {
    font-size: 16px;
  }

  .cf7-form-wrapper .wpcf7-submit,
  .cf7-form-wrapper button,
  .cf7-form-wrapper input[type="submit"] {
    font-size: 13px;
    letter-spacing: 1.2px;
    padding: 14px 20px;
  }

  footer.landing-footer {
    padding: 30px 4%;
  }

  .landing-footer .footer-content {
    gap: 15px;
  }

  .landing-footer .footer-logo img {
    max-height: 40px;
  }
}

/* ========================================
   ACCESSIBILITY & UTILITIES
   ======================================== */

/* Focus Visible for Keyboard Navigation */
.cf7-form-wrapper *:focus-visible {
  outline: 2px solid #8B1E25;
  outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .cf7-form-wrapper input,
  .cf7-form-wrapper textarea,
  .cf7-form-wrapper .wpcf7-submit,
  .landing-footer a {
    transition: none !important;
  }
}

/* Print Styles */
@media print {
  .cf7-form-wrapper,
  footer.landing-footer {
    border: none;
    box-shadow: none;
    background: #FFFFFF;
  }
}
