/* =========================================
   1. FONTS & RESET
   ========================================= */
@font-face {
  font-family: 'Aeonik';
  src: url('https://cdn.prod.website-files.com/66de2f1572bcf866302fd41c/66de30ccf3500ac59b739099_Aeonik-Regular.woff2') format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Aeonik';
  src: url('https://cdn.prod.website-files.com/66de2f1572bcf866302fd41c/66de30cc396af3b5cc39c4b6_Aeonik-Medium.woff2') format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PP – Fragment';
  src: url('https://cdn.prod.website-files.com/66de2f1572bcf866302fd41c/66de30cc730b040270305ffa_PPFragment-SerifRegular.woff2') format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  padding: 0;
}

/* =========================================
   2. ROOT VARIABLES
   ========================================= */
:root {
  /* Colors */
  --swatch--light: #e6e6e9; /* The cream background */
  --swatch--dark: #835834;  /* The dark brown text */
  --theme--border: rgba(30, 16, 5, 0.2);
  
  /* Fonts */
  --font--primary-family: "PP – Fragment", sans-serif;
  --font--secondary-family: "Aeonik", sans-serif;
  
  /* Spacing */
  --padding-vertical--main: 8rem;
  --padding-horizontal--main: 4rem;
  --grid-gap--main: 2rem;
  --space--small: 1.5rem;
  
  /* Sizes */
  --max-width--main: 100%;
  --radius--round: 100vw;
}

/* Theme Logic */
[data-theme="light"] {
    --theme--background: var(--swatch--light);
    --theme--text: var(--swatch--dark);
    --button--background: #9c7443; /* Brown Button */
    --button--text: #ffffff;
    --button--hover: #7d5c35;
}

[data-theme="dark"] {
    --theme--background: var(--swatch--dark);
    --theme--text: var(--swatch--light);
}

.loader {
    position: fixed; inset: 0; z-index: 1001;
    display: flex; justify-content: center; align-items: center;
    pointer-events: none;
}
.loader_panel { background-color: var(--swatch--light); width: 50%; height: 100%; position: relative; }
.loader_logo { position: absolute; z-index: 3; color: var(--swatch--dark); width: 7vw; }

/* =========================================
   3. GLOBAL UTILITIES
   ========================================= */
.u-container {
  max-width: var(--max-width--main);
  padding: var(--padding-vertical--main) var(--padding-horizontal--main);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.u-grid-custom {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gap--main);
}

.u-column-custom { grid-column: auto / span 1; }

.u-vflex-left-top { display: flex; flex-direction: column; align-items: flex-start; }
.u-hflex-left-center { display: flex; flex-direction: row; align-items: center; }

.u-text-large { font-family: var(--font--primary-family); font-size: 2rem; line-height: 1.1em; }
.u-text-small { font-family: var(--font--secondary-family); font-size: 0.875rem; }
.u-weight-bold { font-weight: 700; }
.u-hidden-mobile { display: block; }
.u-pointer-off { pointer-events: none; }

.line_wrapper { width: 100%; height: 1px; position: relative; opacity: 0.5; }
.line { width: 100%; height: 100%; background-color: var(--theme--border); }

/* =========================================
   4. PAGE SPECIFIC (Left Column)
   ========================================= */
.contact_section {
  background-color: var(--theme--background);
  color: var(--theme--text);
  font-family: var(--font--secondary-family);
  min-height: 100vh;
  transition: background-color 0.3s ease;
}

/* Sticky Left Sidebar */
.contact_header.u-column-custom {
  grid-column: 1 / span 5; /* Takes up 5/12 columns */
  position: sticky;
  top: 0;
  height: 100vh;
  padding-top: 6rem;
  padding-bottom: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Pushes content to top and bottom */
}
.g_heading {
    font-family: var(--font--primary-family);
    font-size: 9vw; /* Massive Text */
    line-height: 0.85em;
    text-transform: uppercase;
    margin: 0;
    color: var(--theme--text);
}

.g_paragraph_wrap {
    font-family: var(--font--secondary-family);
    font-size: 2vw; /* Massive Text */
    line-height: 1.5em;
    margin: 0;
    color: var(--theme--text);
    padding-top: 5%;

}


/* =========================================
   5. RIGHT COLUMN (FORM)
   ========================================= */
.contact_form_col.u-column-custom {
  grid-column: 7 / span 6; /* Takes up 6/12 columns, starting at 7 */
  padding-top: 6rem;
}

.form_main_wrap { width: 100%; }
.form_group_title {font-size: 1.5rem;}
.form_group { margin-bottom: 2.5rem; }

.form_grid_1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem; /* Space between inputs */
}

.form_label {
  display: block;
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--theme--text);
}

.form_input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--theme--border);
  color: var(--theme--text);
  padding: 0.5rem 0 1rem 0;
  font-family: var(--font--secondary-family);
  font-size: 1.5rem;
  border-radius: 0;
  outline: none;
  transition: border-color 0.3s ease;
}

.form_input:focus { border-bottom-color: var(--theme--text); color: var(--theme--text); }
.form_input::placeholder { color: var(--theme--text); opacity: 0.6; }
.form_input.is-textarea { min-height: 80px; resize: vertical; }

/* Radio Buttons */
.form_radio_group { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem;}
.form_radio_field { display: inline-block; cursor: pointer; position: relative; margin-bottom: 0; }
.w-radio-input { position: absolute; opacity: 0; }

.form_radio_label {
  display: inline-block;
  padding: 0.5rem 0;
  margin-right: 1.5rem;
  font-size: 1.5rem;
  color: rgba(30, 16, 5, 0.5);
  transition: all 0.2s ease;
  cursor: pointer;
}

/* Styling active state for text-only radios */
.form_radio_field:hover .form_radio_label { color: var(--theme--text); }
.form_radio_field input:checked + .form_radio_label {
  color: var(--theme--text);
  font-weight: 500;
  border-bottom: 1px solid var(--theme--text);
}

.u-margin-top-medium { margin-top: 3rem; }

/* --- Button Styling --- */
.msf-nav-buttons { margin-top: 3rem; display: flex; gap: 1rem; }

.btn_main_wrap {
  position: relative;
  display: inline-flex;
  padding: 1rem 2.5rem;
  background-color: var(--button--background);
  border-radius: 50px; /* Pill shape */
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
}

.btn_main_text {
  position: relative;
  z-index: 2;
  font-family: var(--font--secondary-family);
  font-weight: 500;
  text-transform: uppercase;
  color: var(--button--text);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  pointer-events: none;
}

.btn_whipe {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background-color: #805b30; /* Darker brown on hover */
  z-index: 1;
  transition: height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn_main_wrap:hover .btn_whipe { height: 100%; }

.btn_main_wrap.is-secondary {
    background-color: transparent;
    border: 1px solid var(--theme--text);
}
.btn_main_wrap.is-secondary .btn_main_text { color: var(--theme--text); }
.btn_main_wrap.is-secondary:hover .btn_main_text { color: white; }

.btn_submit_input_real {
    position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 10; border: none; background: none; width: 100%; height: 100%;
}

/* Multi-step */
.msf-step { display: none; animation: fadeIn 0.5s ease forwards; }
.msf-step.active-step { display: block; }
.msf-progress { width: 100%; height: 1px; background-color: rgba(30, 16, 5, 0.1); margin-bottom: 4rem; }
.msf-progress-bar { height: 100%; background-color: var(--theme--text); width: 0%; transition: width 0.4s ease; }

#multi-step-form {line-height: 5rem;}

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.msf-thank-you.hidden, .w-form-fail { display: none; }


/* =========================================
   6. MEDIA QUERIES (MOBILE OPTIMIZATION)
   ========================================= */
@media screen and (max-width: 991px) {
  :root { 
    --padding-horizontal--main: 1.5rem; 
    --padding-vertical--main: 4rem;
  }

  #multi-step-form {
    line-height: 2rem;
  }
  /* 1. Layout: Single Column Stack */
  .u-grid-custom { 
    grid-template-columns: 1fr; 
    display: flex; 
    flex-direction: column; 
    gap: 0; /* Remove grid gap, handle with padding */
  }
  
  /* 2. Header Section (Top) */
  .contact_header.u-column-custom {
    position: relative;
    height: auto;
    padding-top: 6rem; /* Space for Nav */
    padding-bottom: 3rem;
    text-align: center; /* Center align like reference image */
    align-items: center;
    border-bottom: none; /* Remove separator line for cleaner look */
  }
  
  .contact_headings.u-vflex-left-top {
    align-items: center; /* Center the flex items */
    width: 100%;
  }

  /* Typography to match reference "START YOUR JOURNEY" */
  .g_heading { 
    font-size: 3.5rem; /* Large readable serif */
    line-height: 1em;
    letter-spacing: -0.02em;
    color: var(--swatch--dark);
    margin-bottom: 1rem;
  }

  /* Subtitle text */
  .g_paragraph_wrap {
    text-align: center;
    font-size: 1rem;
    line-height: 1.5;
    max-width: 90%;
    margin: 0 auto;
    opacity: 0.8;
  }

  /* 3. Form Container */
  .contact_form_col.u-column-custom { 
    padding-top: 0; 
    padding-bottom: 6rem;
  }

  /* 4. Input Styling (Clean Lines) */
  .form_group { 
    margin-bottom: 2rem; 
  }

  /* 1. Reset the Form Grid to stack tightly */
  .form_grid_2 {
    display: flex;
    flex-direction: column;
    gap: 0; /* Removes the large desktop grid gap */
  }

  /* 2. Control space between the Input Line and the NEXT Label */
  .form_field_wrap {
    margin-bottom: 1.5rem; /* Adjust this number to bring fields closer together */
  }

  /* 3. Control space between "NAME" and the "Your Name" placeholder */
  .form_label {
    margin-bottom: 0.25rem; /* Brings label closer to input */
    font-size: 0.75rem; /* Optional: slightly smaller label looks cleaner */
  }

  /* 4. Adjust the input text position relative to the line */
  .form_input {
    padding-top: 0;      /* Remove top padding */
    padding-bottom: 0.5rem; /* Space between text and bottom border */
    margin-bottom: 0;
  }
  
  /* Optional: Remove margin from the last item so it doesn't push the button down too far */
  .form_field_wrap:last-child {
    margin-bottom: 0; 
  }

  .form_label {
    font-family: var(--font--secondary-family);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--swatch--dark);
    margin-bottom: 0.5rem;
  }

  .form_input {
    font-size: 1.125rem; /* 18px prevents iOS zoom on focus */
    padding: 0.5rem 0;
    border-bottom: 1px solid #1e1005; /* Solid dark line */
    background-color: transparent;
    border-radius: 0; /* Remove default rounded corners on iOS */
    color: var(--swatch--dark);
    opacity: 1;
  }

  .form_input::placeholder {
    color: rgba(30, 16, 5, 0.4);
    font-weight: 400;
  }

  /* 5. Radio Buttons (Vertical Stack for Mobile) */
  .form_radio_group {
    flex-direction: column; /* Stack vertically */
    align-items: flex-start;
    width: 100%;
    gap: 0; /* Remove gap, use padding */
  }

  .form_radio_field {
    width: 100%;
    border-bottom: 1px solid rgba(30, 16, 5, 0.1);
    padding: 0.75rem 0;
    margin-right: 0;
  }

  .form_radio_label {
    font-size: 1.125rem;
    margin-right: 0;
    width: 100%;
    display: block;
  }

  /* 6. Buttons */
  .msf-nav-buttons {
    flex-direction: column-reverse; /* Stack buttons, Next on top */
    width: 100%;
    gap: 1rem;
  }

  .btn_main_wrap {
    width: 100%;
    padding: 1.25rem;
    justify-content: center;
    background-color: #9c7443; /* Match the brown button in image */
    border: none;
  }

  .btn_main_wrap.is-secondary {
    background-color: transparent;
    border: 1px solid rgba(30, 16, 5, 0.3);
  }

  .btn_main_text {
    font-size: 1rem;
    letter-spacing: 0.1em;
  }
}

/* Small Phones adjustments */
@media screen and (max-width: 479px) {
    .g_heading { font-size: 3rem; }
    :root { --padding-horizontal--main: 1.25rem; }
}