/* ------------------------- */
/*         Base Styles       */
/* ------------------------- */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    color: #333;
  }
  
  body {
    background: linear-gradient(135deg, #FFEFBA, #FFFFFF);
    padding: 20px;
  }
  
  /* ------------------------- */
  /*        Layout & Container */
  /* ------------------------- */
  .container {
    max-width: 800px;
    background: #fff;
    margin: auto;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  /* ------------------------- */
  /*        Headings           */
  /* ------------------------- */
  h1,
  h2 {
    color: #007bff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    margin-top: 0; /* remove any default extra spacing above headings */
  }
  
  h1 {
    text-align: center;
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }
  
  /* ------------------------- */
  /*        Forms & Inputs     */
  /* ------------------------- */
  label {
    display: block;
    font-weight: bold;
    margin-top: 12px;
  }
  
  .form-input,
  .form-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    outline: none;
  }
  
  .form-input:focus,
  .form-select:focus {
    border-color: #b2b9b7;
    box-shadow: 0 0 0 2px #a7f3d0;
  }
  
  .form-row {
    display: flex;
    justify-content: space-between;
    gap: 10px; /* space between fields */
  }
  
  .form-group {
    flex: 1;
  }
  
  /* Make form inputs a bit wider within form-row */
  .form-input {
    width: 80%;
    padding: 12px;
    font-size: 1rem;
  }
  
  /* Responsive: stack fields on small screens */
  @media (max-width: 768px) {
    .form-row {
      flex-direction: column;
    }
  }
  
  /* ------------------------- */
  /*     Checkboxes & Labels   */
  /* ------------------------- */
  .checkbox-container {
    display: flex;
    align-items: center;
    background: #ffcc00;
    padding: 10px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    text-align: left;
    margin-top: 15px;
  }
  
  .checkbox-container input {
    margin-right: 10px;
    transform: scale(1.5);
  }
  
  /* ------------------------- */
  /*      Privacy Section      */
  /* ------------------------- */
  .privacy-section {
    background: #fff8e1;
    padding: 15px;
    border-radius: 5px;
    border: 2px solid #ffcc00;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: bold;
    text-align: left;
  }
  
  .privacy-section p {
    text-align: left;
    font-size: 16px;
    font-weight: normal;
    margin-bottom: 10px;
  }
  
  /* ------------------------- */
  /*      Event Details        */
  /* ------------------------- */
  .event-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    margin-bottom: 20px;
  }
  
  .event-details h2 {
    text-align: center;
  }
  
  .event-details ul {
    padding-left: 20px;
    list-style-type: disc;
    line-height: 1.6;
  }
  
  .event-details ul li {
    font-size: 1rem;
    margin-bottom: 5px;
  }
  
  /* ------------------------- */
  /*      Form Hidden (Default)*/
  /* ------------------------- */
  .form-hidden {
    display: none;
  }
  
  /* ------------------------- */
  /*     Form Submission Btn   */
  /* ------------------------- */
  button {
    width: 80%;
    margin-top: 15px;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    background-color: #007bff;
    color: #fff;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
  }
  
  button:hover {
    background-color: #FF6347;
  }
  
  /* ------------------------- */
  /*   Hyperlink/Custom Link   */
  /* ------------------------- */
  .custom-link {
    color: #007bff;
    font-weight: bold;
    text-decoration: none;
  }
  
  .custom-link:hover {
    color: #E03E00;
    text-decoration: underline;
  }
  
  /* ------------------------- */
  /*     Form Status Msg       */
  /* ------------------------- */
  .form-status {
    margin-top: 15px;
    font-weight: bold;
    color: green;
    text-align: center;
  }
  
  /* ------------------------- */
  /*     Success Message       */
  /* ------------------------- */
  .success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-top: 20px;
  }
  
  .success-message h2 {
    font-size: 1.5rem;
    color: #28a745;
  }
  
  /* ------------------------- */
  /*    Success Buttons        */
  /* ------------------------- */
  .success-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
  }
  
  #registerAgain {
    background: #00ff62;
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  #registerAgain:hover {
    background: #FF6347;
  }
  
  .blog-link {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 10px 15px;
    font-size: 1rem;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s ease;
  }
  
  .blog-link:hover {
    background: #0056b3;
  }
  
  /* ------------------------- */
  /*          Modal            */
  /* ------------------------- */
  .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; 
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* 
      Add a class like .show on the modal to switch from 
      display: none to display: flex (or you can do it via JS)
    */
    justify-content: center;
    align-items: center;
  }
  
  .modal-content {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    max-width: 500px;
    width: 90%; /* responsive width */
  }
  
  /* ------------------------- */
  /*     Buttons & Links       */
  /* ------------------------- */
  .success-buttons button, 
  .success-buttons a {
    background: #007bff;
    color: #fff;
    border: none;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1rem;
    border-radius: 5px;
    padding: 0.75rem 1.25rem;
    text-decoration: none; 
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .success-buttons button:hover,
  .success-buttons a:hover {
    background: #FF6347;
  }
  
  /* ------------------------- */
  /*     Common .btn Class     */
  /* ------------------------- */
  .btn {
    display: inline-block;
    width: auto; /* override if needed */
    margin-top: 15px;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
  }
  
  .btn-primary {
    background-color: #007bff;
    color: #fff;
    width: 80%; /* if you prefer the main form button wider */
  }
  
  .btn-primary:hover {
    background-color: #FF6347;
  }
  
  .btn-secondary {
    background-color: #28a745;
    color: #fff;
  }
  
  .btn-secondary:hover {
    background-color: #218838;
  }
  
  .btn-tertiary {
    background-color: #007bff;
    color: #fff;
  }
  
  .btn-tertiary:hover {
    background-color: #0056b3;
  }
  
  /* ------------------------- */
  /*     Modal Close Button    */
  /* ------------------------- */
  .modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background-color: transparent;
    color: #999;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem 0.5rem;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    font-size: 1rem; 
  }
  
  .modal-close:hover {
    background-color: #eee;
    color: #333;
  }
  

  /* ------------------------- */
/*   Contingency Table Style */
/* ------------------------- */
.contingency-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
  }
  
  /* Table Headings */
  .contingency-table thead {
    background-color: #007bff;
    color: white;
    text-align: left;
  }
  
  .contingency-table th,
  .contingency-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    font-size: 1rem;
  }
  
  /* Striped Rows */
  .contingency-table tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
  }
  
  /* Hover Effect */
  .contingency-table tbody tr:hover {
    background-color: #ffe5d0;
    transition: background-color 0.3s ease;
  }
  
  /* Responsive Table */
  @media (max-width: 768px) {
    .contingency-table th,
    .contingency-table td {
      padding: 10px;
      font-size: 0.9rem;
    }
  }
  

  /* ------------------------- */
/*  Call-to-Action Section   */
/* ------------------------- */
.cta-section {
    text-align: center;
    background: #fff3e6;
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  .cta-section h2 {
    color: #007bff;
    font-size: 1.8rem;
    margin-bottom: 10px;
  }
  
  .cta-section p {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 10px;
  }
  
  /* CTA Button */
  #startRegistration {
    width: auto;
    padding: 12px 20px;
    font-size: 1.2rem;
  }
  
  /* ----------------------------- */
/*    Scroll Button Styling      */
/* ----------------------------- */
.scroll-to-privacy {
    text-align: center;
    margin-top: 20px;
  }
  
  #scrollToPrivacyBtn {
    width: auto;
    padding: 12px 20px;
    font-size: 1.2rem;
  }

  /* ------------------------- */
/*  Privacy Agreement Style  */
/* ------------------------- */
.privacy-section {
    background: #fff8e1;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #ffcc00;
    margin-bottom: 20px;
    font-size: 16px;
  }
  
  .privacy-section p {
    text-align: left;
    font-size: 1rem;
    margin-bottom: 10px;
  }
  
  /* Improved Checkbox Styling */
  .checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff3cd;
    padding: 12px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
  }
  
  .checkbox-container input {
    transform: scale(1.3);
  }
  
  /* ------------------------------ */
/* Centered Read Agreement Label  */
/* ------------------------------ */
.read-agreement-label {
    text-align: center;
    font-size: 1.2rem;
    color: #007bff; /* Blue to match other labels */
    font-weight: bold;
    margin-bottom: 15px;
}

/* Agreement Notice (below checkbox) */
.agreement-notice {
    text-align: center;
    font-size: 1rem;
    color: #007bff;
    font-weight: bold;
    margin-top: 5px;
}

/* ------------------------------ */
/* Center Align Register Button   */
/* ------------------------------ */
.register-btn-container {
    text-align: center; /* Centers the button */
    margin-top: 20px; /* Adds spacing from the form */
}

.btn-primary {
    display: inline-block; /* Ensures proper centering */
    width: auto; /* Adjust width automatically */
    padding: 12px 20px;
    font-size: 1.2rem;
}
