/* Tryout Flow Styles */
footer{
    padding-bottom: 2vh;
}
/* Container modifications for proper flexbox layout */
.back-arrow img,
.forward-arrow img {
    filter:brightness(0);
}
.tryout-container {
    display: flex;
    flex-direction: column;
    padding-top: 0vh !important;
}

/* Intro Page */
.tryout-intro {
    padding-top: 0vh;
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
    padding-bottom: 4vh;
}

.intro-text {
    font-family: 'Inter', sans-serif;
    font-size: 4vh;
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
    max-width: 80vw;
    padding-left: 3vw;
}

/* Navigation */
.tryout-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0vh;
    margin-top: auto;
}

.nav-arrow {
    font-size: 3vw;
    font-weight: 600;
    color: black;
    text-decoration: none;
    cursor: pointer;
    padding: 2vh 2vw;
}

.nav-arrow:hover {
    opacity: 0.7;
}

.back-arrow {
    align-self: flex-start;
}

.forward-arrow {
    align-self: flex-end;
}

/* Form Content */
.form-content {
    padding-top: 0vh;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 0vh;
    padding-left: 3vw;
}

.form-header {
    margin-bottom: 4vh;
}

.form-title {
    font-family: 'FormaTextTest', 'Inter', sans-serif;
    font-size: 4vw;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0 0 3vh 0;
    border-bottom: 0.3vh solid black;
    padding-bottom: 0.1vh;
    display: inline-block;
}

.form-description {
    font-family: 'Inter', sans-serif;
    font-size: 3vw;
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
    max-width: 80vw;
}
/* ─── IDENTIFICATION FORM LAYOUT ───────────────────────────────── */
.identification-form {
  display: flex;
  flex-direction: column;
  gap: 2vh;                
}

/* Row 1: First + Last */
.form-row {
  display: flex;
  gap: 2vw;
}
.form-group.half-width {
  flex: 1;
}

/* Row 2: Origin (full‑width) */
.form-group:not(.half-width) {
  display: flex;
  flex-direction: column;
  gap: 1vh;
}

/* Row 3: Date of Birth selects */
.date-row {
  display: flex;
  gap: 2vw;
  margin-bottom: 2vh;      /* tighten up vertical space */
}

/* Row 4: Gender options */
.gender-row {
  display: flex;
  gap: 2vw;
  margin-bottom: 2vh;
}

/* ─── FIELDS & SELECTS ────────────────────────────────────────── */
.form-input,
.form-select {
  width: 100%;
  padding: 1.5vh 2.5vw;    
  background-color: #f1f1f1;
  border: none;
  border-radius: 0;
  font-family: 'Inter', sans-serif;
  font-size: 2vw;
  font-weight: 600;
  color: black;
  box-sizing: border-box;
  min-height: calc(3vh + 2vw);
  line-height: 1.2;
}

/* preserve your custom arrow */
.form-select {
  padding-right: 2.5vw;
  padding-left: 2vw;
  display: inline-flex;
  align-items: center;
}

/* focus ring */
.form-input:focus,
.form-select:focus {
  outline: none;
  box-shadow: 0 0 0 0.2vh black;
}

/* labels */
.form-label {
  font-family: 'Inter', sans-serif;
  font-size: 2.25vw;
  font-weight: 500;
  color: black;
  margin-bottom: 0.5vh;
}

/* ─── GENDER BUTTONS ─────────────────────────────────────────── */
.gender-option {
  flex: 1;
  background-color: #f1f1f1;
  border: none;
  border-radius: 0;
  padding: 1.5vh 2.5vw;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 2vw;
  font-weight: 600;
  text-align: center;
  box-sizing: border-box;
  transition: background-color 0.2s;
}
.gender-option:hover {
  background-color: #e6e6e6;
}
.gender-option.selected {
  background-color: #F6F7D2; 
}

/* Green‑out any field once it has content */
.form-input.filled,
.form-select.filled {
  background-color: #F6F7D2;   
}


/* Selection Options (Consumption Limits Page) */
.selection-section {
    margin-bottom: 4vh;
}

.allergies-section {
    margin-bottom: 4vh;
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-size: 2.2vw;
    font-weight: 600;
    margin: 0 0 3vh 0;
    color: black;
}

/* Flexbox layout for both dietary and allergies */
.selection-grid {
  display: grid !important;
  grid-template-columns: repeat(2,max-content);
  grid-auto-rows: auto;
  gap: 2vh 2vw;
}

.selection-option {
  background-color: #f1f1f1;
  border: none;
  padding: 0vh 2.5vw;          
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3.5vw;               
  text-align: left;
  box-sizing: border-box;
  width: fit-content; 
  max-width: none;            
  justify-content: flex-start; 
}

.selection-option:hover {
  background-color: #e6e6e6;
}

.selection-option.selected {
  background-color: #F6F7D2;
}
.selection-option.selected .option-icon {
  background-color: #F6F7D2;
}

/* Override browser autofill yellow */
input[type="text"].form-input.filled {
    background-color: #F6F7D2 !important;
    -webkit-box-shadow: 0 0 0px 1000px #F6F7D2 inset !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #F6F7D2 inset !important;
    -webkit-text-fill-color: black !important;
}

.option-icon {
    width: 8vw;
    height: 8vw;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.selection-option .option-icon img {
  display: block;
  margin: 0;
  width: 6vw;
  height: 6vw;
}

.selection-option .option-text {
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-size: 3vw;
  margin: 0; 
  padding-right: 5vw; 
}

/* Question Pages */
.question-content {
    padding-top: 4vh;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 4vh;
}


.question-main-title {
    font-family: 'FormaTextTest', 'Inter', sans-serif;
    font-size: 4vw;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0;
    max-width: 80vw;
}

.question-section {
    flex-grow: 1;
    margin-bottom: 0vh;
}

.question-info {
    margin-bottom: 2vh;
    display: flex;
    align-items: flex-start;
    gap: 2vw;
}

.question-number {
    font-family: 'Inter', sans-serif;
    font-size: 4.3vw;
    font-weight: 500;
    color: black;
    flex-shrink: 0;
    margin: 0;
}

.question-title {
    font-family: 'Inter', sans-serif;
    font-size: 4.3vw;
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
    color: black;
    flex: 1;
}

/* Answer Options for Questions */
.answer-options {
    display: flex;
    flex-direction: column;
    gap: 2vh;
    margin-bottom: 4vh;
}

.answer-option {
  background-color: #f1f1f1;       /* light grey bg */
  border: none;                    /* no border */
  padding: 0.5vh 2.5vw;            /* reduced vertical padding */
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 2.5vw;
  font-weight: 500;
  color: black;
  display: flex;
  align-items: center;
  justify-content: flex-start;     /* force left alignment */
  gap: 3.5vw;                        /* space between icon & text */
  text-align: left;                /* for any wrapped text */
  width: 100%;
  box-sizing: border-box;
}

.answer-option:hover {
    background-color: #e6e6e6;     /* subtle hover feedback */
}

.answer-option.selected {
   background-color: #F6F7D2;
}

.answer-icon {
  background-color: #f1f1f1;       /* match option bg */
  border: none;
  flex-shrink: 0;
  width: 6vw;
  height: 4vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.answer-option.selected .answer-icon {
    background-color: #F6F7D2;
}
.answer-icon img {
    display: block;
    margin: 0;
    width: 4vw;
    height: 4vh;
    filter: brightness(0) contrast(2);
}

.answer-text {
    flex: 1;
}

/* ─── Progress Bar (background approach) ───────────────────────── */
.progress-bar {
  position: relative;
  width: 100%;
  height: 1.5vh;             
  background-color: #000 !important;    
  margin: 2vh 0;
  --progress: 0%;            
}

.progress-bar .progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--progress);    /* 0–100% */
  background-color: #888888;    /* dark‑gray “fill” */
  pointer-events: none;      /* clicks still land on options */
}



/* Selection Feedback */
.selection-feedback {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4vh;
    color: #ccc;
}

.current-selection {
    display: flex;
    align-items: center;
    gap: 2vw;
}

.selection-label {
    font-family: 'Inter', sans-serif;
    font-size: 1.8vw;
    font-weight: 600;
    color: #ccc;
}

.selected-shape {
    width: 4vw;
    height: 4vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.selected-shape-icon {
    width: 4vw;
    height: 4vw;
}
/* Progress Indicator */
.progress-indicator {
    text-align: right;
}

.progress-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.8vw;
    font-weight: 600;
    color: #666;
    margin-bottom: 1vh;
}


/* Answering Guide Section */
.guide-section {
    background-color: white;
    padding: 4vh 0vw;
    margin-bottom: 4vh;
}

.guide-items {
    display: flex;
    flex-direction: column;
    gap: 8vh;
    padding-right: 4vw;
}

.guide-item {
    display: flex;
    align-items: flex-start;
    gap: 10vw;
}

.guide-number {
    font-family: 'Inter', sans-serif;
    font-size: 4vw;
    font-weight: 500;
    color: black;
    min-width: 2em;
    flex-shrink: 0;
}

.guide-content {
    flex: 1;
}

.guide-text {
    font-family: 'Inter', sans-serif;
    font-size: 3.5vw;
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
    color: black;
}

.continue-button {
    background-color: rgba(255, 255, 0, 0.4);
    border: none;
    padding: 2vh 4vw;
    font-family: 'FormaTextTest', 'Inter', sans-serif;
    font-size: 2.4vw;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 2vh;
}

.continue-button:hover {
    background-color: rgba(255, 255, 0, 0.6);
}

.continue-button:disabled {
    background-color: #e0e0e0;
    cursor: not-allowed;
    color: #999;
}

/* Responsive Adjustments */
@media (max-width: 600px) {

    .tryout-intro,
    .form-content,
    .question-content,
    .review-content {
        padding: 0vh 0;
    }

    .intro-text {
        font-size: 4vw;
    }

    .form-header,
    .review-header {
        margin-bottom: 4vh;
    }

    .guide-section {
        padding: 3vh 4vw;
        margin-bottom: 3vh;
    }

    .guide-items {
        gap: 3vh;
    }

    .guide-item {
        gap: 4vw;
    }

    .guide-number {
        min-width: 1.5em;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group.half-width {
        margin-bottom: 0vh;
    }

    .date-row,
    .gender-row {
        gap: 3vw;
    }

    .selection-grid {
        gap: 2vh 3vw;
    }

    .selection-option {
        min-width: 120px;
        padding: 2vh 3vw;
    }

    .form-input,
    .form-select,
    .gender-option {
        padding: 2vh 4vw;
    }

    .form-select {
        background-position: right 4vw center;
        padding-right: 6vw;
    }

    .tryout-navigation {
        margin-bottom: 1vh;
    }

    .question-section {
        margin-bottom: 3vh;
        gap: 4vw;
    }

    .answer-options {
        gap: 2vh;
        margin-bottom: 5vh;
    }
    .answer-option {
        padding: 1vh 2vw;
    }
    .current-selection {
        gap: 4vw;
    }

    .continue-button {
        padding: 2vh 6vw;
    }
}

@media (min-width: 1200px) {
    .tryout-container {
        min-height: calc(100vh - 20vh);
    }

    .tryout-intro,
    .form-content,
    .question-content,
    .review-content {
        padding: 0vh 0;
    }

    .intro-text {
        max-width: 800px;
    }

    .form-header,
    .review-header {
        margin-bottom: 8vh;
    }

    .guide-section {
        padding: 5vh 2vw;
        margin-bottom: 6vh;
    }

    .guide-items {
        gap: 6vh;
    }

    .guide-item {
        gap: 2vw;
    }

    .form-row,
    .date-row,
    .gender-row {
        gap: 1.5vw;
    }

    .selection-option {
        min-width: 160px;
        padding: 2vh 2vw;
    }

    .form-input,
    .form-select,
    .gender-option {
        padding: 2vh 1.5vw;
    }

    .form-select {
        background-position: right 1.5vw center;
        padding-right: 3vw;
    }

    .tryout-navigation {
        margin-bottom: 1vh;
    }

    .question-section {
        margin-bottom: 6vh;
    }

    .question-info {
        margin-bottom: 5vh;
        gap: 2vw;
    }

    .answer-options {
        gap: 2vh;
        margin-bottom: 5vh;
    }

    .answer-option {
        padding: 2vh 2vw;
    }

    .current-selection {
        gap: 1.5vw;
    }

    .continue-button {
        padding: 3vh 2vw;
    }

    .selection-feedback {
        margin-bottom: 6vh;
    }
}


/* ── iOS Safari resets for buttons ───────────────────────────────── */

/* target all buttons you’re using (including modal‑links, gender, answer, selection buttons) */
button,
.gender-option,
.answer-option,
.selection-option,
.modal-link {
  -webkit-appearance: none;
  appearance: none;
  color: black;        /* override native blue */
  /* if you ever see a blue tap highlight, you can also add: */
  -webkit-tap-highlight-color: transparent;
}

/* ── iOS Safari resets for selects ───────────────────────────────── */

.form-select,
.date-select,
.year-select {
  -webkit-appearance: none;
  appearance: none;
  /* keep your existing padding, background, etc. */
  /* if you want your own arrow, add something like: */
   background: #f1f1f1 url('../assets/arrow-down.svg') no-repeat right 2vw center; 
  /* background-size: 1.5em; */
}

/* ── (optional) global reset, if you’d rather just override every select/button site‑wide ── */
select, button {
  -webkit-appearance: none;
  appearance: none;
  color: black;
  -webkit-tap-highlight-color: transparent;
}


    @media (max-width: 768px) {
       .question-title{
        font-size: 3vw;
       }
    }
