/* Import Inter font if not already available */
/* @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap'); */

:root {
    --dark-slate-blue: #1e4e5f;
    --blueberry: #464aa6;
    --almond: #fdf5ec;
    --polly: #e0ecf8;
    --inactive-blue: #bbcad3;
    --disable-sky-blue: #dfe2e3;
    --reddish-pink: #ff345e;
    --emerald: #00da7c;
    --bluey-grey: #8d99c4;
    --wuerth-red: #e4002b;
    --wuerth-red-darker: #c30024;
    --grey: #6c757d;
    --grey-darker: #5a6268;
    --white: #ffffff;
    --light-grey-bg: #e9ecef;
    --hover-bg: #f0fafa;
    --hover-border: #85ddee;
    --arrow-grey: #adb5bd;
}

html,body{
    height:100%;        /* makes 100 vh reliable on iOS Safari */
    margin:0;
    padding:0;          /* kill the 20 px body padding */
  }
  
  /* let the outer card stretch the full height */
  .container{
    height:100%;
    display:flex;
    flex-direction:column;
    width:100%;
    margin:0 auto;      /* center the card only when the screen is wider */
    margin-top: 20px;
  }

  
/* General Styles */
body {
    /* font-family: sans-serif; */
    font-family: 'Inter', sans-serif; /* Use Inter font */
    margin: 0;
    padding: 20px;
    /* background: linear-gradient(to bottom, #e0f7fa, #ffffff); */
    background-color: var(--almond); /* Solid fallback color */
    background-image: linear-gradient(to bottom, var(--polly), var(--almond)); /* Use gradient from variables */
    background-attachment: fixed; /* Make gradient fixed to prevent scrolling issues */
    background-size: 100% 100%; /* Ensure gradient covers entire area */
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
    /* color: #005f73; */
    color: var(--dark-slate-blue); /* Use color variable */
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 500px; /* Match button width */
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    background-color: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-sizing: border-box;
}

.logo {
    height: auto;
    margin: 10px 0;
    max-width: 100%;
}

.wuerth-logo {
    width: 272px; /* Full size for Würth logo */
    max-width: 100%; /* Ensure it doesn't overflow */
}

.footprint-logo {
    width: 280px; /* Full size for Footprint logo */
    max-width: 100%; /* Ensure it doesn't overflow */
}

.integration-arrow {
    width: 20px;
    height: 36px;
    margin: 10px 0;
}

/* Original logo style (used in post-selection screens) */
#original-logo {
    width: 64px;
    height: 45px;
    margin-top: 4px;
    margin-bottom: 20px;
    align-self: center; /* Center the logo */
    margin-left: 0; /* Remove left margin offset */
    max-width: 100%;
}

.container {
    text-align: center;
    max-width: 440px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 15px;
    box-sizing: border-box;
}

h1 {
    /* color: #005f73; */
    color: var(--dark-slate-blue);
    /* font-weight: bold; */
    font-weight: 500; /* Changed from 700 to 500 as requested */
    /* margin-bottom: 10px; */
    margin-bottom: 20px; /* Adjust spacing if needed based on design */
    /* font-size: 1.8rem; */
    font-size: 16px; /* Changed from 20px to 16px as requested */
    line-height: 1.4; /* Match Zeplin */
    text-align: center; /* Match Zeplin */
}

h2 {
    /* color: #005f73; */
    color: var(--dark-slate-blue);
    margin-bottom: 20px;
}

.selection-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

p {
    /* color: #005f73; */
    color: var(--dark-slate-blue);
    margin-bottom: 0; /* Remove gap as requested */
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    width: 245px; /* Fixed width as requested */
    margin-left: auto; /* Center horizontally */
    margin-right: auto; /* Center horizontally */
}

/* Button Styles */
button {
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    font-family: inherit;
    /* Remove default focus outline */
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

/* Remove blue highlight on focus/active states */
button:focus, button:active {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

#initial-selection button {
    background-color: var(--white);
    color: var(--dark-slate-blue);
    border: 1px solid var(--inactive-blue);
    padding: 0 16px 0 24px;
    margin: 10px 0;
    border-radius: 15px;
    font-size: 16px;
    width: 100%;
    max-width: 500px; /* Match logo container width */
    text-align: left;
    position: relative;
    font-weight: 700;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#initial-selection button:hover {
    background-color: #f5f8fa; /* Light background close to polly */
    border-color: var(--bluey-grey); /* Use bluey-grey for hover state */
}

/* Keep the arrow, adjust styling if needed */
#initial-selection button::after {
    content: '';
    background-image: url('../../assets/images/icon-chevron-right.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 24px;
    height: 24px;
    display: inline-block;
}

#job-selection button,
#conditions-selection button,
#shoe-type-selection button {
    background-color: var(--wuerth-red);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    margin: 8px;
    border-radius: 5px;
    font-size: 16px; /* 1rem = 16px */
    width: 80%; 
}

#job-selection button:hover,
#conditions-selection button:hover,
#shoe-type-selection button:hover {
    background-color: var(--wuerth-red-darker);
}

/* Selection Sections */
.selection-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    overflow-y: auto; 
    flex: 1 1 auto;          /* occupy all leftover height */
    padding-bottom: 20px;    /* reduced from 120px to eliminate unnecessary scroll */
    min-height: 300px;       /* ensure min height for proper scrolling */
}

/* Progress Steps */
.progress-steps {
    display: flex;
    gap: 8px;
    margin: 24px 0 32px;
    justify-content: center; /* Center the progress steps horizontally */
    width: 100%; /* Ensure full width container */
}

.progress-step {
    width: 80px; /* Adjust width as needed */
    height: 6px;
    background-color: var(--disable-sky-blue);
    border-radius: 3px;
}

.progress-step.active {
    background-color: var(--dark-slate-blue);
}

.progress-step.completed {
    background-color: var(--dark-slate-blue); /* Same color as active for completed steps */
}

/* Job Selection Buttons */
.job-btn {
    background-color: var(--white);
    color: var(--dark-slate-blue);
    border: 1px solid var(--inactive-blue);
    padding: 0 16px 0 24px;
    margin: 10px 0;
    border-radius: 15px;
    font-size: 16px;
    width: 100%;
    max-width: 500px;
    text-align: left;
    position: relative;
    font-weight: 700;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.job-btn:hover {
    background-color: #f5f8fa;
    border-color: var(--bluey-grey);
}

.job-btn::after {
    content: '';
    background-image: url('../../assets/images/icon-chevron-right.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 24px;
    height: 24px;
    display: inline-block;
}

/* Back Button Styling */
.back-btn {
    background-color: transparent;
    color: var(--dark-slate-blue);
    border: 1px solid var(--dark-slate-blue);
    border-radius: 25px;
    margin-top: 32px;
    margin-bottom: 16px;
    padding: 12px 25px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    position: relative;
    /* For fixed position at the bottom if needed */
    /* position: sticky;
    bottom: 20px; */
}

.back-btn:hover {
    background-color: rgba(30, 78, 95, 0.05); /* Light hover effect */
}

.back-arrow {
    margin-right: 8px;
}

/* Remove old job selection button styling */
#job-selection button:not(.back-btn),
#conditions-selection button:not(.back-btn),
#shoe-type-selection button:not(.back-btn) {
    background-color: var(--white);
    color: var(--dark-slate-blue);
    border: 1px solid var(--inactive-blue);
    padding: 0 16px 0 24px;
    margin: 10px 0;
    border-radius: 15px;
    font-size: 16px;
    width: 100%;
    max-width: 500px;
    text-align: left;
    height: 72px;
    position: relative;
    display: flex;
    align-items: center;
    font-weight: 700;
}

#job-selection button:not(.back-btn)::after,
#conditions-selection button:not(.back-btn)::after,
#shoe-type-selection button:not(.back-btn)::after {
    content: '';
    background-image: url('../../assets/images/icon-chevron-right.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 24px;
    height: 24px;
    display: inline-block;
    margin-left: auto;
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        max-width: 95%;
    }

    h1 {
        font-size: 26px; /* 1.6rem = 25.6px, rounded to 26px */
    }

    h2 {
        font-size: 19px; /* 1.2rem = 19.2px, rounded to 19px */
    }

    p {
        font-size: 16px; /* 1rem = 16px */
        margin-bottom: 0; /* Match desktop settings */
    }

    #initial-selection button {
        font-size: 16px; /* 1rem = 16px */ 
        height: 64px;
    }

    #initial-selection button::after {
        right: 20px;
        font-size: 21px; /* 1.3rem = 20.8px, rounded to 21px */
    }

    #job-selection button,
    #conditions-selection button,
    #shoe-type-selection button {
        padding: 10px 20px;
        font-size: 14px; /* 0.9rem = 14.4px, rounded to 14px */
        width: 90%;
    }

    .back-btn {
        padding: 10px 20px;
        font-size: 14px; /* 0.9rem = 14.4px, rounded to 14px */
    }

    .progress-container {
        width: 90%;
    }
}
/* ------------------------------------------- */
/*  Zeplin-accurate sticky Back-button section  */
/* ------------------------------------------- */

.back-btn-wrapper {
  position: sticky;
  bottom: 0;
  width: 100%;
  height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center vertically */
  align-items: stretch;
  padding: 16px 24px 24px;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: none; /* Remove border that might cause a line */
  background-color: rgba(253, 245, 236, 0.95);
  z-index: 20;
  box-sizing: border-box;
}

/* the button itself */
.back-btn {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center; /* Center text horizontally */
  gap: 8px;
  
  width: 100%;
  height: 56px;
  border: 2px solid var(--dark-slate-blue);
  border-radius: 28px;
  font: 700 16px/1 'Inter', sans-serif;
  color: var(--dark-slate-blue);
  cursor: pointer;
  transition: border-color .25s, box-shadow .25s;
  text-align: center; /* Ensure text is centered */
  /* Remove focus outline */
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.back-btn:hover {
  box-shadow: 0 0 0 3px var(--hover-border);
}

.back-arrow {
  font-size: 20px;
  line-height: 1;
  margin-right: 8px;
}

/* Heading styles for consistent look across selection screens */
#job-selection h1,
#conditions-selection h1,
#shoe-type-selection h1 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    color: var(--dark-slate-blue);
    margin-bottom: 20px;
}

/* Preserve initial selection heading style */
#initial-selection h1 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    color: var(--dark-slate-blue);
    margin-bottom: 20px;
}

/* Step subtitle styling to match the original design */
.step-subtitle {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    color: var(--dark-slate-blue);
    margin-top: 0;
    margin-bottom: 32px;
    width: 245px;
    margin-left: auto;
    margin-right: auto;
}

/* Initial selection buttons */
#safety-shoes-btn, 
#casual-shoes-btn {
    width: 100%;
    max-width: 500px; /* Match logo container width */
    margin: 8px 0;
}

/* Responsive styles */
/* Ensure full-size logos on larger screens */
@media screen and (min-width: 581px) {
    .wuerth-logo {
        width: 272px;
    }
    
    .footprint-logo {
        width: 280px;
    }
}

/* Medium-sized screens */
@media screen and (max-width: 580px) {
    .wuerth-logo {
        width: 272px;
    }
    
    .footprint-logo {
        width: 280px;
    }
}

/* iPhone and similar larger mobile devices */
@media screen and (min-width: 390px) and (max-width: 440px) {
    .logo-container {
        padding: 25px 20px; 
    }
    
   .wuerth-logo {
        width: 272px;
    }
    
    .footprint-logo {
        width: 280px;
    }
}

@media screen and (max-width: 440px) {
    body {
        padding: 10px;
    }
    
    .logo-container {
        padding: 20px 15px;
        padding-bottom: 5px;
        margin-bottom: 10px; 
    }
    
    /* Larger logos for modern mobile devices with more screen width */
    .wuerth-logo {
        width: 260px;
    }
    
    .footprint-logo {
        width: 260px;
    }
    
    .integration-arrow {
        width: 24px;
        margin: 8px 0;
    }
    
    h1 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    p {
        font-size: 14px;
    }
    
    #initial-selection h1,
    #job-selection h1,
    #conditions-selection h1,
    #shoe-type-selection h1 {
        font-size: 18px;
    }
    
    .step-subtitle {
        width: 100%;
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    button {
        margin: 5px 0;
        padding: 12px 15px;
    }
    
    #initial-selection p[data-i18n-key="lp.wuerth.start.subHeadline"] {
        margin-bottom: 40px !important;
    }
}

/* Extra small devices */
@media screen and (max-width: 320px) {
    .wuerth-logo {
        width: 180px;
    }
    
    .footprint-logo {
        width: 180px;
    }
    
    h1 {
        font-size: 16px;
    }
    
    p {
        font-size: 13px;
        width: 100%;
    }
    
    button {
        font-size: 14px;
        padding: 10px;
    }
}
  