/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #ff99cc, #66ccff);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow-x: hidden;
    font-size: 0.8rem; /* Set the font size for the form content */
}

.form-container {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    position: relative;
    overflow: hidden;
}

.form-title {
    text-align: center;
    font-size: 1.5rem; /* Set the font size for the header */
    margin-bottom: 30px; /* Add more margin below the header */
    color: #333;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Add padding-top to the first section for better visibility */
.form-section:first-of-type {
    padding-top: 20px; /* Add padding only to the first section */
}

/* Section */
.form-section {
    display: none;
    transition: transform 0.5s ease-in-out;
}

.form-section.active {
    display: block;
}

.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-group label {
    font-size: 0.8rem; /* Adjust label font size */
    color: #333;
    margin-bottom: 10px; /* Add more space below label */
    display: block;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 12px; /* Slightly reduce padding to improve layout */
    font-size: 0.8rem; /* Adjust input/select/textarea font size */
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    position: relative;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 8px rgba(72, 144, 226, 0.3);
}

/* Watermark Style */
.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem; /* Adjust the size to fit your preference */
    font-weight: bold;
    color: rgba(72, 144, 226, 0.1); /* Subtle color */
    pointer-events: none; /* Prevent it from blocking interaction with form */
    z-index: -1; /* Ensure it stays behind the form content */
    text-align: center;
    animation: watermarkAnimation 3s infinite;
}

/* Watermark Animation */
@keyframes watermarkAnimation {
    0% {
        opacity: 0.1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 0.1;
    }
}

.button-group {
    text-align: center;
    margin-top: 20px;
}

.submit-btn,
.next-btn {
    width: 120px;
    padding: 12px;
    background-color: #4a90e2;
    color: white;
    border: none;
    font-size: 0.8rem; /* Adjust button font size */
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.submit-btn:hover,
.next-btn:hover {
    background-color: #357ab7;
}

.submit-btn:active,
.next-btn:active {
    background-color: #285a8e;
}

.prev-btn {
    width: 120px;
    padding: 12px;
    background-color: #4a90e2;
    color: white;
    border: none;
    font-size: 0.8rem; /* Adjust button font size */
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.prev-btn:hover {
    background-color: #357ab7;
}

.prev-btn:active {
    background-color: #285a8e;
}

/* Style for progress indicator */
.progress-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.progress-step {
    height: 10px;
    width: 10px;
    background-color: #ddd;
    border-radius: 50%;
    margin: 0 5px;
}

.progress-step.active {
    background-color: #4a90e2;
}

h6.section-heading {
    font-size: 16px;  /* Slightly larger font size for better visibility */
    color: #4CAF50;   /* Green color for a more vibrant and fresh look */
    margin-bottom: 15px; /* Increased space below the heading for better separation */
    text-transform: uppercase;  /* Capitalize for a more structured look */
    font-weight: 600;  /* Slightly bolder text for emphasis */
    border-bottom: 2px solid #4CAF50; /* Green underline to match the theme */
    padding-bottom: 5px; /* Padding to create some space between text and underline */
}

/* Style for the checkbox group */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;  /* Allows the checkboxes to wrap onto the next line if needed */
  gap: 15px; /* Space between checkboxes */
  align-items: center; /* Vertically center the checkboxes and labels */
}

/* Style for individual checkbox label */
.checkbox-group label {
  display: flex;
  align-items: center;  /* Vertically align checkbox with text */
  font-size: 0.8rem; /* Adjust the font size of the label */
  color: #333;  /* Set label text color */
}

.checkbox-group input[type="checkbox"] {
  margin-right: 8px;  /* Add space between checkbox and label text */
  transform: scale(1.2); /* Optional: to make the checkbox slightly bigger for better visibility */
}

.checkbox-group-inline {
    display: flex;
    flex-wrap: wrap;
}

.checkbox-group-inline label {
    margin-right: 20px;  /* Adds spacing between the labels */
    white-space: nowrap; /* Prevents line breaks in the label text */
}

/* Additional Styles for form inputs like textareas */
textarea {
    resize: vertical;  /* Allows resizing vertically */
    min-height: 80px;  /* Minimum height for textareas */
}

/* Adjustments for the Select Dropdown to fit the design */
select {
    font-size: 0.8rem;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
}

select:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 8px rgba(72, 144, 226, 0.3);
}

.password-message {
    font-size: 0.9rem;
    color: red;
    margin-top: 5px;
}

.password-match {
    color: green;
}

.password-mismatch {
    color: red;
}
 /* Basic Modal Styling */
 .modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
    animation: fadeIn 0.3s ease-in-out;
  }

  /* Animation for modal fade-in */
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  .modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 30px;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: slideIn 0.5s ease-out;
  }

  /* Slide-in animation for modal content */
  @keyframes slideIn {
    from {
      transform: translateY(-50px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  /* Modal Heading */
  .modal-content h2 {
    font-size: 24px;
    color: #4CAF50;
    margin-bottom: 20px;
  }

  /* Modal Message */
  .modal-content p {
    font-size: 18px;
    color: #333;
    margin-bottom: 30px;
  }

  /* OK Button Styling */
  .modal-button {
    padding: 12px 25px;
    background-color: #4CAF50;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .modal-button:hover {
    background-color: #45a049;
  }

  /* Close modal on background click */
  .modal:target {
    display: block;
  }