
/* Inline styling matching ISLA design system & physical form layout */
:root {
  --isla-blue: #263f82;
  --isla-gold: #f4c51e;
  --isla-line: #d8deea;
  --isla-bg: #f4f6fb;
  --isla-text: #182033;
}

.app-hero {
  background: var(--isla-blue);
  color: #fff;
  padding: 40px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 72px; /* Offset for fixed header */
}

.app-hero h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
}

.app-hero p {
  margin: 8px 0 0;
  color: #e3e9ff;
  font-size: 1rem;
}

.app-main-container {
  max-width: 960px;
  margin: 30px auto;
  padding: 0 16px 60px;
}

.app-note {
  background: #fff8df;
  border: 1px solid #ecd477;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  color: #594a00;
}

.app-form {
  background: #fff;
  border: 1px solid var(--isla-line);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(38, 63, 130, 0.06);
  overflow: hidden;
}

.app-form-header {
  background: var(--isla-blue);
  color: #fff;
  padding: 24px;
  text-align: center;
}

.app-form-header h2 {
  margin: 0 0 6px;
  font-size: 1.6rem;
  color: #fff;
}

.app-form-header p {
  margin: 0;
  color: #d8deea;
  font-size: 0.9rem;
}

.app-form-body {
  padding: 30px 24px;
}

.app-section {
  margin-bottom: 32px;
}

.app-section h3 {
  background: var(--isla-blue);
  color: #fff;
  margin: 0 0 18px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.app-field.full {
  grid-column: 1 / -1;
}

.app-field label, .app-label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--isla-text);
}

.app-req {
  color: #b42318;
}

.app-field input:not([type=checkbox]):not([type=radio]),
.app-field select,
.app-field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #c8d0df;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  background: #fff;
}

.app-field textarea {
  min-height: 85px;
  resize: vertical;
}

.app-field input:focus,
.app-field select:focus,
.app-field textarea:focus {
  outline: 2px solid rgba(38, 63, 130, 0.2);
  border-color: var(--isla-blue);
}

.app-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 6px;
}

.app-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

.app-choice input {
  accent-color: var(--isla-blue);
  width: 16px;
  height: 16px;
}

.app-tablewrap {
  overflow-x: auto;
}

.app-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}

.app-table th, .app-table td {
  border: 1px solid var(--isla-line);
  padding: 10px;
  text-align: center;
}

.app-table th {
  background: #f0f3fb;
  color: var(--isla-blue);
  font-weight: 600;
}

.app-table td:first-child, .app-table th:first-child {
  text-align: left;
  font-weight: 500;
}

.app-table input[type="checkbox"] {
  accent-color: var(--isla-blue);
  width: 16px;
  height: 16px;
}

.app-course-option {
  border: 1px solid var(--isla-line);
  padding: 14px;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
  background: #fafbfe;
  cursor: pointer;
  transition: border-color 0.2s;
}

.app-course-option:hover {
  border-color: var(--isla-blue);
}

.app-course-option input {
  margin-top: 3px;
  accent-color: var(--isla-blue);
  width: 18px;
  height: 18px;
}

.app-course-option strong {
  display: block;
  color: var(--isla-blue);
  font-size: 1.02rem;
}

.app-course-option small {
  color: #687184;
  font-size: 12px;
  display: block;
  margin-top: 2px;
}

.app-terms-box {
  background: #f7f8fc;
  border: 1px solid var(--isla-line);
  padding: 18px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #4a5568;
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 16px;
}

.app-terms-box ol {
  margin: 0;
  padding-left: 20px;
}

.app-terms-box li {
  margin-bottom: 8px;
}

.app-actions {
  display: flex;
  justify-content: center; /* Horizontally centers the button container */
  align-items: center;
  border-top: 1px solid var(--isla-line);
  padding-top: 24px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.app-submit-btn {
  background: var(--isla-blue);
  color: #fff;
  border: 0;
  padding: 14px 36px; /* Slightly wider padding for balanced look when centered */
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
  text-align: center;
  min-width: 220px; /* Ensures consistent structure across screen sizes */
}

.app-submit-btn:hover {
  background: #1c3068;
}
/* Layout wrapper for fields and photo box */
.app-applicant-wrapper {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 20px;
  align-items: start;
}

/* Affix Photograph Box Styling */
.app-photo-box {
  border: 2px dashed var(--isla-line, #d8deea);
  background: #fafbfe;
  padding: 16px 12px;
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 230px;
}

.photo-preview-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--isla-blue, #263f82);
  font-size: 13px;
  text-transform: uppercase;
}

/* Top Meta Grid for Date, Place, Reg No */
.app-top-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  background: #f0f3fb;
  padding: 16px 20px;
  border-bottom: 1px solid var(--isla-line, #d8deea);
  margin-bottom: 24px;
}

.app-top-meta-grid .app-field label {
  color: var(--isla-blue, #263f82);
  font-weight: 700;
}

/* Mobile responsive view */
@media (max-width: 768px) {
  .app-top-meta-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Responsive view for Mobile screens */
@media (max-width: 768px) {
  .app-applicant-wrapper {
    grid-template-columns: 1fr;
  }
  .app-photo-box {
    min-height: auto;
    padding: 20px;
  }
}
/* Ensure button scales cleanly on mobile devices */
@media (max-width: 480px) {
  .app-submit-btn {
    width: 100%; /* Makes button full width on narrow screens for better usability */
  }
}











