    :root {
      --primary-color: #2563eb;
      --primary-dark: #1d4ed8;
      --white: #ffffff;
      --gray-50: #f9fafb;
      --gray-100: #f3f4f6;
      --gray-200: #e5e7eb;
      --gray-300: #d1d5db;
      --gray-500: #6b7280;
      --gray-700: #374151;
      --radius: 10px;
      --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: 'Inter', sans-serif;
      background-color: var(--gray-50);
      color: var(--gray-700);
    }

    /* Modal Styles */
    .modal {
      display: none;
      position: fixed;
      z-index: 1000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(5px);
    }

    .modal-content {
      background-color: var(--white);
      margin: 15% auto;
      padding: 30px;
      border: none;
      border-radius: var(--radius);
      width: 90%;
      max-width: 400px;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
      text-align: center;
    }

    .modal h2 {
      margin-top: 0;
      color: var(--primary-color);
      font-size: 24px;
      margin-bottom: 20px;
    }

    .modal input {
      width: 100%;
      padding: 12px;
      margin: 8px 0;
      border: 1px solid var(--gray-200);
      border-radius: var(--radius);
      font-size: 14px;
    }

    .modal button {
      width: 100%;
      padding: 12px;
      background-color: var(--primary-color);
      color: white;
      border: none;
      border-radius: var(--radius);
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      margin-top: 10px;
    }

    .modal button:hover {
      background-color: var(--primary-dark);
    }

    .modal .error-message {
      color: #dc2626;
      margin-top: 10px;
      font-size: 14px;
    }

    /* Form blur when modal is open */
    .blurred {
      filter: blur(3px);
      pointer-events: none;
    }

    /* Auto-logout warning */
    .auto-logout-warning {
      position: fixed;
      top: 20px;
      right: 20px;
      background: #fef3c7;
      border: 1px solid #f59e0b;
      color: #92400e;
      padding: 12px 16px;
      border-radius: var(--radius);
      font-weight: 500;
      z-index: 999;
      display: none;
    }

    header {
      position: sticky;
      top: 0;
      background-color: var(--white);
      box-shadow: var(--shadow);
      padding: 16px 24px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      z-index: 100;
    }

    header h1 {
      font-size: 28px;
      color: var(--primary-color);
      margin: 0;
      letter-spacing: -0.5px;
      font-weight: 600;
    }


    .nav-btns button {
      margin-left: 12px;
      background-color: var(--primary-color);
      border: none;
      color: var(--white);
      padding: 8px 16px;
      font-size: 14px;
      font-weight: 500;
      border-radius: var(--radius);
      cursor: pointer;
      transition: background-color 0.3s ease;
    }

    .nav-btns button:hover {
      background-color: var(--primary-dark);
    }

    main {
      max-width: 960px;
      margin: 40px auto;
      padding: 0 20px;
    }

    .section {
      background-color: var(--white);
      border-radius: var(--radius);
      padding: 24px;
      margin-bottom: 32px;
      box-shadow: var(--shadow);
    }

    .section h2 {
      margin-top: 0;
      font-size: 18px;
      color: var(--primary-color);
      margin-bottom: 25px;
      font-weight: 600;
    }

.form-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 16px;
    }

    /* group for 10th marks fields so we can hide/show together */
    #tenthMarksBlock {
      display: contents; /* keeps grid layout but allows JS to toggle via style.display */
    }

    /* slight visual separation for second fee block */
    .fee-installment {
      margin-top: 16px;
      padding-top: 16px;
      border-top: 1px dashed var(--gray-200);
    }

    label {
      display: block;
      font-size: 14px;
      margin-bottom: 15px;
      font-weight: 600;
    }

    /* Modern Input Styling */
    input,
    select {
      display: block;
      width: 100%;
      padding: 12px 16px;
      border: 2px solid var(--gray-200);
      border-radius: var(--radius);
      background: linear-gradient(145deg, var(--white) 0%, var(--gray-50) 100%);
      font-size: 14px;
      font-weight: 500;
      color: var(--gray-700);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      margin-top: 5px;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    }

    /* Modern input hover effects */
    input:hover {
      border-color: var(--primary-color);
      background: linear-gradient(145deg, var(--white) 0%, var(--gray-100) 100%);
      box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15), 0 2px 4px rgba(0, 0, 0, 0.06);
      transform: translateY(-1px);
    }

    /* Modern input focus effects */
    input:focus {
      outline: none;
      border-color: var(--primary-color);
      background: var(--white);
      box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.1),
        0 4px 12px rgba(37, 99, 235, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.06);
      transform: translateY(-1px);
    }

    /* Modern Select Dropdown Styling */
    select {
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
      position: relative;
      background: linear-gradient(145deg, var(--white) 0%, var(--gray-50) 100%);
      border: 2px solid var(--gray-200);
      color: var(--gray-700);
      font-weight: 500;
      cursor: pointer;
      padding-right: 45px;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
      /* Custom arrow (SVG) */
      background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M7 10l5 5 5-5z'/></svg>");
      background-repeat: no-repeat;
      background-position: right 12px center;
      background-size: 16px;
    }

    select:hover {
      border-color: var(--primary-color);
      background: linear-gradient(145deg, var(--white) 0%, var(--gray-100) 100%);
      box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15), 0 2px 4px rgba(0, 0, 0, 0.06);
      transform: translateY(-1px);
    }

    /* Modern select wrapper for enhanced styling */
    .select-wrapper {
      position: relative;
      display: inline-block;
      width: 100%;
      z-index: 10;
    }

    .select-wrapper::after {
      content: '';
      position: absolute;
      top: 50%;
      right: 15px;
      transform: translateY(-50%) rotate(45deg);
      width: 8px;
      height: 8px;
      border-right: 2px solid var(--primary-color);
      border-bottom: 2px solid var(--primary-color);
      transition: all 0.3s ease;
      pointer-events: none;
    }

    .select-wrapper:hover::after {
      border-color: var(--primary-dark);
      transform: translateY(-50%) rotate(45deg) scale(1.1);
    }

    /* Select focus state with modern ring */
    select:focus {
      border-color: var(--primary-color);
      background: var(--white);
      box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.1),
        0 4px 12px rgba(37, 99, 235, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.06);
      transform: translateY(-1px);
    }

    /* Original Dropdown Options Styling with Margins */
    /* Custom Dropdown List Design */
    select {
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      /* Chevron Arrow */
      background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23374151' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7' /%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 16px center;
      background-size: 16px;
      padding-right: 48px;
    }

    select option {
      padding: 12px;
      background: white;
      color: var(--gray-700);
      font-weight: 500;
      border: none;
    }

    select option:hover {
      background: var(--primary-color);
      color: var(--white);
    }

    select option:checked {
      background: var(--primary-color) !important;
      color: white !important;
      font-weight: 600;
    }
    
    /* First option (placeholder) special styling */
    select option[value=""] {
      color: var(--gray-500);
      font-style: italic;
    }

    /* Add premium border effects to dropdown when open */
    select:focus {
      border-color: var(--primary-color);
      background: var(--white);
      box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.1),
        0 8px 24px rgba(37, 99, 235, 0.15),
        0 4px 8px rgba(0, 0, 0, 0.08);
      transform: translateY(-2px);
    }

    input:focus,
    select:focus {
      outline: none;
      background: white;
      border-color: var(--primary-color);
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    }

    #photoPreview {
      margin-top: 10px;
      width: 120px;
      border-radius: var(--radius);
      display: none;
    }

    .button-container {
      display: flex;
      gap: 12px;
      margin-top: 16px;
    }

    button[type="submit"],
    button[type="reset"] {
      flex: 1;
      padding: 14px;
      font-size: 16px;
      font-weight: 600;
      border: none;
      border-radius: var(--radius);
      cursor: pointer;
      transition: background 0.3s ease;
    }

    button[type="submit"] {
      background: var(--primary-color);
      color: white;
    }

    button[type="submit"]:hover {
      background: var(--primary-dark);
    }

    button[type="reset"] {
      background: var(--gray-200);
      color: var(--gray-700);
    }

    button[type="reset"]:hover {
      background: var(--gray-500);
      color: white;
    }

    .error-notification {
      background: #fee2e2;
      border: 1px solid #fecaca;
      color: #dc2626;
      padding: 12px 16px;
      border-radius: var(--radius);
      margin-bottom: 20px;
      display: none;
      font-weight: 500;
    }

    .success-notification {
      background: #d1fae5;
      border: 1px solid #a7f3d0;
      color: #065f46;
      padding: 12px 16px;
      border-radius: var(--radius);
      margin-bottom: 20px;
      display: none;
      font-weight: 500;
    }

    .field-error {
      border-color: #dc2626 !important;
      background-color: #fef2f2 !important;
    }

    /* Course-specific sections */
    .course-specific-section {
      grid-column: 1 / -1;
      background: var(--gray-50);
      border: 1px solid var(--gray-200);
      border-radius: var(--radius);
      padding: 20px;
      margin-top: 16px;
      transition: all 0.3s ease;
    }

    .course-specific-section h3 {
      margin: 0 0 15px 0;
      font-size: 16px;
      color: var(--primary-color);
      font-weight: 600;
    }

    .checkbox-group {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 12px;
    }

    .checkbox-label {
      display: flex;
      flex-direction: row;
      align-items: center;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      padding: 8px 12px;
      border: 1px solid var(--gray-200);
      border-radius: var(--radius);
      background: var(--white);
      transition: all 0.2s ease;
    }

    .checkbox-label:hover {
      background: var(--gray-100);
      border-color: var(--primary-color);
    }

    .checkbox-label input[type="checkbox"] {
      margin: 0 8px 0 0;
      width: 16px;
      height: 16px;
      cursor: pointer;
    }

    .checkbox-label input[type="checkbox"]:checked+* {
      color: var(--primary-color);
    }

    /* Enhanced Photo Upload Section */
    .photo-upload-section {
      grid-column: 1 / -1;
      background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
      border: 2px dashed var(--primary-color);
      border-radius: var(--radius);
      padding: 32px;
      margin-bottom: 24px;
      text-align: center;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
    }

    .photo-upload-section::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
      z-index: 0;
    }

    .photo-upload-section:hover {
      border-color: var(--primary-dark);
      background: linear-gradient(135deg, #f1f5f9 0%, #ddd6fe 100%);
      transform: translateY(-2px);
      box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
    }

    .photo-upload-content {
      position: relative;
      z-index: 1;
    }

    .photo-upload-icon {
      font-size: 48px;
      color: var(--primary-color);
      margin-bottom: 16px;
      display: block;
    }

    .photo-upload-title {
      font-size: 20px;
      font-weight: 600;
      color: var(--primary-color);
      margin-bottom: 8px;
    }

    .photo-upload-subtitle {
      font-size: 14px;
      color: var(--gray-500);
      margin-bottom: 20px;
    }

    .photo-upload-input {
      display: none;
    }

    .photo-upload-button {
      background: var(--primary-color);
      color: white;
      border: none;
      padding: 12px 24px;
      border-radius: var(--radius);
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      margin-bottom: 16px;
    }

    .photo-upload-button:hover {
      background: var(--primary-dark);
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    }

    .photo-preview-container {
      margin-top: 20px;
      display: none;
    }

    .photo-preview-container.active {
      display: block;
    }

    #photoPreview {
      width: 150px;
      height: 150px;
      object-fit: cover;
      border-radius: 12px;
      border: 3px solid var(--primary-color);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
      margin: 0 auto;
      display: block;
    }

    .photo-upload-success {
      color: #059669;
      font-weight: 600;
      margin-top: 12px;
    }

    .photo-upload-specs {
      font-size: 12px;
      color: var(--gray-500);
      margin-top: 8px;
    }

    /* Responsive Design */
    @media (max-width: 768px) {
      header {
        padding: 12px 16px;
      }

      header h1 {
        font-size: 20px;
      }

      .section {
        padding: 16px;
      }
      
      .nav-btns button {
        padding: 6px 12px;
        font-size: 13px;
        margin-left: 8px;
      }
    }

    @media (max-width: 480px) {
      header {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
      }

      .nav-btns {
        display: flex;
        width: 100%;
        gap: 8px;
      }

      .nav-btns button {
        margin-left: 0;
        flex: 1;
        padding: 8px;
        font-size: 13px;
      }

      main {
        margin: 20px auto;
        padding: 0 12px;
      }
    }

    /* Dynamic Installment Styles */
    .add-installment-btn {
      background-color: #10b981; /* Emerald-500 */
      color: white;
      border: none;
      padding: 10px 16px;
      border-radius: var(--radius);
      font-weight: 600;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-top: 16px;
      transition: all 0.3s ease;
      font-size: 14px;
    }

    .add-installment-btn:hover {
      background-color: #059669; /* Emerald-600 */
      transform: translateY(-1px);
      box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
    }

    .add-installment-btn span {
      font-size: 18px;
      line-height: 1;
    }

    .fee-installment-block {
      background-color: var(--gray-50);
      border: 1px solid var(--gray-200);
      border-radius: var(--radius);
      padding: 20px;
      margin-top: 20px;
      position: relative;
      animation: slideDown 0.3s ease-out;
    }

    .fee-installment-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 16px;
      padding-bottom: 12px;
      border-bottom: 1px dashed var(--gray-300);
    }

    .fee-installment-title {
      font-size: 14px;
      font-weight: 600;
      color: var(--primary-color);
      margin: 0;
    }

    .remove-installment-btn {
      background: #fee2e2;
      color: #dc2626;
      border: 1px solid #fecaca;
      padding: 4px 8px;
      border-radius: 6px;
      font-size: 12px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .remove-installment-btn:hover {
      background: #fecaca;
      color: #b91c1c;
    }

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

    /* Required Field Indicator */
    .required-asterisk {
      color: #dc2626;
      font-weight: bold;
      margin-left: 4px;
    }