/* ---------- Base Layout ---------- */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, "Rokkitt", sans-serif;
    font-weight: 400;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
  }
  
  
  /* Background */
  .landing-page {
    background: url('https://image.mail.aldi.nl/lib/fe38117175640479711479/m/1/25a479d5-6124-4463-a714-b663221d6065.png') no-repeat center center / cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  
  /* ---------- Row 1 (Sticky Header) ---------- */
  .row1 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: #F4F4F4;
    padding: 0.8rem 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  }
  .row1 h6 {
    color: #232C79;
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(0.5rem, 2vw, 1.3rem);
    margin: 0;
  }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
  /* ---------- Row 2 (Logos) ---------- */
  .row2 {
    padding-top: 6rem; /* push down below fixed header */
    padding-bottom: 2rem;
  }
  .index-left-logo { 
    width: clamp(40px, 10vw, 80px);
    height: auto;
    margin-left: 50px;
  }
  
  .right-logo {
    width: 180px;
    height: auto;
    margin-right: 50px;
  }
  
  /* ---------- Main Heading ---------- */
  .row3 h1 {
    color: #FFF;
    font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 6rem);
    line-height: 1.6;
    text-align: center;
    padding: 0 1rem;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3); 
  }
  .highlight {
    background: #c51718;
    padding: 5px 14px;
    border-radius: 4px;
  }
  
    .mobile-grid { 
       display: none;
       
    }

  /* Row 4 */
  .inputs-wrapper {
    margin-top: 20px;
  }
  
  /* Base styles for input grids - layout only, no display */
  .inputs-grid {
    justify-content: center;
    align-items: center;
    gap: 30px;
  }
  
  /* Responsive input grid visibility */
  /* Show desktop grid on larger screens, hide mobile grids */
  .inputs-wrapper .inputs-grid-desktop.inputs-grid {
    display: flex !important;
  }
  .inputs-wrapper .inputs-grid-mobile-row1.inputs-grid,
  .inputs-wrapper .inputs-grid-mobile-row2.inputs-grid {
    display: none !important;
  }
  
  /* On mobile (small screens), hide desktop grid and show mobile grids */
  @media screen and (max-width: 640px) {
    .inputs-wrapper .inputs-grid-desktop.inputs-grid {
      display: none !important;
    }
    .inputs-wrapper .inputs-grid-mobile-row1.inputs-grid,
    .inputs-wrapper .inputs-grid-mobile-row2.inputs-grid {
      display: flex !important;
    }
  }
  
  .inputs-grid input { 
    width: clamp(3rem, 5vw, 9rem);
    height: clamp(3rem, 5vw, 8rem);
    font-family: "Rokkitt", sans-serif;
    text-align: center;
    color: #84402a;
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 7rem);
    border-radius: 5px; 
    border: 2px solid rgb(255, 255, 255); 
    background: rgba(255, 255, 255, 0.15);
    transition: all 3s;
    padding: 0;
    text-transform: uppercase;
  }
  
  .input-field::placeholder {
     color: rgba(255, 255, 255, 0.5);
  }
  .input-field:focus {
    background: rgba(255, 255, 255, 0.53);
    outline: none;
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  }
  
  @media (max-width: 1200px) {
     .inputs-grid {
      justify-content: center; 
      gap: 10px;
      padding: 0;
      margin: 0 10px; 
    }  
  } 
  
  @media (max-width: 760px) {
    .inputs-grid {
      justify-content: center; 
      gap: 10px;
      padding: 0;
      margin: 0 10px; 
    }  
  
    .desktop-grid {
     display: none;
    }
  
    .mobile-grid { 
       display: flex;
       
    }
  }  
  
  /* ---------- Check Button ---------- */
  .check-code-btn {
    background: #232C77;
    color: #FFF;
    border: none;
    border-radius: 12px;
    padding: 1rem 2.5rem;
    text-transform: uppercase;
    font-weight: 700;
    font-size: clamp(1rem, 3vw, 5rem);
    cursor: pointer;
    transition: background 0.3s;
    font-family: Arial, Helvetica, sans-serif;
    margin-bottom: 5rem;
  }
  .check-code-btn:hover {
    background: #1b2365;
  }
  
  /* ---------- Error Message ---------- */
  .oops-btn {
    background-color: #C51718;
    color: #fff;
    border-radius: 6px;
    padding: 1rem 0.7rem;
    font-size: clamp(0.9rem, 2vw, 1.9rem);
    line-height: 1.4;
    display: inline-block;
    max-width: 100%;
    word-break: break-word;
    margin-top: 2rem;
  }
  
  /* Style for the validation error message */
  #error-message {
    display: none; /* Hidden by default */
    background-color: #C51718;
    color: #fff;
    border-radius: 6px;
    padding: 1rem;
    font-size: clamp(0.9rem, 2vw, 1.9rem);
    line-height: 1.4;
    word-break: break-word;
    margin-top: 2rem;
    margin-bottom: 2rem; /* Add some space before the button */
    text-align: center;
    font-weight: 500; /* Rokkitt 500-weight */
    max-width: 100%;
    box-sizing: border-box;
  }
  
  #error-message.show {
    display: inline-block; 
  }
  
  /* Spacers */
  .spacer-10 { height: 1vh; }
  .spacer-80 { height: 3vh; }
  .spacer-150 { height: 10vh; }
  .spacer-180 { height: 12vh; }
  .oops-spacer-180 { height: 14vh; } 
  
  
  /* Terms & Conditons*/
  .terms {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    margin-bottom: 30px;
    z-index: 999;
    padding: 0.8rem 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  }
  
  .terms h6 {
    color: #ffffff;
    font-weight: 500;
    font-size: clamp(0.5rem, 2vw, 2rem);
    margin: 0;
  }
  
  /* ---------- Responsive Behavior ---------- */
  @media screen and (max-width: 1140px) {
    .landing-page {
    background: url('https://image.mail.aldi.nl/lib/fe38117175640479711479/m/1/d6261344-f694-4abb-a0e6-a90d41566351.jpg') no-repeat center center / cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    } 
    .spacer-150, .spacer-80{
      height: 1vh;
    }
    .right-logo {
    width: 100px; 
    }
    .oops-btn {
      margin: 0 20px; 
    }
    
  }
  
  @media screen and (max-width: 640px) {
    .landing-page {
    background: url('https://image.mail.aldi.nl/lib/fe38117175640479711479/m/1/d6261344-f694-4abb-a0e6-a90d41566351.jpg') no-repeat center center / cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    }
    .row2 {
      padding-top: 5rem;
    }
    .row3 h1 {
      font-size: clamp(1.2rem, 5vw, 2rem);
    }
    
  }
  
  /* FORM */
  
  /* === Follow-up Form Box === */
  .main-bg {
    background: url('https://image.mail.aldi.nl/lib/fe38117175640479711479/m/1/25a479d5-6124-4463-a714-b663221d6065.png') no-repeat center center;
    background-size: cover;
    min-height: 100vh;
    color: #000;
  }
  
  .left-logo { 
    max-width: 80px;
    height: auto;
    display: inline-block;
    margin-left: 400px;
  }
  
  /* Form Modal - Responsive sizing that scales with viewport */
  #form-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
  }

  .followup-form-box {
    position: relative;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85);
    padding: 60px 120px;
    max-width: 1216px;
    margin: 0 auto;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    text-align: left;
    color: #000;
    /* Responsive viewport sizing */
    width: 90%;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
    font-size: 75%; /* Reduce all font sizes by 25% */
  }

  /* Ensure form content doesn't overflow */
  #followupForm {
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .form-title { 
    font-size: clamp(2rem, 3vw, 3.125rem);
    font-weight: 700;
    color: #000;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
  }
  
  .form-subtitle {
    color: #000;
    font-size: clamp(1rem, 3vw,  1.75rem);
    margin-bottom: 1.5rem;
    line-height: 1.4;
    font-weight: 400;
  }
  
  .form-field {
    margin-bottom: 1.2rem;
    max-width: 100% !important;
    width: 100%;
    box-sizing: border-box;
  }
  
  .form-field label {
    display: block;
    margin-bottom: 0.5rem;
    color: #000;
    font-size: clamp(1.2rem, 3vw, 1.875rem); 
    font-weight: 700;
  }
  
  #form-voornaam,
  #form-geboortedatum,
  #form-email {
    border-radius: 6px; 
    padding: 0.75rem;
    font-size: 1.5rem;
    width: 100%;
    height: 66px;
    color: #000; 
    background: #D3D3D3;
    box-sizing: border-box;
  }
  
  .form-validated input:invalid {
    border-color: #C51718; 
    border-width: 2px;
  }
  
  .form-validated input:focus:invalid {
    outline: none;
    box-shadow: 0 0 5px rgba(197, 23, 24, 0.5); 
  }
  
  /* === Custom Checkbox Styles === */
  .form-checkboxes input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 40px;
    height: 40px;
    border-radius: 7.111px;
    border: 1.778px solid #000;
    background: #D9D9D9;
    cursor: pointer;
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    align-items: center;
  }
  
  /* Checkmark when checked */
  .form-checkboxes input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 4px;
    left: 9px; 
    color: #963232;
    
  }
  .underline{
    text-decoration-line: underline; 
    display: inline;
  }
  
  .form-checkboxes label {
    display: flex;
    align-items: center; 
    gap: 10px;   
    color: #000; 
    font-size: clamp(1.2rem, 3vw, 1.75rem);
    font-weight: 600;
    margin-bottom: 1rem; 
    cursor: pointer; 
  }
  
  .form-submit-button {
    border-radius: 6.524px;
    background: #232C77;  
    font-weight: 700;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border-radius: 12px; 
    border: none; 
    display: inline-block;
    color: #FFF;
    text-align: center;
    font-size: clamp(1rem, 3vw,  1.75rem);
  }
   
  .form-small-text {
    font-size: clamp(1rem, 3vw,  1.75rem);
    color: #000;
    margin-top: 1rem;
    line-height: 1.4;
    font-weight: 400; 
  }
  .tips-box {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    text-align: center;
    color: #000;
    margin: 5% 10%;
    font-weight: 400;
  }
  .padding-box {
    padding: 60px 120px 80px; 
  }
  
  /* === Responsive === */
  @media (max-width: 1024px) {
  .main-bg {
    background: url('https://image.mail.aldi.nl/lib/fe38117175640479711479/m/1/d6261344-f694-4abb-a0e6-a90d41566351.jpg') no-repeat center center;
    background-size: cover;
    min-height: 100vh;
    color: #000;
  } 
  .followup-form-box {
      padding: 20px 80px;
    }
     .padding-box {
      padding: 20px;
    }
  .left-logo { 
    max-width: 80px;
    height: auto;
    display: inline-block;
    margin-left: 100px;
  }
  }
  
  @media (max-width: 768px) {
  
    .followup-form-box {
      /* Responsive viewport sizing for tablets */
      width: 95%;
      max-width: 95vw;
      max-height: 95vh;
      padding: 1.5rem;
    }
     .padding-box {
      padding: 20px;
    }

    .form-field[style*="max-width:30%"] {
      max-width: 100% !important;
    }

    .form-title {
      font-size: 1.4rem;
    }
    .spacer-150 {
    height: 20px;
  }
  .left-logo { 
    max-width: 80px;
    height: auto;
    display: inline-block;
    margin-left:0;
  }
    h6 { 
    text-align: center; 
    margin-left: 0;
    color: #232C79;
  } 
  
  }
  /* === TIPS PAGE === */
  .tips-title { 
    font-size: clamp(1.5rem, 3vw, 4.125rem);
    font-weight: 700;
    text-align: center;
    color: #000000;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
  }
  
  .tips-subtitle {
    color: #000; 
    font-size: clamp(1rem, 3vw,  2.75rem);
    text-align: center;
    margin-bottom: 1.5rem; 
    padding-top:  1.5rem;
    font-weight: 400; 
    
  }
  
  .tips-button {
    background: #232C77;  
    font-weight: 700;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border-radius: 12px;
    border: none; 
    display: inline-block;
    color: #FFF;
    text-align: center;
    font-size: clamp(1rem, 3vw,  2.75rem);
  }
  
  /* The modal overlay (hidden by default) */
  .tips-overlay {
    display: none; 
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); 
    z-index: 1000; /* Ensures it's on top */
    
    /* Flexbox to center the content */
    display: flex;
    align-items: center;
    justify-content: center;
  
    /* Hiding with opacity for a fade-in effect */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  
  /* This class will be added by JavaScript to show the modal */
  .tips-overlay.show {
    display: flex; 
    visibility: visible;
    opacity: 1;
  }
  
  .close-cross {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2.5rem; 
    color: #000;
    cursor: pointer;
    line-height: 1;
    font-weight: 700;
  }
  
  .close-cross:hover {
    color: #c51718; 
  }

  #close-tips-btn {
    position: relative;
    font-size: 5rem; 
    float: right;
  }
  
  @media (max-width: 480px) {
    .followup-form-box {
      /* Responsive viewport sizing for very small screens */
      width: 100%;
      max-width: 100vw;
      max-height: 100vh;
      padding: 1rem;
    }
    .padding-box {
      padding: 20px;
    }

  }