/* ============================================================
   ROOT VARIABLES
   ============================================================ */
:root {
  --dark: #07140f;
  --dark-2: #0b241f;
  --dark-3: #0f2e26;
  --gold: #d7a84f;
  --gold-light: #e8c97a;
  --gold-dark: #b88e3a;
  --white: #ffffff;
  --muted: #8c9c96;
  --soft: #e7ece9;
  --border-subtle: rgba(215, 168, 79, 0.2);
  --border-glow: rgba(215, 168, 79, 0.35);
  --radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ============================================================
   HERO — Full Viewport with Live Unsplash Image
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--dark);
  
  /* Deep Gradient Overlay + Luxury Unsplash Image */
  background-image: 
    linear-gradient(to bottom, rgba(7, 20, 15, 0.65) 0%, rgba(7, 20, 15, 0.95) 100%),
    url('https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
    
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
  
  /* Subtle cinematic panning animation */
  animation: cinematic-pan 30s ease-in-out infinite alternate;
}

@keyframes cinematic-pan {
  0% { background-position: center; background-size: 100%; }
  100% { background-position: top right; background-size: 105%; }
}

/* --- Animated Gradient Orbs --- */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.2; 
  pointer-events: none;
  z-index: 0;
  animation: orb-drift 18s ease-in-out infinite alternate;
}

.hero::before {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--gold), transparent 70%);
  top: -15%;
  right: -5%;
}

.hero::after {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #1a6b4e, transparent 70%);
  bottom: -10%;
  left: -5%;
  animation-delay: -6s;
}

@keyframes orb-drift {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 40px) scale(0.95); }
  100% { transform: translate(30px, -10px) scale(1.05); }
}

/* ============================================================
   HERO CONTENT
   ============================================================ */
.hero-content {
  position: relative;
  z-index: 5;
  flex: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  max-width: 1400px;
  width: 100%;
  margin: 45px auto;
  padding: 80px 4%;
}

/* --- Left: Text --- */
.hero-text {
  animation: fade-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

@keyframes fade-up {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

.tagline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  background: rgba(215, 168, 79, 0.08);
  border: 1px solid rgba(215, 168, 79, 0.15);
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.tagline::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold);
}

.hero-text h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.05;
  margin: 0 0 20px 0;
}

.hero-text h1 span {
  color: var(--gold);
  font-style: italic;
}

.hero-text p {
  color: var(--soft);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 520px;
  font-weight: 300;
  margin: 0 0 40px 0;
}

/* --- Hero Buttons --- */
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
  text-decoration: none;
  padding: 18px 40px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.4s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.primary-btn {
  background: var(--gold);
  color: var(--dark);
  border: 2px solid var(--gold);
}

.primary-btn:hover {
  background: transparent;
  color: var(--gold);
  box-shadow: 0 0 30px rgba(215, 168, 79, 0.2);
}

.secondary-btn {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.secondary-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================================================
   REDESIGNED LUXURY FORM BOX
   ============================================================ */
.form-box {
  background: rgba(7, 20, 15, 0.45); /* Darker, cleaner glass */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-top: 4px solid var(--gold); /* Gives architectural structure */
  border-radius: var(--radius);
  padding: 45px 40px;
  width: 100%;
  max-width: 480px;
  justify-self: end;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  
  /* Smooth slide up */
  animation: form-slide-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

@keyframes form-slide-up {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

.form-box h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--white);
  margin: 0 0 30px 0;
  text-align: center;
}

/* Cascading fade-in for form items */
.form-box h2,
.input-group,
.budget-group,
.submit-btn {
  animation: item-fade-in 0.8s ease backwards;
}
.form-box h2 { animation-delay: 0.7s; }
.input-group:nth-of-type(1) { animation-delay: 0.8s; }
.input-group:nth-of-type(2) { animation-delay: 0.9s; }
.input-group:nth-of-type(3) { animation-delay: 1.0s; }
.budget-group { animation-delay: 1.1s; }
.submit-btn { animation-delay: 1.2s; }

@keyframes item-fade-in {
  0% { opacity: 0; transform: translateY(15px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* --- Input Groups --- */
.input-group {
  position: relative;
  margin-bottom: 24px;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 22px 18px 10px 18px; /* Taller padding to accommodate label */
  background: rgba(0, 0, 0, 0.4); /* Solid dark contrast */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
}

.input-group select {
  cursor: pointer;
  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='%23d7a84f' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 40px;
}

.input-group select option {
  background: var(--dark-2);
  color: var(--white);
}

.input-group input:focus,
.input-group select:focus {
  border-color: var(--gold);
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 15px rgba(215, 168, 79, 0.15);
}

/* Perfectly aligned floating labels */
.input-group label {
  position: absolute;
  left: 18px;
  top: 18px;
  font-size: 0.9rem;
  color: var(--muted);
  pointer-events: none;
  transition: all 0.2s ease;
  font-weight: 400;
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group select:focus ~ label,
.input-group select:not([value='']) ~ label {
  top: 6px;
  font-size: 0.65rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.input-group input::placeholder {
  color: transparent;
}

/* --- Budget Group --- */
.budget-group {
  margin-bottom: 30px;
}

.budget-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 12px;
}

.budget-input-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 16px;
  transition: border-color 0.3s ease;
}

.budget-input-box:focus-within {
  border-color: var(--gold);
}

.budget-input-box span {
  color: var(--gold);
  font-weight: 600;
  font-size: 1.1rem;
}

.budget-input-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  outline: none;
}

/* --- Custom Range Slider --- */
input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  outline: none;
  cursor: pointer;
  margin-bottom: 10px;
}

input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: 2px solid var(--dark);
  box-shadow: 0 0 0 2px var(--gold);
  transition: transform 0.2s ease;
}

input[type='range']::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

input[type='range'] {
  background: linear-gradient(
    to right,
    var(--gold) calc(var(--val, 6) * 1%),
    rgba(255, 255, 255, 0.1) calc(var(--val, 6) * 1%)
  );
}

/* --- Submit Button --- */
.submit-btn {
  width: 100%;
  padding: 18px;
  background: var(--gold);
  color: var(--dark);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 60px 4%;
  }
}

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }
  .hero-text p {
    margin: 0 auto 36px auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .form-box {
    justify-self: center;
  }
}

@media (max-width: 768px) {
  .hero {
    background-attachment: scroll !important; /* Fixes mobile zoom bug on iOS */
  }
  .hero-text h1 {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
  }
  .form-box {
    padding: 35px 25px;
  }
  .hero-content {
    padding: 40px 5%;
  }
}
