/*
  style.css - Event Setup Form Stylesheet
  ----------------------------------------
  This stylesheet contains all styles for the Event Setup Form.
  It uses a centralized color system via CSS variables for easy theme changes.
*/

/* --- Google Fonts Import --- */
/* Note: Playfair Display is imported via link tags in the HTML file */

/* --- Global Font Styles --- */
body {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  height: 100%;
}

p, li, span, a {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
}

/* --- CENTRALIZED COLOR & STYLE SYSTEM --- */
:root {
  /* Brand Color Palette */
  --primary-accent: #CDA274;
  --primary-accent-hover: #b8925e;
  --primary-headings: #3B3B3B;
  --primary-paragraphs: #1D1D1D;
  --primary-details: #CDA274;
  
  /* Neutral Colors */
  --neutral-white: #ffffff;
  --neutral-light-gray: #f0f0f0;
  --neutral-medium-gray: #e5e7eb;
  --neutral-dark-gray: #2e2e2e;
  
  /* Button Styling */
  --button-primary-bg: #CDA274;
  --button-primary-text: #ffffff;
  --button-primary-hover: #b8925e;
  --button-primary-shadow: rgba(205, 162, 116, 0.25);
  
  /* Form & Input Styling */
  --form-heading-color: #CDA274;
  --form-border-color: #CDA274;
  --form-focus-color: #CDA274;
  
  /* Typography */
  --font-primary: 'Work Sans', sans-serif;
  --font-heading: 'Playfair Display', serif;
  
  /* Borders & Shadows */
  --border-radius: 4px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(205, 162, 116, 0.25);
  --shadow-lg: 0 6px 20px rgba(205, 162, 116, 0.4);
}

/* --- Global Body Layout --- */
body {
  color: var(--primary-paragraphs);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
}

main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Add footer styles here --- */
footer {
  background: #ffffff;
  color: var(--primary-headings, #222);
  padding: 2.5rem 1.5rem;
  margin: 2.5rem 2.5rem 2.5rem 2.5rem;
  border-top: 1.2px solid var(--primary-accent, #CDA274);
  border-bottom: 1.2px solid var(--primary-accent, #CDA274);
  border-radius: 0px;
}

footer .footer-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

footer .social-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--primary-accent, #CDA274);
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease;
  font-size: 1.5rem;
}

footer .social-links a:hover {
  transform: scale(1.15);
  color: var(--primary-accent-hover, #b8925e);
}

footer .copyright {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  margin: 0;
}

@media (max-width: 600px) {
  footer {
    padding: 1.5rem 1rem;
    margin: 0 1rem 1rem 1rem;
  }
  
  footer .social-links {
    gap: 1.5rem;
  }
  
  footer .social-links a {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }
  
  footer .copyright {
    font-size: 0.85rem;
  }
}

/* Ensure footer sits at the bottom of the viewport if content is short */
html, body {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Main content should grow to fill space above footer */
main {
  flex: 1 0 auto;
  margin-top: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Fix for gallery password modal being hidden under overlay */
.modal-overlay {
  position: fixed !important;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(44,44,44,0.45);
  z-index: 10001 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- iOS/iPadOS Select Field Normalization --- */
/* Remove iOS default blue text and background for select fields in forms */
input, select, textarea {
  color: #222 !important;
  background-color: #fff !important;
  -webkit-text-fill-color: #222 !important; /* iOS Safari fix */
  box-shadow: none !important;
}
select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: none !important;
  background: #fff !important;
  color: #222 !important;
  border: 1px solid #ccc;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary-accent, #CDA274) !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(205,162,116,0.12) !important;
}

/* Remove iOS autofill blue background */
input:-webkit-autofill,
select:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color: #222 !important;
  color: #222 !important;
}

/* iOS Safari: Force date input to match other field widths */
input[type="date"] {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* iOS Safari: Remove extra padding and border for date fields */
input[type="date"]::-webkit-input-placeholder { color: #888; }
input[type="date"]::-webkit-datetime-edit { padding: 0 !important; }
input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.5);
}

/* iOS Safari: Match date input height to other fields */
input[type="date"] {
  height: 2.4em !important; /* Match the height of other input fields */
  line-height: 1.2 !important;
  padding-top: 0.4rem !important;
  padding-bottom: 0.4rem !important;
  /* The padding matches the .4rem used on other fields */
}
input[type="date"]::-webkit-datetime-edit {
  line-height: 1.2 !important;
  padding-top: 0.4rem !important;
  padding-bottom: 0.4rem !important;
}

/* iOS Safari: Remove extra right padding from date input to match other fields */
input[type="date"]::-webkit-datetime-edit {
  padding-right: 0 !important;
}
input[type="date"] {
  padding-right: 0.4rem !important; /* Match other fields' right padding */
}

/* --- Form Section Heading Spacing --- */
.form-section-heading {
  margin-bottom: 1.5rem;
}

/* Add this CSS to style the All-Inclusive Packages section with a background image */
.sv-section.bg-yellow {
  background: url('Images/BGimage2.jpeg') center center/cover no-repeat;
  position: relative;
  /* Optional: add an overlay for better text readability */
}
.sv-section.bg-yellow > .sv-section-inner {
  position: relative;
  z-index: 1;
}
/* Optional: overlay for readability */
.sv-section.bg-yellow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6); /* adjust opacity as needed */
  z-index: 0;
}

/* Add this to your style.css */

/* Add padding to the text column in two-column blocks */
.sv-section-inner > div:not(:first-child) {
  padding-left: 1.2rem;
  padding-right: 1.2rem;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .sv-section-inner > div:not(:first-child) {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }
}
@media (max-width: 600px) {
  .sv-section-inner > div:not(:first-child) {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* --- Custom Ring Styling for Card Selections --- */
/* Override Tailwind's default blue ring with gold theme for template, backdrop, and package cards */
.ring-2 {
  --tw-ring-color: var(--primary-accent) !important;
  --tw-ring-offset-width: 0 !important;
  --tw-ring-offset-color: #fff !important;
  box-shadow: 0 0 0 2px var(--primary-accent) !important;
}

/* --- Package Card Restyle --- */
.package-card {
  background: #f5f5f5;
  border: 1px solid #e0e0e0 !important;
  border-radius: 1.5rem !important;
  padding: 2rem 1rem !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  min-width: 0;
  height: 100%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  overflow: visible;
}
.package-card.selected,
.package-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(205,162,116,0.25);
}
.package-header-bar {
  display: none;
}
.package-card-content {
  padding: 0 !important;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 3;
}
.package-card .font-bold.text-base {
  font-size: 1.35rem;
  color: var(--primary-accent, #CDA274);
  margin-bottom: 0.5rem;
  font-weight: 700;
  text-align: center;
}
.package-card .text-xs.text-gray-600.font-semibold {
  color: #666666;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  text-align: center;
}

/* Price styling */
.package-card .text-custom-gold.font-bold.text-lg {
  color: var(--primary-accent, #CDA274);
  margin-top: auto;
  margin-bottom: 0.5rem;
  font-size: 1.75rem;
  text-align: center;
}

/* Hours duration text */
.package-card-content > div:nth-child(3) {
  color: #888888 !important;
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
}

.package-card ul {
  margin: 0;
  padding-left: 0;
  flex: 1;
  font-size: 0.8rem;
  line-height: 1.5;
  list-style: none;
}

.package-card li {
  color: #555555;
  margin-bottom: 0.35rem;
  padding-left: 1.5rem;
  position: relative;
}

.package-card li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-accent, #CDA274);
  font-weight: bold;
}



@media (max-width: 700px) {
  .package-card {
    padding: 1.5rem 1.25rem !important;
  }
  
  .package-card .font-bold.text-base {
    font-size: 1.15rem;
  }
  .package-card .text-xs.text-gray-600.font-semibold {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  .package-card .text-custom-gold.font-bold.text-lg {
    font-size: 1.5rem;
  }
  .package-card ul {
    font-size: 0.75rem;
  }
}

/* --- Template Filter Button Styles --- */
/* Unselected button hover state */
.template-category-btn:not(.bg-custom-gold):hover {
  color: var(--primary-accent, #CDA274) !important;
  border-color: var(--primary-accent, #CDA274) !important;
}

/* Selected button hover state - keep white text */
.template-category-btn.bg-custom-gold:hover {
  color: #ffffff !important;
  border-color: var(--primary-accent, #CDA274) !important;
}

/* --- Form Content Wrapper & Centering --- */
.form-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 2rem 1rem;
  overflow-y: auto;
}

.form-content-wrapper.center-content {
  min-height: calc(100vh - 300px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-content-box {
  width: 100%;
  max-width: 600px;
}

@media (max-width: 768px) {
  .form-content-wrapper {
    padding: 1.5rem 1rem;
  }
  
  .form-content-wrapper.center-content {
    min-height: calc(100vh - 280px);
  }
}

/* --- Button Styling --- */
#prevBtn, #nextBtn, #submitBtn {
  padding: 0.75rem 2rem !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
}

@media (max-width: 768px) {
  #prevBtn, #nextBtn, #submitBtn {
    padding: 0.55rem 1.1rem !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
  }
}

/* --- Form Footer Styling --- */
.form-footer {
  position: sticky;
  bottom: 0;
  z-index: 100;
  background: #ffffff;
  border-top: 2px solid var(--primary-accent, #CDA274);
  padding: 1.5rem 1.25rem;
}

.form-footer-content {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.step-counter {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-headings, #222);
  text-align: center;
}

.form-footer-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.footer-copyright {
  font-size: 0.9rem;
  color: var(--primary-headings, #222);
  text-align: center;
  width: 100%;
}

@media (max-width: 768px) {
  .form-footer {
    padding: 1rem 0.75rem;
  }
  
  .form-footer-content {
    gap: 0.5rem;
  }
  
  .form-footer-buttons {
    gap: 0.3rem;
  }

  .form-footer-buttons button {
    padding: 0.36rem 0.72rem !important;
    font-size: 0.9rem !important;
    line-height: 1.1 !important;
    height: auto !important;
    white-space: nowrap !important;
    min-width: auto !important;
  }
  
  .step-counter {
    font-size: 0.8rem;
  }
}

@media (max-width: 375px) {
  .form-footer-buttons button {
    padding: 0.27rem 0.54rem !important;
    font-size: 0.75rem !important;
    line-height: 1 !important;
  }
}