/* Register Page Custom Styles */

/* Registration section background and styling */
.register-section {
  position: relative;
  z-index: 1;
  padding: 40px 20px 60px;
  min-height: 100vh;
}

.register-section::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('../images/cybersecurity-animation55.gif');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
}

/* Register Title Styles */
.register-title {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.register-title h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  color: #0fa9d9;
  text-shadow: 0 0 20px rgba(15, 169, 217, 0.5);
  letter-spacing: 1px;
  font-weight: 700;
}

.register-title p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  color: #e6c163;
  opacity: 0.9;
}

/* Form Container Styles */
.register-form-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

/* Form styling */
.registration-form {
  padding: 20px;
}

.form-section {
  margin-bottom: 30px;
  background: rgba(13, 13, 13, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.form-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(198, 170, 101, 0.6) 25%, 
    rgba(15, 169, 217, 0.8) 50%, 
    rgba(198, 170, 101, 0.6) 75%, 
    transparent 100%);
  opacity: 0.8;
}

.form-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(15, 169, 217, 0.6) 25%, 
    rgba(198, 170, 101, 0.8) 50%, 
    rgba(15, 169, 217, 0.6) 75%, 
    transparent 100%);
  opacity: 0.6;
}

.form-section:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(13, 13, 13, 0.6);
}

.form-section h2 {
  color: #c6aa65;
  margin-bottom: 20px;
  font-size: 1.8rem;
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.form-section h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #0fa9d9, #c6aa65);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.upload-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 1rem;
}

.required {
  color: #ff6b6b;
  margin-left: 5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(13, 13, 13, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(15, 169, 217, 0.6);
  box-shadow: 
    0 0 0 3px rgba(15, 169, 217, 0.1),
    0 8px 24px rgba(15, 169, 217, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  background: rgba(13, 13, 13, 0.6);
  transform: translateY(-1px);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(13, 13, 13, 0.6);
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23c6aa65' 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 15px center;
  background-size: 16px;
  padding-right: 40px;
}

/* Dropdown menu options styling */
.form-group select option {
  background-color: #000000; /* Gray background for dropdown items */
  color: #04fff2; /* White text for dropdown items */
}

/* Styling for the first option (currently showing blue in the image) */
.form-group select option:first-child,
.form-group select option[disabled] {
  background-color: #160101b7; /* Blue background for the header/placeholder */
  color: #00ffea; /* White text for the header/placeholder */
}


/* Upload Area Styling */
.upload-group {
  display: flex;
  flex-direction: column;
}

.upload-area {
  position: relative;
  min-height: 180px;
  border: 2px dashed rgba(198, 170, 101, 0.5);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.3s ease;
  background: rgba(13, 13, 13, 0.4);
  backdrop-filter: blur(15px);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.upload-area:hover {
  border-color: #0fa9d9;
  background: rgba(13, 13, 13, 0.6);
  box-shadow: 0 0 20px rgba(15, 169, 217, 0.2);
}

.upload-area input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
}

.upload-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.upload-preview img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 24 24' fill='none' stroke='%230fa9d9' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'%3E%3C/path%3E%3Cpolyline points='17 8 12 3 7 8'%3E%3C/polyline%3E%3Cline x1='12' y1='3' x2='12' y2='15'%3E%3C/line%3E%3Cpath d='M9 15L12 12L15 15'%3E%3C/path%3E%3Cpath d='M12 12V18'%3E%3C/path%3E%3C/svg%3E");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.upload-preview img.preview-loaded {
  background-image: none;
}

.upload-area:hover .upload-preview img {
  transform: scale(1.1);
}

.upload-text {
  color: #0fa9d9;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.file-info {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Course Selection Styling */
.course-selection {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
}

.course-display-box {
  background: rgba(13, 13, 13, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 6px 24px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
}

.course-display-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(15, 169, 217, 0.6) 50%, 
    transparent 100%);
  opacity: 0.7;
}

.course-display-box:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 10px 32px rgba(0, 0, 0, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  background: rgba(13, 13, 13, 0.6);
}

.course-info-box {
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.course-detail-heading {
  color: #c6aa65;
  font-size: 1.3rem;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(198, 170, 101, 0.3);
  padding-bottom: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

#courseDetails {
  flex: 1;
}

#courseDetails p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
  line-height: 1.5;
}

/* Checkbox styling */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  width: 100%;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(13, 13, 13, 0.4);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkbox-group:hover {
  background: rgba(13, 13, 13, 0.6);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.checkbox-group input[type="checkbox"] {
  margin: 0;
  margin-top: 2px;
  appearance: none;
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.checkbox-group input[type="checkbox"]:hover {
  border-color: rgba(15, 169, 217, 0.6);
  background: rgba(15, 169, 217, 0.1);
  transform: scale(1.05);
  box-shadow: 
    0 4px 12px rgba(15, 169, 217, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.checkbox-group input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #0fa9d9, #0c87aa);
  border-color: #0fa9d9;
  box-shadow: 
    0 0 0 2px rgba(15, 169, 217, 0.2),
    0 4px 12px rgba(15, 169, 217, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.checkbox-group input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.checkbox-group label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  line-height: 1.4;
  margin: 0;
  padding: 0;
  flex: 1;
  word-wrap: break-word;
  hyphens: auto;
  min-width: 0;
  font-weight: 400;
}

.checkbox-group a {
  color: #0fa9d9;
  text-decoration: underline;
  transition: all 0.3s ease;
  font-weight: 500;
  text-shadow: 0 0 8px rgba(15, 169, 217, 0.3);
}

.checkbox-group a:hover {
  color: #c6aa65;
  text-decoration: none;
  text-shadow: 0 0 12px rgba(198, 170, 101, 0.4);
}

/* Mobile checkbox optimization */
@media (max-width: 768px) {
  .checkbox-group {
    margin-bottom: 12px;
    gap: 10px; /* Slightly reduced gap on mobile */
    align-items: flex-start;
  }
  
  .checkbox-group input[type="checkbox"] {
    width: 20px; /* Slightly smaller on mobile but still touch-friendly */
    height: 20px;
    margin-top: 1px; /* Reduced top margin */
  }
  
  .checkbox-group label {
    font-size: 0.95rem;
    line-height: 1.3;
    padding-right: 5px; /* Small right padding to prevent text from touching edge */
  }
  
  /* Reduce text wrapping by optimizing spacing */
  .checkbox-group {
    padding: 0 2px; /* Minimal horizontal padding */
  }
}

@media (max-width: 480px) {
  .checkbox-group {
    margin-bottom: 10px;
    gap: 8px; /* Further reduced gap on small screens */
  }
  
  .checkbox-group input[type="checkbox"] {
    width: 18px; /* Smaller on very small screens */
    height: 18px;
    margin-top: 0;
  }
  
  .checkbox-group label {
    font-size: 0.9rem;
    line-height: 1.2;
    padding-right: 3px;
  }
  
  /* Ensure maximum width usage */
  .checkbox-group {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Optimize text wrapping for very small screens */
  .checkbox-group label {
    word-break: normal;
    overflow-wrap: break-word;
  }
}

.terms-section {
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Submit button styling */
.form-submit {
  text-align: center;
  margin-top: 40px;
  position: relative;
}

.submit-button {
  background: linear-gradient(135deg, #0fa9d9, #0c87aa);
  color: #fff;
  border: none;
  padding: 18px 60px;
  font-size: 1.3rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 8px 24px rgba(15, 169, 217, 0.3),
    0 4px 12px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.submit-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.2), 
    transparent);
  transition: left 0.6s ease;
}

.submit-button:hover {
  background: linear-gradient(135deg, #0c87aa, #0fa9d9);
  transform: translateY(-3px);
  box-shadow: 
    0 12px 32px rgba(15, 169, 217, 0.4),
    0 6px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.submit-button:hover::before {
  left: 100%;
}

.submit-button:active {
  transform: translateY(-1px);
  box-shadow: 
    0 6px 20px rgba(15, 169, 217, 0.3),
    0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Error message styling */
.error-message {
  color: #ff6b6b;
  font-size: 0.9rem;
  margin-top: 6px;
  display: block;
  animation: fadeIn 0.3s ease;
  padding-left: 5px;
  border-left: 2px solid #ff6b6b;
}

.error-field {
  border-color: #ff6b6b !important;
  box-shadow: 0 0 5px rgba(255, 107, 107, 0.5) !important;
}

.upload-area.error-field {
  border: 2px dashed #ff6b6b !important;
}

/* Submission status message styling */
.submission-status {
  margin-top: 20px;
  padding: 15px 20px;
  border-radius: 10px;
  text-align: center;
  animation: fadeIn 0.5s ease;
  font-size: 1.1rem;
}

.submission-status.processing {
  background: rgba(15, 169, 217, 0.15);
  border: 1px solid rgba(15, 169, 217, 0.5);
  color: #0fa9d9;
}

.submission-status.success {
  background: rgba(46, 213, 115, 0.15);
  border: 1px solid rgba(46, 213, 115, 0.5);
  color: #2ed573;
}

.submission-status.fade-out {
  animation: fadeOut 1s ease forwards;
}

/* Animation for drag and drop highlight */
.upload-area.highlight {
  border-color: #0fa9d9;
  background: rgba(15, 169, 217, 0.2);
  transform: scale(1.01);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}

/* PDF Icon for document preview */
.upload-preview img[src$="pdf-icon.png"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 24 24' fill='none' stroke='%23c6aa65' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'%3E%3C/path%3E%3Cpolyline points='14 2 14 8 20 8'%3E%3C/polyline%3E%3Cpath d='M9 15L12 12L15 15'%3E%3C/path%3E%3Cpath d='M12 12V18'%3E%3C/path%3E%3C/svg%3E");
  background-size: 60px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .register-title h1 {
    font-size: 2.4rem;
  }
  
  .course-selection {
    grid-template-columns: 1fr;
  }
  
  .form-section {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .register-section {
    padding: 100px 15px 50px;
  }
  
  .register-title h1 {
    font-size: 2rem;
  }
  
  .register-title p {
    font-size: 1rem;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .form-section h2 {
    font-size: 1.5rem;
  }
  
  .register-form-container {
    padding: 10px;
  }
  
  .form-section {
    padding: 15px;
    margin-bottom: 20px;
    border-width: 2px;
  }
  
  .submit-button {
    padding: 12px 40px;
    font-size: 1.1rem;
  }
  
  .upload-grid {
    grid-template-columns: 1fr;
  }
  
  .upload-area {
    min-height: 150px;
  }
  
  .upload-preview img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
  }
  
  .upload-text {
    font-size: 0.9rem;
  }
  
  .file-info {
    font-size: 0.8rem;
  }
  
  .form-group label {
    font-size: 0.95rem;
  }
  
  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="tel"],
  .form-group input[type="date"],
  .form-group select,
  .form-group textarea {
    padding: 10px 12px;
    font-size: 0.95rem;
  }
  
  .checkbox-group label {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .register-section {
    padding: 90px 10px 40px;
  }
  
  .register-title h1 {
    font-size: 1.8rem;
  }
  
  .register-title p {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }
  
  .register-form-container {
    padding: 5px;
  }
  
  .form-section {
    padding: 15px 10px;
    border-radius: 15px;
    margin-bottom: 15px;
  }
  
  .form-section h2 {
    font-size: 1.3rem;
  }
  
  .form-grid {
    gap: 10px;
  }
  
  .form-group {
    margin-bottom: 10px;
  }
  
  .submit-button {
    width: 100%;
    padding: 12px 20px;
  }
  
  .upload-area {
    min-height: 130px;
  }
  
  .upload-preview {
    padding: 10px;
  }
  
  .course-info-box {
    padding: 15px;
  }
  
  .course-detail-heading {
    font-size: 1.1rem;
    padding-bottom: 8px;
    margin-bottom: 10px;
  }
  
  #courseDetails p {
    font-size: 0.9rem;
  }
  
  /* Make sure form elements don't overflow */
  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="tel"],
  .form-group input[type="date"],
  .form-group select,
  .form-group textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
} 


/* reCAPTCHA containment and centering (FIXED ALIGNMENT) */
@media (max-width: 992px) {
  .registration-form .g-recaptcha {
    display: flex;
    justify-content: flex-start;   /* align left */
    align-items: center;
    max-width: 100%;
    margin: 0;  
    margin-left: 0;                 /* ensure left alignment */
    padding: 0;                     /* remove excessive padding */
    overflow: visible;
  }

  .registration-form .g-recaptcha iframe {
    display: block;
    max-width: 100% !important;
    margin: 0;                    /* no auto-centering from iframe */
  }
}

@media (max-width: 480px) {
  .registration-form .g-recaptcha > div {
    transform-origin: top left;   /* scale from left edge */
    transform: scale(0.94);
  }
} 


/* Helper text styling */
.helper-text {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 5px;
  font-style: italic;
}

.helper-text.error {
  color: #ff6b6b;
  font-weight: 500;
}

.helper-text.success {
  color: #2ed573;
  font-weight: 500;
} 

/* ─── Document submission instructions styling (FIXED) ───── */
.document-instructions {
  margin-top: 20px;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.email-instruction-box {
  background: rgba(15, 169, 217, 0.1);
  border: 1px solid rgba(15, 169, 217, 0.3);
  border-radius: 15px;
  padding: 20px !important;
  margin: 15px 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.email-instruction-box h3 {
  color: #0fa9d9;
  font-size: 1.3rem;
  margin-bottom: 15px;
  display: block !important; /* Changed from flex to block */
  width: 100% !important;
  box-sizing: border-box !important;
}

.email-instruction-box h3 i {
  font-size: 1.1rem;
  margin-right: 10px;
}

.email-instruction-box p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 15px;
  font-size: 1rem;
  width: 100% !important;
  box-sizing: border-box !important;
}

.official-email {
  background: rgba(198, 170, 101, 0.15);
  border: 1px solid rgba(198, 170, 101, 0.4);
  border-radius: 8px;
  padding: 12px 15px !important; /* Reduced padding */
  margin: 15px 0;
  text-align: center;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-wrap: break-word !important; /* Force email to wrap */
  word-break: break-all !important; /* Break long email addresses */
}

.official-email strong {
  color: #c6aa65;
  font-size: 1.1rem !important; /* Slightly smaller */
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 5px;
  width: 100% !important;
  box-sizing: border-box !important;
}

.instruction-details {
  margin-top: 20px;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.instruction-details h4 {
  color: #0fa9d9;
  font-size: 1.1rem;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(15, 169, 217, 0.3);
  padding-bottom: 5px;
  width: 100% !important;
  box-sizing: border-box !important;
}

.instruction-details ul {
  list-style: none;
  padding-left: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.instruction-details li {
  color: rgba(255, 255, 255, 0.85);
  padding: 5px 0;
  padding-left: 20px;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.4;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  word-wrap: break-word !important;
}

.instruction-details li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2ed573;
  font-weight: bold;
}

/* Helper text styling (FIXED) */
.helper-text {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 5px;
  font-style: italic;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  word-wrap: break-word !important;
}

.helper-text.error {
  color: #ff6b6b;
  font-weight: 500;
}

.helper-text.success {
  color: #2ed573;
  font-weight: 500;
}

/* Mobile responsiveness (ENHANCED) */
@media (max-width: 768px) {
  .document-instructions {
    margin-top: 15px !important;
    padding: 0 !important;
  }
  
  .email-instruction-box {
    padding: 15px 10px !important;
    margin: 10px 0 !important;
    border-radius: 12px;
  }
  
  .email-instruction-box h3 {
    font-size: 1.1rem !important;
    margin-bottom: 12px !important;
  }
  
  .email-instruction-box p {
    font-size: 0.95rem !important;
  }
  
  .official-email {
    padding: 10px 8px !important;
  }
  
  .official-email strong {
    font-size: 1rem !important;
    letter-spacing: 0.3px !important;
  }
  
  .instruction-details li {
    font-size: 0.85rem !important;
    padding-left: 25px !important;
    line-height: 1.3 !important;
  }
}

@media (max-width: 480px) {
  .email-instruction-box {
    padding: 12px 8px !important;
    margin: 8px 0 !important;
  }
  
  .email-instruction-box h3 {
    font-size: 1rem !important;
  }
  
  .official-email strong {
    font-size: 0.9rem !important;
  }
  
  .instruction-details li {
    font-size: 0.8rem !important;
    padding-left: 22px !important;
  }
}

/* ─── MOBILE PADDING AND ALIGNMENT FIXES ───── */
@media (max-width: 768px) {
  /* Reduce excessive padding in form sections */
  .form-section {
    padding: 15px 12px !important; /* Reduced from 15px to 12px */
  }
  
  /* Make course selection box wider with less padding */
  .course-info-box {
    padding: 15px 10px !important; /* Reduced from 15px to 10px */
  }
  
  /* Ensure consistent left alignment for all form elements */
  .form-group,
  .checkbox-group,
  .g-recaptcha {
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-align: left !important;
  }
  
  /* Fix reCAPTCHA alignment to match other form elements */
  .registration-form .g-recaptcha {
    margin-left: 0 !important;
    padding-left: 0 !important;
    justify-content: flex-start !important;
  }
  
  /* Reduce padding in terms section */
  .terms-section {
    padding: 15px 12px !important; /* Reduced from 20px to 15px 12px */
  }
  
  /* Make submit button match form width better */
  .form-submit {
    padding: 0 12px !important; /* Match form section padding */
  }
  
  /* Ensure consistent spacing between form elements */
  .form-group {
    margin-bottom: 12px !important; /* Reduced from 15px to 12px */
  }
  
  /* Fix checkbox alignment */
  .checkbox-group {
    align-items: flex-start !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
  }
  
  .checkbox-group label {
    text-align: left !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
  }
}

@media (max-width: 480px) {
  /* Further reduce padding for very small screens */
  .form-section {
    padding: 12px 8px !important; /* Reduced from 12px to 8px */
  }
  
  .course-info-box {
    padding: 12px 8px !important; /* Reduced from 10px to 8px */
  }
  
  .terms-section {
    padding: 12px 8px !important; /* Reduced from 12px to 8px */
  }
  
  .form-submit {
    padding: 0 8px !important; /* Match form section padding */
  }
  
  /* Ensure form elements use full available width */
  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="tel"],
  .form-group input[type="date"],
  .form-group select,
  .form-group textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    padding-left: 12px !important; /* Consistent left padding */
    padding-right: 12px !important; /* Consistent right padding */
  }
  
  /* Fix course display box padding */
  .course-display-box {
    padding: 0 !important;
  }
  
  /* Ensure consistent spacing */
  .form-grid {
    gap: 8px !important; /* Reduced from 10px to 8px */
  }
}
