
.youth-form-wrap{max-width:980px;margin:24px auto;background:#fff;padding:22px;border-radius:12px;box-shadow:0 8px 30px rgba(0,0,0,0.06);font-family:Inter,Arial,Helvetica,sans-serif}
.youth-tabs-header{display:flex;gap:12px;justify-content:center;margin-bottom:18px}
.youth-tab-btn {
    background: #f3f4f6;
    border: 1px solid #e6e7eb;
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    min-width: 110px;
    text-align: center;
    box-shadow: none;
    transition: all .15s;
}
.youth-tab-btn span{display:block;font-size:12px;color:#6b7280}
.youth-tab-btn.active{background:linear-gradient(180deg,#3b82f6,#2563eb);color:#fff;transform:translateY(-2px);box-shadow:0 8px 20px rgba(37,99,235,0.18)}
.youth-tab{display:none;padding:8px 4px}
label{display:block;margin:10px 0 6px;font-weight:600;color:#333}
.required{color:red;margin-left:6px}
.pill-options{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.pill-options label{display:inline-flex;align-items:center;padding:8px 12px;border-radius:20px;border:1px solid #e5e7eb;background:#fff;cursor:pointer;transition:all .12s;color:#111}
.pill-options label:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(16,24,40,0.06)}
.pill-options input{margin-right:8px}
.youth-form-actions{display:flex;align-items:center;justify-content:space-between;margin-top:18px;gap:12px}
.youth-prev,.youth-next,.youth-submit{padding:10px 18px;border-radius:10px;border:0;cursor:pointer;font-weight:600}
.youth-next,.youth-submit{background:linear-gradient(180deg,#3b82f6,#2563eb);color:#fff}
.youth-prev{background:#f3f4f6;color:#111}
select,input[type=text],input[type=date],textarea{width:100%;padding:10px;border-radius:8px;border:1px solid #e6e7eb;margin:6px 0 12px}
.youth-date-wrap{position:relative;display:flex;align-items:center}
.youth-date-wrap .youth-date{flex:1}
.youth-date-btn{border:0;background:transparent;padding:8px;margin-left:8px;cursor:pointer;color:#374151}
.youth-modal{position:fixed;left:0;top:0;right:0;bottom:0;background:rgba(0,0,0,0.4);z-index:99999;display:flex;align-items:center;justify-content:center}
.youth-modal-inner{background:#fff;padding:20px;border-radius:10px;max-width:480px;width:90%;text-align:center;box-shadow:0 10px 30px rgba(2,6,23,0.08)}
.youth-modal-inner p{margin:12px 0;font-size:16px}
@media (max-width:640px){ .subjects-selects select{width:100%;margin-bottom:8px} .pill-options label{width:100%} .youth-tabs-header{flex-wrap:wrap} }








.youth-form-wrap {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  padding: 40px 50px;
  max-width: 950px;
  margin: 50px auto;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: #333;
}

/* ---------------- TAB HEADER ---------------- */
.youth-tabs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-bottom: 40px;
  padding-bottom: 20px;
}

.youth-tabs-header::after {
  content: "";
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  height: 3px;
  background: #e0e0e0;
  border-radius: 3px;
}

.youth-tab-btn {
  flex: 1;
  background: none;
  border: none;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  color: #888;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.youth-tab-btn .step-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 5px;
    margin-top: 5px;
  border-radius: 50%;
  border: 3px solid #ccc;
  color: #777;
  font-size: 15px;
  background: #fff;
  transition: all 0.3s ease;
}

.youth-tab-btn.active {
  color: #fff;
   background: #17497d !important;
}



.youth-tab-btn.active .step-circle {
  background: #17497d;
  border-color: #fff;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(0, 86, 255, 0.15);
}

.youth-tab-btn:hover:not(.active) .step-circle {
  border-color: #17497d;
  color: #17497d;
}

/* ---------------- FORM LAYOUT ---------------- */
.youth-grid-form section {
  display: none;
}

.youth-grid-form section.active {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px 35px;
}

.youth-grid-form label {
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
  color: #333;
}

.youth-grid-form input,
.youth-grid-form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #d0d0d0;
  background: #fdfdfd;
  font-size: 15px;
  transition: all 0.25s ease;
}

.youth-grid-form input:focus,
.youth-grid-form select:focus {
  border-color: #17497d;
  box-shadow: 0 0 0 3px rgba(0, 86, 255, 0.15);
  outline: none;
}

/* Pill options (radio buttons) */
.pill-options label {
  display: inline-block;
  background: #f5f6fa;
  border-radius: 30px;
  padding: 10px 20px;
  margin: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  color: #333;
}

.pill-options input[type="radio"] {
  display: none;
}

.pill-options label:hover {
  background: #e9efff;
}



#youthStepForm .pill-options label:has(input:checked) {
  background: #17497d;
  color: #fff !important;
  border-color: #17497d;
}
/* ---------------- BUTTONS ---------------- */
.youth-form-actions {
  display: flex;
  justify-content:center;
  align-items: center;
  margin-top: 40px;
  gap: 10px;
}

.youth-form-actions button {
  border: none;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 15px;
}

.youth-prev {
  background: #e0e0e0;
  color: #333;
}

.youth-prev:hover {
  background: #ccc;
}

.youth-next {
  background: #17497d;
  color: #fff;
}

.youth-next:hover {
  background: #0040d1;
}

.youth-submit {
  background: #00b894;
  color: #fff;
}

.youth-submit:hover {
  background: #009874;
}

/* ---------------- MODAL ---------------- */
.youth-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.youth-modal-inner {
  background: #fff;
  border-radius: 12px;
  padding: 25px 35px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.2);
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.youth-modal-inner p {
  font-size: 16px;
  margin-bottom: 20px;
}

#youth-modal-close {
  background: #0056ff;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

#youth-modal-close:hover {
  background: #0040d1;
}

/* ---------------- DATE WRAP ---------------- */
.youth-date-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.youth-date-wrap .youth-date-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  cursor: pointer;
  color: #666;
  transition: color 0.2s ease;
}

.youth-date-wrap .youth-date-btn:hover {
  color: #17497d;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 600px) {
  .youth-form-wrap {
    padding: 25px;
  }

  .youth-tabs-header {
    flex-direction: column;
    gap: 10px;
  }

  .youth-tab-btn .step-circle {
    width: 30px;
    height: 30px;
    margin-bottom: 0;
    margin-right: 6px;
  }
}


@media (max-width: 768px) {
  section.youth-tab {
    grid-template-columns: 1fr;
  }
}


@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}


section.youth-tab {
  display: grid;
 
  gap: 28px 40px;
  align-items: start;
}

section.youth-tab[data-step="1"] {
    grid-template-columns: repeat(2, 1fr); 
}

/* Make heading span full width */
section.youth-tab > h3 {
  grid-column: 1 / -1;
  margin-bottom: 10px;
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a1a;
}

/* Make sure each form-group behaves nicely inside the grid */
section.youth-tab .form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Labels */
section.youth-tab .form-group label {
  font-weight: 600;
  color: #000;
  margin-bottom: 6px;
}

/* Inputs & selects */
section.youth-tab .form-group input,
section.youth-tab .form-group select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 15px;
  transition: all 0.2s ease;
  background-color: #fff;
}

/* Focused fields */
section.youth-tab .form-group input:focus,
section.youth-tab .form-group select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.15);
}

section.youth-tab input[type="checkbox"] {
  
    opacity: 0;
    width: 0px !important;
}








/* ---------------- Quiz PAGES ---------------- */








.instructionleftbox {
    float: left;
}
/* Steps Navigation */
.steps {
    display: flex;
    gap:60px;
    margin-bottom: 10px;
}

.step {
   
    align-items: center;
    padding: 10px 19px;
  
    border-radius:8px;
    font-size: 15px;
    color: #333;
    cursor: pointer;
}

.step span {
    background: #cfd2d4;
    padding: 3px 10px;
    border-radius: 50%;
    margin-right:0px;
}

.step.active {
    background: #1f4f8b;
    color: white;
}

.step.active span {
    background: white;
    color: #1f4f8b;
}

.divider {
    margin: 15px 0 25px 0;
    border: 0;
    border-top: 2px solid #e6e6e6;
}

/* Instruction Box */
.instruction {
    display: flex;
    background: #dcebfc;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.owl {
    width: 60px;
    margin-right: 15px;
}

.instruction-text {
    font-size: 15px;
    line-height: 1.5;
}

/* Adventure Cards */
.adventure-card {
    border-radius: 12px;
    padding: 25px;
    color: white;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
}

.green { background: #47b16d; color:#000; }
.blue  { background: #1867c7;  color:#fff;  }
.darkblue  { background: #0f2244; color:#fff;  }

.green h3 { color:#000; }
.blue h3 { color:#fff;  }
.darkblue h3{  color:#fff;  }

.title {
    font-size: 22px;
    font-weight: bold;
    flex: 1;
}

.start-btn {
    background: rgba(255,255,255,0.6);
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-size: 16px;
    margin-right: 20px;
}

.stars {
    font-size: 22px;
}

/* Footer Buttons */
.footer-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.btn-prev {
    background: #1f80ff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
}

.btn-skip {
    background: #8f8f8f;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
}


.adventure-card {
    width: 100%;
    height: 130px;
    border-radius: 20px;
    padding: 25px 30px;
    margin-bottom: 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    background-size: cover;       /* <<< REQUIRED */
    background-repeat: no-repeat; /* <<< REQUIRED */
}


.adventure-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex:1;
}

.adventure-left h3 {
  
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    padding:0 !important;
}

.start-btn.disabled
{
    cursor: auto;
    color:#cbcbcb;
}
.start-btn {
    background: #dff3d8;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 16px;
    width:120px;
    cursor: pointer;
    transition: 0.2s ease;
}

.adventure-stars img:nth-child(1) {
    transform: translateY(4px) rotate(-8deg);
}
.adventure-stars img:nth-child(2) {
    transform: translateY(-10px);
}
.adventure-stars img:nth-child(3) {
    transform: translateY(4px) rotate(8deg);
}

.start-btn.active:hover {
    background: #c8e8c0;
}

.adventure-stars img {
    width: 45px;
    
}


.quiz3container.youth-form-wrap {
    margin-bottom: 80px;
    padding-top:30px;
}









/* Full-page background */
body.youth-quiz3-page #main-content {
    background-image: url('<?php echo $quiz_bg; ?>');
    background-size: cover !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important; /* Optional for parallax-like effect */
    min-height: 100vh !important;
    width: 100% !important;
}

form#youthQuiz3form {
    text-align: center;
}
.youth-submit {
    background: #2d63ff;
   
    font-size: 18px;
    
}

section.youth-tab .form-group label {
    font-weight: 600;
    color: #000;
    margin-bottom: 20px;
  
    font-size: 16px;
} 

.youth-quiz3-wrapper h2{
    text-align: center;
    color: #fff;
    font-family: 'Poppins';
    font-size: 64px;
    padding-top: 30px;
}
.youth-form-wrap {
  
    margin: 20px auto;
   font-family: 'Poppins';
}
    
    .question-title {
        font-size: 24px;
        font-weight: 700;
        margin-bottom: 20px;
    }

    .quiz-image {
        width:100%;
        border-radius: 10px;
    }

    /* ABCD RADIO BUTTONS AS BOXES */
    .options {
        margin-top: 20px;
        display: flex;
        justify-content: center;
        gap: 20px;
    }

    .option-item input {
        display:none;
    }

    .option-item label {
        padding: 10px 22px;
        background:#e5e9f2;
        border-radius: 20px;
        cursor:pointer;
        font-weight:600;
        border:2px solid transparent;
        transition:0.2s;
    }

    .option-item input:checked + label {
        background:#2d63ff;
        color:#fff;
        border-color:#1c40c9;
    }

    .option-item label:hover {
        background:#d4d8e2;
    }

    /* Navigation Bar */
    .nav-bar {
        margin-top: 30px;
        background:#0c1324;
        padding:20px;
        border-radius:16px;
        color:#fff;
    }

    .progress {
        display:flex;
        align-items:center;
        justify-content:space-between;
        margin-bottom:15px;
    }

    .star {
        font-size:28px;
        opacity:0.4;
        transition:0.2s;
    }
    .star.active {
        opacity:1;
        color:#ffd234;
    }

    .progress-line {
        width:100%;
        height:6px;
        background:#4a4f63;
        border-radius:10px;
        margin:0 10px;
        position:relative;
    }

    .progress-fill {
        width:33%;
        height:100%;
        background:#ffd234;
        border-radius:10px;
    }

    .nav-buttons {
        display:flex;
        justify-content:space-between;
        margin-top:12px;
    }

    .btn {
        background:#d7d7d7;
        padding:12px 18px;
        border-radius:10px;
        font-size:20px;
        cursor:pointer;
        user-select:none;
        transition:0.2s;
    }
    .btn:hover {
        background:#c5c5c5;
    }

    .btn.next {
        background:#2d63ff;
        color:#fff;
    }
    .btn.next:hover {
        background:#204dcc;
    }




.quiz-footer {
    background: #0d1427;
    padding: 18px 20px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    width: 88%;
    justify-content: space-between;
    text-align: center;
    margin: 0 auto;
    height: 187px;
}

/* Left / Right Arrow Buttons */
.nav-btn {
    width: 75px;
    height: 75px;
    border: none;
    border-radius: 10px;
    font-size: 45px;
    cursor: pointer;
  
    margin-top: 25px;
    padding-bottom: 10px !important;
  
}
.nav-btn.prev {
    background: #bfc1c4;
}

.nav-btn.next {
    background: #1e7bff;
    color: #fff;
}

.nav-btn.next.inactive {
    background: #bfc1c4;
}

.nav-btn.prev.active {
    background: #1e7bff;
    color: #fff;
}
/* Center progress area */
.progress-container {
    flex-grow: 1;
    margin: 0 20px;
}

/* STAR ROW */
.stars-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.star {
    font-size: 60px;
    color: #b5b7bd;
    opacity: 1;
}

.star.active {
    color: #f7c823;
}

.star.inactive {
    color: #b5b7bd;
}

.spacer {
    flex-grow: 1;
}

/* DOT + LINE ROW */
.dots-row {
    display: flex;
    align-items: center;
    width: 96%;
    margin: 0 auto;
    height: 40px;
}

.dot {
    width: 22px;
    height: 22px;
    background: #c4c4c4;
    border-radius: 50%;
}

.dot.active {
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    /* position: absolute; */
    /* top: 50%; */
    /* transform: translate(-50%, -50%); */
    border: 6px solid #FFC400;
    box-sizing: border-box;
}

.line {
    height: 4px;
    background: #c3c6cc;
    flex-grow: 1;
}

h1.entry-title.main_title {
    display: none;
}
span.line.quiz1progress {
    background: #ffd234;
   
}

.youth-quiz3-wrapper {
    margin-bottom: 120px;
}


@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {


.youth-quiz3-wrapper h2 {
   
    font-size: 32px;
    padding-top: 0;
}

section.youth-tab .form-group label {
  
    font-size: 15px;
}

section.youth-tab .form-group input, section.youth-tab .form-group select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
    transition: all 0.2s ease;
    background-color: #fff;
}
.option-item label {
    padding: 5px 10px;
}


.nav-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    font-size: 25px;
    cursor: pointer;
    margin-top: 25px;
    padding-bottom: 10px !important;
}
.star {
    font-size: 40px;
}
.steps {
    display: flex;
    gap: 0;
    margin-bottom: 10px;
}

.step {
    text-align: center;
    align-items: center;
    padding: 10px 5px;
    border-radius: 8px;
    font-size: 10px;
    color: #333;
    cursor: pointer;
}
.adventure-card {
    width: 100%;
    height: 90px;
    border-radius: 20px;
    padding: 15px 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.start-btn {
    background: #dff3d8;
    border: none;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 10px;
    width: 50px;
  
    transition: 0.2s 
ease;
    text-align: center;
}

.step span {
    background: #cfd2d4;
    padding: 5px 10px;
}
.adventure-left h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    padding: 0 !important;
}

.adventure-stars img {
    width: 20px;
    float: left;
}
.instructionleftbox {
float: none;
}

    .youth-form-wrap {
        padding: 20px;
    }


.adventure-left {
    display: flex;
    align-items: center;
    gap: 10px;
flex: 1;
}
}
