/* 
   Virmillion Estates Landing Page Stylesheet
   Design Theme: Modern Timeless Equestrian (1975 - 2026)
   Colors: Earthy Leather Tan (#c18553) & Vermillion Red Accents (#d9381e)
*/

/* --- Import Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,700;1,400&display=swap');

/* --- CSS Variables --- */
:root {
  --color-tan: #c18553;
  --color-tan-light: #d8aa84;
  --color-tan-dark: #976136;
  --color-vermillion: #d9381e;
  --color-vermillion-hover: #b82c16;
  --color-dark: #1e1915;
  --color-dark-light: #2c2520;
  --color-light: #FAF9F5;
  --color-white: #ffffff;
  --color-gray: #7d736a;
  --color-border: rgba(193, 133, 83, 0.25);
  
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.25);
  --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* --- Reset & Base Styles --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-dark);
  color: var(--color-light);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* --- Background Image & Overlay --- */
.bg-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: -2;
}

.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(30, 25, 21, 0.65) 0%, rgba(18, 15, 13, 0.88) 100%);
  z-index: -1;
}

/* --- Main Layout Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* --- Header Section --- */
header {
  text-align: center;
  margin-bottom: 50px;
  animation: fadeInDown 1s ease-out;
}

.brand-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--color-tan-light);
  text-transform: uppercase;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--color-tan);
  padding-bottom: 6px;
}

h1 {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 15px;
  letter-spacing: -0.01em;
}

h1 span {
  color: var(--color-tan-light);
  font-style: italic;
  font-weight: 500;
}

.tagline {
  font-size: 1.25rem;
  font-weight: 300;
  color: #e2ded5;
  max-width: 800px;
  margin: 0 auto;
  letter-spacing: 0.02em;
}

.tagline strong {
  font-weight: 600;
  color: var(--color-white);
  border-bottom: 2px dashed var(--color-vermillion);
}

/* --- Lead Card Layout --- */
.main-card {
  background: rgba(30, 25, 21, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  box-shadow: var(--shadow-premium);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  overflow: hidden;
  margin-bottom: 60px;
  animation: fadeInUp 1s ease-out 0.2s both;
}

/* --- Left Column: Media / Info --- */
.card-media {
  position: relative;
  background-color: var(--color-dark-light);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-right: 1px solid var(--color-border);
}

.marquee-container {
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: #14110f;
  transition: var(--transition-smooth);
}

.marquee-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(193, 133, 83, 0.15);
}

.marquee-container img, 
.marquee-container svg {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.media-badge {
  margin-top: 25px;
  padding: 15px 20px;
  border-radius: 12px;
  background: rgba(193, 133, 83, 0.08);
  border-left: 4px solid var(--color-tan);
  max-width: 480px;
}

.media-badge p {
  font-size: 0.9rem;
  color: #d8aa84;
  font-weight: 400;
  line-height: 1.5;
}

/* --- Right Column: Form Section --- */
.card-form {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-header {
  margin-bottom: 25px;
}

.form-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-white);
  margin-bottom: 8px;
}

.form-header p {
  color: var(--color-light);
  opacity: 0.8;
  font-size: 0.95rem;
}

/* --- Interactive Form Controls --- */
.form-group {
  position: relative;
  margin-bottom: 20px;
}

.form-input {
  width: 100%;
  padding: 16px 16px 8px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  outline: none;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-inset);
}

.form-input:focus {
  border-color: var(--color-tan);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(193, 133, 83, 0.15);
}

/* Floating Label Logic */
.form-label {
  position: absolute;
  left: 16px;
  top: 15px;
  font-size: 0.95rem;
  color: var(--color-gray);
  pointer-events: none;
  transition: var(--transition-smooth);
  transform-origin: left top;
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  transform: translateY(-8px) scale(0.75);
  color: var(--color-tan-light);
}

/* Submit Button styling */
.submit-btn {
  width: 100%;
  padding: 18px;
  background: var(--color-vermillion);
  color: var(--color-white);
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(217, 56, 30, 0.3);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.submit-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s ease-out;
}

.submit-btn:hover {
  background: var(--color-vermillion-hover);
  box-shadow: 0 6px 20px rgba(217, 56, 30, 0.45);
  transform: translateY(-1px);
}

.submit-btn:active {
  transform: translateY(1px);
}

.submit-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(217, 56, 30, 0.4);
}

/* --- Loader & Success Styles --- */
.loading-overlay {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(193, 133, 83, 0.1);
  border-top-color: var(--color-tan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

.success-container {
  display: none;
  text-align: center;
  padding: 20px 10px;
  animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-icon {
  font-size: 4rem;
  color: var(--color-tan);
  margin-bottom: 20px;
}

.success-container h3 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--color-white);
  margin-bottom: 15px;
}

.success-container p {
  font-size: 1.1rem;
  color: #e2ded5;
  margin-bottom: 20px;
  line-height: 1.6;
}

.success-highlight {
  background: rgba(193, 133, 83, 0.1);
  border-left: 4px solid var(--color-tan);
  padding: 15px;
  border-radius: 8px;
  text-align: left;
  margin: 25px auto;
  max-width: 500px;
  font-size: 0.95rem;
  color: var(--color-light);
}

/* --- Agent Footer Section --- */
.agent-section {
  border-top: 1px solid var(--color-border);
  padding-top: 50px;
  margin-top: 20px;
  display: grid;
  grid-template-columns: 160px 1fr 240px;
  gap: 30px;
  align-items: center;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.agent-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid var(--color-tan);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  background-color: var(--color-dark-light);
}

.agent-photo img,
.agent-photo svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-details h4 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--color-white);
  margin-bottom: 5px;
}

.agent-details .broker-name {
  font-size: 1.05rem;
  color: var(--color-tan-light);
  font-weight: 500;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.agent-contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.agent-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: #e2ded5;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.agent-contact-item:hover {
  color: var(--color-white);
}

.agent-contact-item i {
  color: var(--color-tan);
  font-size: 1rem;
}

.agent-logo {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.agent-logo img,
.agent-logo svg {
  max-width: 220px;
  height: auto;
}

/* --- Footer Copyright --- */
footer {
  text-align: center;
  padding: 30px 0;
  font-size: 0.85rem;
  color: var(--color-gray);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 40px;
}

/* --- Animations --- */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* --- Responsive Layout Adjustments --- */
@media (max-width: 992px) {
  .main-card {
    grid-template-columns: 1fr;
  }
  
  .card-media {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding: 30px;
  }
  
  .agent-section {
    grid-template-columns: 120px 1fr;
    gap: 20px;
  }
  
  .agent-logo {
    grid-column: 1 / -1;
    justify-content: center;
    margin-top: 10px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.4rem;
  }
  
  .tagline {
    font-size: 1.1rem;
  }
  
  .card-form {
    padding: 30px 20px;
  }
  
  .agent-section {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  
  .agent-photo {
    margin-bottom: 10px;
  }
  
  .agent-contact-info {
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
}

/* --- Zoho Forms Validation Errors --- */
.zf-errorMessage {
  color: var(--color-vermillion);
  font-size: 0.82rem;
  margin-top: 6px;
  font-weight: 500;
  display: none;
  text-align: left;
  padding-left: 4px;
}

/* --- Terms & Conditions Section --- */
.terms-group {
  margin-top: 25px;
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.terms-text {
  max-height: 120px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.78rem;
  color: #c4beb5;
  line-height: 1.5;
  text-align: left;
}

/* Custom Scrollbar for terms-text */
.terms-text::-webkit-scrollbar {
  width: 6px;
}
.terms-text::-webkit-scrollbar-track {
  background: transparent;
}
.terms-text::-webkit-scrollbar-thumb {
  background: rgba(193, 133, 83, 0.35);
  border-radius: 4px;
}
.terms-text::-webkit-scrollbar-thumb:hover {
  background: rgba(193, 133, 83, 0.55);
}

.terms-text p {
  margin-bottom: 10px;
}
.terms-text p:last-child {
  margin-bottom: 0;
}

/* Checkbox Container styling */
.checkbox-container {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 28px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--color-light);
  user-select: none;
  text-align: left;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-checkmark {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 18px;
  width: 18px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.checkbox-container:hover input ~ .checkbox-checkmark {
  border-color: var(--color-tan);
  background-color: rgba(255, 255, 255, 0.06);
}

.checkbox-container input:checked ~ .checkbox-checkmark {
  background-color: var(--color-tan);
  border-color: var(--color-tan);
}

.checkbox-checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkbox-checkmark:after {
  display: block;
}

.checkbox-container .checkbox-checkmark:after {
  left: 6px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid var(--color-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-text {
  font-size: 0.85rem;
  color: #e2ded5;
}

