@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

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

html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
input[ type="text"], input[type="email"], textarea, select {
    border: none;
    border-radius: 12px;
    width:550px;
    max-width: 100%;
    padding: 15px 35px 15px 20px;
}
select {
    width:450px;
}
textarea{
    min-height: 125px;
    width:100%;
    max-width: 100%;
}
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
}

.header-inner {
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 15px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-inner .logo img {
    height: 40px;
}

/*language selector start*/
.language-selector {
    position: relative;
    display: inline-block;
    border-radius: 999px;
    padding: 1px;
    background: #f3f3f3;
}

.language-selector select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border-radius: 999px;
    border: 1px solid #d9d9d9;
    background-color: #ffffff;
    padding: 6px 32px 6px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #000000;
    cursor: pointer;
    outline: none;
    width: auto;
    min-width: 70px;
    box-shadow: none;
    min-height: 44px;
}

.language-selector::after {
    content: "▾";
    font-size: 24px;
    color: #000000;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.language-selector:hover select {
    border-color: #c5c5c5;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.03);
}

.language-selector select:focus-visible {
    border-color: #2684ff;
    box-shadow: 0 0 0 2px #2684ff33;
}

.language-selector select::-ms-expand {
    display: none;
}
main {
    flex: 1;
    background: #ddeffb;
}


footer {
    padding: 12px 24px;
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
    text-align: left;
}
#survey-content{
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}
#survey-content>div:not([class]){
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}
.survey-form select {
  background-color: #ffffff;
  border: none;
  font-weight: 500;
  color: #333333;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
  margin-bottom: 20px;
  box-sizing: border-box;
}
.survey-form select:hover {
  background-color: #f8f9fa;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.survey-form select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background-color: #ffffff;
}

/* Mobile Responsive */

.survey-form {
    width: 800px;
    margin: 0 auto;
    padding: 60px 20px 40px 20px;
    display: flex;
    flex-direction: column;
    min-height: 450px;
    justify-content: center;
}

p {
    margin-bottom: 10px;
}
.radio-wrapper {
  display: flex;
  flex-direction: column; /* Stack vertically */
  gap: 15px; 
  padding: 15px;
  border-radius: 8px;
  width: fit-content;
}

.radio-wrapper label {
  display: flex;
  align-items: center;
  font-family: sans-serif;
  font-size: 16px;
  cursor: pointer;
  gap: 15px; /* Space between circle and text */
}

.radio-wrapper input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid #999;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    background: #ffffff;
}

.radio-wrapper input[type="radio"]:checked::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background-color: #333; /* Filled circle */
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
/* progress bar  start*/
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.pagination-progress {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 6px 16px;
    background: #dedede;
    border-radius: 999px;
    font-size: 14px;
}

.page-label {
    white-space: nowrap;
}

.progress-track {
    width: 140px;
    height: 8px;
    background: #ffffff;
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 11%;
    background: #000000;
    border-radius: inherit;
    transition: width 0.25s ease;
}

/* progress bar end*/

/*primary button styles start*/
.survey-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 260px;
    padding: 16px 40px;
    border-radius: 10px;
    border: none;
    background-color: #000000;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.08s ease, box-shadow 0.15s ease;
}


.survey-primary-button:hover {
    background-color: #111111;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.survey-primary-button:active {
    transform: translateY(0);
    box-shadow: none;
}

.survey-primary-button:focus-visible {
    outline: 2px solid #2684ff;
    outline-offset: 3px;
}

/*primary button styles end*/

/*welcome page styles start*/
.survey-main {
    min-height: calc(100vh - 120px);
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
}

.survey-hero {
    background-color: #ddeffb;
    padding: 72px 16px;
    flex: 1;
    display: flex;
    align-items: center;
}

.survey-hero-inner {
    max-width: 960px;
    margin: 0 auto;
}

.survey-hero-title {
    margin: 0;
    font-size: 56px;
    line-height: 1.1;
    font-weight: 700;
    text-align: center;
    color: #000000;
}

.survey-welcome {
    background-color: #ffffff;
    padding: 80px 16px 96px;
    flex: 1 0 auto;
}

.survey-welcome-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.survey-welcome-text {
    margin: 0 0 40px;
    font-size: 22px;
    line-height: 1.5;
    font-weight: 500;
    color: #000000;
}





/*welcome page styles end*/

.survey-question{
    display: flex;
    align-content: center;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}
.survey-question>label{
    margin-bottom: 15px;
    font-weight: 600;
}
.survey-question:first-child>label{
    font-size: 26px;
    font-weight: 500;
}
.survey-question-description{
    display: block;
    margin-bottom: 30px;
    margin-top: 10px;
}
.survey-error{
    margin-top: 15px;
}
.survey-error {
    background-color: #fff1f2;
    color: #8b0836;
    /* border: 1px solid #ff0a0a; */
    /* border-left: 4px solid #D69E2E; */
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);*/
}
/* Icon addition (optional) */
.survey-error::before {
    content: "⚠️ ";
    margin-right: 4px;
}
.nav-buttons {
  display: flex;
  justify-content: space-between;  
  align-items: center;
  margin-top: 50px;              
}

.nav-buttons button {
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  min-height: 44px;
  min-width: 44px;
}

.nav-buttons button.back-button {
  font-weight: 600;
  color: #000000;
}

.nav-buttons button.next-button {
  padding: 10px 32px;
  border-radius: 10px;
  border: 2px solid #000000;
  background-color: #e1f2ff;
  font-weight: 600;
  color: #000000;
  transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  margin-left: auto;
}
.nav-buttons button.submit-button {
  padding: 10px 32px;
  border-radius: 10px;
  border: 2px solid #000000;
  background-color: #000000;
  font-weight: 600;
  color: #ffffff;
  transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  margin-left: auto;
}

.nav-buttons button.back-button:hover,
.nav-buttons button.nav-buttons button.back-button:focus-visible {
  text-decoration: underline;
}
.nav-buttons button.next-button:hover,
.nav-buttons button.next-button:focus-visible,
.nav-buttons button.submit-button:hover,
.nav-buttons button.submit-button:focus-visible {
  background-color: #cfe6ff;     
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.nav-buttons button.submit-button:hover,
.nav-buttons button.submit-button:focus-visible {
  background-color: #cfe6ff;     
  color: #000000;
}

.nav-buttons button.next-button:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
  box-shadow: none;
}


.score-wrapper {
    display: flex;
    gap: 14px;
    padding: 20px 0;
    flex-wrap: wrap;
    width: 100%;
    align-content: space-around;
    justify-content: space-around;
    margin: 20px 0;
}
/* Each label becomes the “pill” */
.score-wrapper label {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;       
  background: #000;          
  color: #fff;              
  font-size: 18px;
  font-weight: 400;
  cursor: pointer;
  position: relative;
  transition: transform 0.1s ease,
              box-shadow 0.1s ease,
              background 0.1s ease,
              color 0.1s ease;
}
/* Hide the native radio but keep it focusable/clickable */
.score-wrapper input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
/* Hover state */
.score-wrapper label:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.18);
}
/* Checked state – style the label when its child input is checked */
.score-wrapper input[type="radio"]:checked + * {
  /* nothing – this selector won't work with your structure */
}
/* Use :has for modern browsers (best visual behavior) */
.score-wrapper label:has(input[type="radio"]:checked) {
  background: #ffffff;        /* selected background */
  color: #000;                /* selected text */
  box-shadow: 0 0 0 2px #000; /* border/outline effect */
}
/* Fallback for browsers without :has (optional, uses outline) */
.score-wrapper input[type="radio"]:focus-visible + span,
.score-wrapper input[type="radio"]:focus-visible {
  outline: none;
}
.score-wrapper label:focus-within {
  outline: 2px solid #4da3ff;
  outline-offset: 3px;
}

/* wrapper */
.checkbox-wrapper{
  display: grid;
  gap: 15px;
  padding: 15px;
  margin: 0;
  margin-bottom: 20px;
}

.checkbox-wrapper > label{
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  column-gap: 15px;
  line-height: 1.25;
  color: #111;
  cursor: pointer;
  user-select: none;
}


/* hide native checkbox */
.checkbox-wrapper input[type="checkbox"]{
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

/* draw custom box */
.checkbox-wrapper > label::before{
  content: "";
  width: 22px;
  height: 22px;
  border: 4px solid #ffffff;
  background: #ffffff;
  box-sizing: border-box;
  display: inline-block;
}

.checkbox-wrapper > label:has(input[type="checkbox"]:checked)::before{
  background: #000;
}

#survey-content:has(.thankyou-wrapper) {
  height: 100%;
  display: flex;
}
.thankyou-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px 60px 20px;
    text-align: center;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    align-content: center;
    justify-content: center;
}

.thankyou-wrapper h1{
    margin: 20px 0px 40px 0px;;
}
@media (max-width: 768px) {
    .header-inner .logo img {
        height: 38px;
    }
    .survey-form select {
        padding: 14px 16px;
    }
    .survey-form {
        width: 100%;
    }
    .survey-hero {
        padding: 56px 16px;
    }
    .survey-hero-title {
        font-size: 40px;
    }
    .survey-welcome {
        padding: 48px 16px 64px;
    }
    .survey-welcome-text {
        font-size: 18px;
    }
    .survey-primary-button {
        width: 100%;
        max-width: 320px;
    }
}