* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #FFE5CC, #FFF0E6);
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: linear-gradient(135deg, #FFFFFF, #FFF8F0);
  min-height: 100vh;
  box-shadow: 0 0 30px rgba(255, 140, 0, 0.15);
  border-radius: 16px;
  border: 1px solid rgba(255, 140, 0, 0.1);
}

/* Header Styles */
.header {
  position: relative;
}

.logo-container {
  position: absolute;
  top: 20px;
  left: 20px;
}

.company-logo {
  font-size: 24px;
  font-weight: bold;
  color: #FF8C00;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-image {
  height: 32px;
  width: auto;
}

.header h1 {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  color: #333;
  margin-bottom: 30px;
  padding: 20px 0;
}

/* Progress Stepper */
.progress-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  padding: 0 20px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.step-icon {
  font-size: 20px;
  margin-bottom: 5px;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ddd;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.step.active .step-circle {
  background-color: #FF8C00;
}

.step.completed .step-circle {
  background-color: #FF6600;
}

.step-label {
  font-size: 14px;
  color: #666;
  text-align: center;
  white-space: nowrap;
}

.step.active .step-label {
  color: #333;
  font-weight: 600;
}

.step-connector {
  display: flex;
  align-items: center;
  margin: 0 15px;
  margin-bottom: 20px;
}

.arrow-line {
  width: 60px;
  height: 2px;
  background-color: #ddd;
  transition: all 0.3s ease;
}

.arrow-head {
  font-size: 18px;
  color: #ddd;
  margin-left: -5px;
  transition: all 0.3s ease;
}

.step.completed + .step-connector .arrow-line,
.step.completed + .step-connector .arrow-head {
  color: #FF6600;
  background-color: #FF6600;
}

/* Form Styles */
.section-title {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, #FF8C00, #FF6600);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 35px;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #FF8C00, #FF6600);
  border-radius: 2px;
}

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

.form-group label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
  position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #FF8C00;
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.15);
  background-color: #FFFAF5;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
  width: 100%;
  max-width: 100%;
}

.form-group select {
  cursor: pointer;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group.half {
  flex: 1;
  margin-bottom: 20px;
}

.form-group.third {
  margin-bottom: 20px;
}

.form-group input[readonly] {
  background-color: #f8f9fa;
  color: #6c757d;
}

.form-group input:disabled {
  background-color: #f0f0f0;
  color: #999;
  cursor: not-allowed;
  border-color: #ddd;
}

.mobile-input-container {
  display: flex;
  gap: 10px;
  align-items: center;
}

.mobile-input-container input {
  flex: 1;
}

.verify-btn {
  background: linear-gradient(135deg, #FF8C00, #FF6600);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
  font-weight: 500;
}

.verify-btn:hover {
  background: linear-gradient(135deg, #FF6600, #FF4500);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 140, 0, 0.4);
}

.verify-btn:disabled {
  background: linear-gradient(135deg, #28a745, #20c997);
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.helper-text {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
  font-style: italic;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.checkbox-group label {
  margin: 0;
  font-size: 14px;
  color: #333;
}

/* Personal Details List */
.personal-details-list,
.income-details-list {
  max-width: 600px;
  margin-bottom: 40px;
}

.detail-item {
  padding: 15px 0;
  font-size: 16px;
  color: #333;
  border-bottom: 1px solid #eee;
}

.detail-item:last-child {
  border-bottom: none;
}

/* Button Styles */
.navigation-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  gap: 20px;
}

.navigation-buttons.single {
  justify-content: flex-end;
}

.next-btn, .prev-btn, .restart-btn, .download-btn, .accept-btn, .co-applicant-btn, .upload-btn, .upload-file-btn, .add-bank-btn, .add-loan-btn {
  border: none;
  padding: 12px 30px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  background: linear-gradient(135deg, #FF8C00, #FF6600);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.next-btn:hover, .prev-btn:hover, .restart-btn:hover, .download-btn:hover, .accept-btn:hover, .co-applicant-btn:hover, .upload-btn:hover, .upload-file-btn:hover, .add-bank-btn:hover, .add-loan-btn:hover {
  background: linear-gradient(135deg, #FF6600, #FF4500);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 140, 0, 0.4);
}

.prev-btn {
  background-color: #6c757d;
  color: white;
}

.prev-btn:hover {
  background-color: #5a6268;
}

.restart-btn {
  background-color: #28a745;
  color: white;
}

.restart-btn:hover {
  background-color: #218838;
}

.download-btn {
  background-color: #007bff;
  color: white;
}

.download-btn:hover {
  background-color: #0056b3;
}

/* Congratulations Page */
.congratulations {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.congratulations h2 {
  font-size: 32px;
  color: #333;
  margin-bottom: 30px;
}

.offer-details {
  background: linear-gradient(135deg, #FFFFFF, #FFF8F0);
  padding: 30px;
  border-radius: 12px;
  border: 2px solid #FFE5CC;
  box-shadow: 0 8px 20px rgba(255, 140, 0, 0.1);
}

.offer-details p {
  font-size: 16px;
  margin-bottom: 10px;
}

.loan-amount {
  font-size: 36px;
  font-weight: bold;
  color: #333;
  margin: 20px 0;
}

/* Tenure Slider Styles */
.tenure-section {
  margin: 20px 0;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.tenure-controls {
  text-align: center;
}

.tenure-controls label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

.tenure-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #ddd;
  outline: none;
  margin: 15px 0;
  cursor: pointer;
}

.tenure-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF8C00, #FF6600);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(255, 140, 0, 0.4);
}

.tenure-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF8C00, #FF6600);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(255, 140, 0, 0.4);
}

.tenure-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

#tenureDisplay {
  color: #FF6600;
  font-weight: bold;
}

.loan-info {
  text-align: left;
  margin: 20px 0;
}

.loan-info p {
  margin-bottom: 8px;
  font-size: 14px;
}

.financing-note {
  background-color: #fff3cd;
  padding: 10px;
  border-radius: 4px;
  margin: 15px 0;
  font-size: 14px;
}

.highlight {
  background-color: #ffeb3b;
  padding: 2px 4px;
}

.disclaimer {
  font-size: 12px;
  color: #666;
  margin-top: 15px;
  font-style: italic;
}

/* Loan Selection Page */
.welcome-header {
  text-align: center;
  margin-bottom: 40px;
}

.welcome-header h1 {
  font-size: 28px;
  color: #333;
  margin-bottom: 15px;
}

.welcome-header p {
  font-size: 16px;
  color: #666;
}

.selection-section h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 30px;
}

.selection-group {
  margin-bottom: 30px;
}

.selection-group label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.selection-btn {
  background-color: #333;
  color: white;
  border: none;
  padding: 15px 20px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.selection-btn:hover {
  background-color: #555;
}

.selection-btn.active {
  background: linear-gradient(135deg, #FF8C00, #FF6600);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.selection-btn.active:hover {
  background: linear-gradient(135deg, #FF6600, #FF4500);
  transform: translateY(-2px);
}

/* Ensure icon colors remain visible when active */
.selection-btn.active[data-value="individual"] .employment-icon {
  color: #FF9F43;
}

.selection-btn.active[data-value="non-individual"] .employment-icon {
  color: #54A0FF;
}

.selection-btn.active[data-value="nri"] .employment-icon {
  color: #5F27CD;
}

.selection-btn.active[data-value="salaried"] .employment-icon {
  color: #00D2D3;
}

.selection-btn.active[data-value="self-professional"] .employment-icon {
  color: #FF6348;
}

.selection-btn.active[data-value="self-business"] .employment-icon {
  color: #2ED573;
}

.selection-btn.active[data-value="4wheeler"] .employment-icon {
  color: #FF6B6B;
}

.selection-btn.active[data-value="2wheeler"] .employment-icon {
  color: #4ECDC4;
}

/* Employment type and sub-type icons */
.employment-icon {
  font-size: 20px;
  margin-right: 8px;
}

/* Employment type icon colors */
.selection-btn[data-value="individual"] .employment-icon {
  color: #FF9F43;
}

.selection-btn[data-value="non-individual"] .employment-icon {
  color: #54A0FF;
}

.selection-btn[data-value="nri"] .employment-icon {
  color: #5F27CD;
}

/* Employment sub-type icon colors */
.selection-btn[data-value="salaried"] .employment-icon {
  color: #00D2D3;
}

.selection-btn[data-value="self-professional"] .employment-icon {
  color: #FF6348;
}

.selection-btn[data-value="self-business"] .employment-icon {
  color: #2ED573;
}

/* Loan sub-type icon colors */
.selection-btn[data-value="4wheeler"] .employment-icon {
  color: #FF6B6B;
}

.selection-btn[data-value="2wheeler"] .employment-icon {
  color: #4ECDC4;
}

/* New employment sub-type icon colors */
.selection-btn[data-value="llp-partnership"] .employment-icon {
  color: #FF9F43;
}

.selection-btn[data-value="private-limited"] .employment-icon {
  color: #54A0FF;
}

.selection-btn.active[data-value="llp-partnership"] .employment-icon {
  color: #FFD700;
}

.selection-btn.active[data-value="private-limited"] .employment-icon {
  color: #87CEEB;
}



/* Document Upload */
.upload-header {
  text-align: center;
  margin-bottom: 40px;
}

.upload-header h2 {
  font-size: 24px;
  color: #333;
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.upload-box {
  border: 2px solid #FFE5CC;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  background: linear-gradient(135deg, #FFFFFF, #FFFAF5);
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.1);
}

.upload-box:hover {
  border-color: #FF8C00;
  box-shadow: 0 8px 20px rgba(255, 140, 0, 0.25);
  transform: translateY(-3px);
  background: linear-gradient(135deg, #FFFAF5, #FFF0E6);
}

.upload-box.uploaded {
  border-color: #FF6600;
  background: linear-gradient(135deg, #FFF8F0, #FFE5CC);
  box-shadow: 0 8px 20px rgba(255, 140, 0, 0.35);
}

.upload-status {
  margin-top: 10px;
  font-size: 12px;
  color: #28a745;
  font-weight: 500;
}

.upload-box h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 20px;
}

.upload-btn, .upload-file-btn, .add-bank-btn, .add-loan-btn {
  background-color: #2196F3;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.upload-btn:hover, .upload-file-btn:hover, .add-bank-btn:hover, .add-loan-btn:hover {
  background-color: #1976D2;
}

/* Specific Document Upload Requirements */
.document-requirements-salaried {
  display: none; /* Hide by default */
}

.document-requirements-self-employed {
  display: none; /* Hide by default */
}

/* Show based on employment type */
.employment-type-salaried .document-requirements-salaried,
.employment-type-self-employed .document-requirements-self-employed {
  display: block;
}

.document-requirements-salaried ul,
.document-requirements-self-employed ul {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

.document-requirements-salaried li,
.document-requirements-self-employed li {
  margin-bottom: 5px;
  font-size: 14px;
  color: #555;
}

.document-requirements-salaried li::before,
.document-requirements-self-employed li::before {
  content: '✓ ';
  color: #28a745;
  font-weight: bold;
  margin-right: 8px;
}

.document-requirements-self-employed li:last-child::before {
  content: '✗ '; /* GST is not required for self-employed */
  color: #dc3545;
}


/* 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);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: relative;
}

.close-modal {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 15px;
}

.close-modal:hover {
  color: #000;
}

.modal-content h3 {
  margin-top: 0;
  margin-bottom: 25px;
  color: #333;
  font-size: 20px;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: #333;
}

.radio-label input[type="radio"] {
  display: none;
}

.radio-custom {
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-radius: 50%;
  margin-right: 10px;
  position: relative;
  transition: all 0.3s ease;
}

.radio-label input[type="radio"]:checked + .radio-custom {
  border-color: #2196F3;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background-color: #2196F3;
  border-radius: 50%;
}

.modal-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  justify-content: flex-end;
}

.verify-btn {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.verify-btn:hover {
  background-color: #218838;
}

.cancel-btn {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.cancel-btn:hover {
  background-color: #545b62;
}

/* Bank Details Form */
.bank-details-section {
  margin-top: 40px;
  padding: 30px;
  background: linear-gradient(135deg, #FFFFFF, #FFF8F0);
  border-radius: 12px;
  border: 2px solid #FFE5CC;
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.1);
}

.bank-details-section h3 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}

.bank-form-group {
  margin-bottom: 20px;
}

.bank-form-group label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

.bank-form-group input,
.bank-form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.bank-form-group input:focus,
.bank-form-group select:focus {
  outline: none;
  border-color: #2196F3;
}

/* Loan Details Section */
.loan-details-section {
  margin-top: 40px;
  padding: 30px;
  background: linear-gradient(135deg, #FFFFFF, #FFF8F0);
  border-radius: 12px;
  border: 2px solid #FFE5CC;
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.1);
}

.loan-details-section h3 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}

.loan-form-group {
  margin-bottom: 20px;
}

.loan-form-group label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

.loan-form-group input,
.loan-form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.loan-form-group input:focus,
.loan-form-group select:focus {
  outline: none;
  border-color: #2196F3;
}

/* Final Approval */
.approval-header {
  text-align: center;
  margin-bottom: 30px;
}

.approval-header h2 {
  font-size: 24px;
  color: #333;
}

.sanction-details {
  margin-bottom: 30px;
}

.sanction-details h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 20px;
  text-decoration: underline;
}

.sanction-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.sanction-table td {
  padding: 10px;
  border: 1px solid #ddd;
  background-color: #e3f2fd;
  font-size: 14px;
}

.action-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 20px 0;
}

/* Thank You Page Styles */
.thank-you-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px;
}

.success-icon {
  width: 80px;
  height: 80px;
  background-color: #28a745;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: bold;
  margin: 0 auto 30px;
}

.thank-you-content h2 {
  font-size: 32px;
  color: #333;
  margin-bottom: 20px;
}

.thank-you-content p {
  font-size: 16px;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.6;
}

.next-steps {
  text-align: left;
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin: 30px 0;
}

.next-steps h3 {
  color: #333;
  margin-bottom: 15px;
}

.next-steps ul {
  margin: 0;
  padding-left: 20px;
}

.next-steps li {
  margin-bottom: 8px;
  color: #555;
}

.reference-info {
  background-color: #e9ecef;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.reference-info p {
  margin-bottom: 10px;
  color: #333;
}

.reference-info strong {
  color: #495057;
}

.accept-btn,
.co-applicant-btn {
  padding: 12px 25px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.accept-btn {
  background-color: #4CAF50;
  color: white;
}

.accept-btn:hover {
  background-color: #45a049;
}

.co-applicant-btn {
  background-color: #2196F3;
  color: white;
}

.co-applicant-btn:hover {
  background-color: #1976D2;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 15px;
    margin: 0;
  }

  .progress-stepper {
    padding: 0 10px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .step-connector {
    margin: 0 8px;
  }

  .arrow-line {
    width: 30px;
  }

  .step-label {
    font-size: 11px;
    max-width: 80px;
  }

  .header h1 {
    font-size: 22px;
    padding: 15px 0;
  }

  .form-container {
    max-width: 100%;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 14px 12px;
    font-size: 16px; /* Prevents zoom on iOS */
    border-radius: 6px;
  }

  .button-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .selection-btn {
    padding: 18px 15px;
    font-size: 15px;
    min-height: 50px;
  }

  .mobile-input-container {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .verify-btn {
    margin-top: 0;
    padding: 14px 20px;
    font-size: 15px;
  }

  .upload-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .action-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .loan-amount {
    font-size: 28px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-group.half {
    margin-bottom: 20px;
  }

  .navigation-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
  }

  .next-btn, .prev-btn {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 10px;
  }

  .step-circle {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .step-connector {
    margin: 0 5px;
  }

  .arrow-line {
    width: 20px;
  }

  .header h1 {
    font-size: 18px;
    padding: 10px 0;
  }

  .section-title {
    font-size: 18px;
    margin-bottom: 20px;
  }

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

  .form-group label {
    font-size: 15px;
    margin-bottom: 8px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 16px 14px;
    font-size: 16px; /* Critical for iOS to prevent zoom */
    border-radius: 8px;
    border-width: 1px;
  }

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

  .selection-btn {
    padding: 20px 12px;
    font-size: 14px;
    min-height: 60px;
  }

  .employment-icon {
    font-size: 18px;
  }

  .congratulations h2 {
    font-size: 22px;
  }

  .loan-amount {
    font-size: 26px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-group.half {
    margin-bottom: 20px;
  }

  .navigation-buttons {
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
    padding: 0 10px;
  }

  .navigation-buttons.single {
    align-items: stretch;
  }

  .next-btn, .prev-btn, .restart-btn, .download-btn, .accept-btn, .co-applicant-btn {
    width: 100%;
    padding: 18px 20px;
    font-size: 16px;
    min-height: 50px;
    border-radius: 8px;
  }

  /* Enhanced mobile input focus */
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
    transform: none; /* Prevent iOS zoom */
  }

  /* Mobile-specific helper text */
  .helper-text {
    font-size: 13px;
    line-height: 1.4;
  }

  /* Better mobile checkbox styling */
  .checkbox-group {
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
  }

  .checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
  }

  .checkbox-group label {
    font-size: 14px;
    line-height: 1.4;
  }
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #f44336;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-overlay p {
  color: white;
  font-size: 18px;
  font-weight: 500;
}

/* Error Styles */
.error-message {
  background-color: #f8d7da;
  color: #721c24;
  padding: 10px 15px;
  border-radius: 4px;
  margin: 10px 0;
  border: 1px solid #f5c6cb;
  font-size: 14px;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #dc3545;
}

.field-error {
  color: #dc3545;
  font-size: 12px;
  margin-top: 5px;
}

/* Notification Toast */
.notification-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.3s ease-out;
}

.notification-content {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  gap: 10px;
}

.notification-icon {
  font-size: 20px;
}

.notification-message {
  flex: 1;
  color: #155724;
  font-weight: 500;
}

.notification-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #155724;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Document Preview Modal */
.preview-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  overflow-y: auto;
}

.preview-modal-content {
  background-color: #fff;
  margin: 2% auto;
  border-radius: 12px;
  width: 95%;
  max-width: 900px;
  min-height: 90%;
  max-height: 95%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  background-color: #f8f9fa;
  border-radius: 12px 12px 0 0;
  flex-shrink: 0;
}

.preview-header h3 {
  margin: 0;
  color: #333;
  font-size: 16px;
  font-weight: 600;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 15px;
}

.preview-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.download-doc-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.download-doc-btn:hover {
  background-color: #0056b3;
}

.close-preview {
  color: #aaa;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  line-height: 1;
  padding: 5px;
}

.close-preview:hover {
  color: #000;
}

.preview-body {
  flex: 1;
  padding: 15px;
  overflow: auto;
  min-height: 0;
}

.preview-message {
  text-align: center;
  padding: 40px;
  color: #666;
}

.preview-message .file-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.preview-message h3 {
  color: #333;
  margin-bottom: 10px;
}

.preview-message p {
  margin-bottom: 8px;
}

/* Upload Success Styles */
.upload-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.success-check {
  color: #28a745;
  font-weight: bold;
  font-size: 16px;
}

.file-name {
  font-size: 12px;
  color: #333;
  text-align: center;
  word-break: break-word;
  max-width: 100%;
}

.preview-btn {
  background-color: #17a2b8;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.preview-btn:hover {
  background-color: #138496;
}

/* Enhanced Upload Box */
.upload-box.uploaded {
  border-color: #28a745;
  background-color: #f8fff9;
  position: relative;
}

.upload-box.uploaded::before {
  content: '✓';
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #FF8C00, #FF6600);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(255, 140, 0, 0.3);
}

/* Responsive Design for Preview Modal */
@media (max-width: 768px) {
  .preview-modal-content {
    width: 98%;
    height: 98%;
    margin: 1% auto;
    border-radius: 8px;
    min-height: 95%;
  }

  .preview-header {
    padding: 12px 15px;
    border-radius: 8px 8px 0 0;
  }

  .preview-header h3 {
    font-size: 14px;
  }

  .preview-actions {
    gap: 8px;
  }

  .download-doc-btn {
    padding: 6px 10px;
    font-size: 11px;
  }

  .close-preview {
    font-size: 20px;
    padding: 3px;
  }

  .preview-body {
    padding: 10px;
  }

  .preview-body embed,
  .preview-body img {
    width: 100% !important;
    height: auto !important;
    max-height: 70vh !important;
    object-fit: contain;
  }

  .preview-message {
    padding: 20px 15px;
  }

  .preview-message .file-icon {
    font-size: 48px;
  }
}

@media (max-width: 480px) {
  .preview-modal-content {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    min-height: 100%;
    max-height: 100%;
  }

  .preview-header {
    padding: 10px 15px;
    border-radius: 0;
  }

  .preview-header h3 {
    font-size: 13px;
  }

  .download-doc-btn {
    padding: 5px 8px;
    font-size: 10px;
  }

  .close-preview {
    font-size: 18px;
  }

  .preview-body {
    padding: 8px;
  }

  .preview-body embed {
    height: 60vh !important;
  }

  .preview-body img {
    max-height: 60vh !important;
  }

  .preview-message {
    padding: 15px 10px;
  }

  .preview-message .file-icon {
    font-size: 40px;
  }

  .preview-message h3 {
    font-size: 16px;
  }

  .preview-message p {
    font-size: 14px;
  }
}

/* Verification Modal Styles */
.verification-modal {
  display: none;
  position: fixed;
  z-index: 1500;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  overflow-y: auto;
}

.verification-modal-content {
  background: linear-gradient(135deg, #FFFFFF, #FFF8F0);
  margin: 3% auto;
  padding: 0;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(255, 140, 0, 0.2);
  position: relative;
  border: 2px solid #FFE5CC;
}

.close-verification {
  color: #aaa;
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
}

.close-verification:hover {
  color: #000;
}

.verification-popup {
  padding: 30px;
}

.verification-popup h3 {
  margin: 0 0 25px 0;
  color: #333;
  font-size: 20px;
  text-align: center;
  padding-right: 40px;
}

/* Upload Section Styles */
.upload-section {
  margin-bottom: 25px;
}

.upload-area {
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  background-color: #fafafa;
  transition: all 0.3s ease;
  cursor: pointer;
}

.upload-area:hover {
  border-color: #2196F3;
  background-color: #f0f7ff;
}

.upload-area.drag-over {
  border-color: #2196F3;
  background-color: #e3f2fd;
}

.upload-area .upload-icon {
  font-size: 48px;
  margin-bottom: 15px;
  color: #666;
}

.upload-area p {
  margin: 10px 0;
  color: #666;
  font-size: 14px;
}

.upload-file-btn {
  background-color: #2196F3;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.upload-file-btn:hover {
  background-color: #1976D2;
}

.upload-status {
  margin-top: 15px;
  text-align: center;
}

.file-uploaded {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background-color: #e8f5e8;
  border-radius: 6px;
  color: #2e7d32;
  font-size: 14px;
}

.file-icon {
  font-size: 20px;
}

.file-name {
  font-weight: 500;
}

.file-size {
  color: #666;
  font-size: 12px;
}

/* Verification Form Styles */
.verification-form {
  display: grid;
  gap: 20px;
}

.verification-form .form-group {
  margin-bottom: 0;
}

.verification-form .form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 6px;
}

.verification-form .form-group input,
.verification-form .form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.verification-form .form-group input:focus,
.verification-form .form-group select:focus {
  outline: none;
  border-color: #FF8C00;
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.verification-form .form-group input[type="password"] {
  font-family: inherit;
}

/* Verification Actions */
.verification-actions {
  padding: 20px 30px;
  background: linear-gradient(135deg, #FFF8F0, #FFE5CC);
  border-top: 1px solid #FFE5CC;
  border-radius: 0 0 12px 12px;
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

.cancel-verification-btn,
.verify-document-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.cancel-verification-btn {
  background-color: #6c757d;
  color: white;
}

.cancel-verification-btn:hover {
  background-color: #545b62;
}

.verify-document-btn {
  background: linear-gradient(135deg, #FF8C00, #FF6600);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.verify-document-btn:hover {
  background: linear-gradient(135deg, #FF6600, #FF4500);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 140, 0, 0.4);
}

/* Verification Success Styles */
.verification-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.success-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.success-check {
  font-size: 16px;
}

.verification-id {
  font-size: 12px;
  color: #333;
  font-weight: 500;
  background-color: #e8f5e8;
  padding: 4px 8px;
  border-radius: 4px;
}

.document-actions {
  display: flex;
  gap: 8px;
}

.view-document-btn {
  background-color: #17a2b8;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.view-document-btn:hover {
  background-color: #138496;
}

/* Enhanced upload success styles */
.upload-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.upload-success .preview-btn {
  background-color: #17a2b8;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.upload-success .preview-btn:hover {
  background-color: #138496;
}

/* OTP Modal Styles */
.otp-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.otp-modal-content {
  background: linear-gradient(135deg, #FFFFFF, #FFF8F0);
  margin: 15% auto;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(255, 140, 0, 0.2);
  border: 2px solid #FFE5CC;
  overflow: hidden;
}

.otp-header {
  background: linear-gradient(135deg, #FF8C00, #FF6600);
  color: white;
  padding: 20px;
  text-align: center;
  position: relative;
}

.otp-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.close-otp {
  position: absolute;
  right: 15px;
  top: 15px;
  color: white;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.close-otp:hover {
  opacity: 0.7;
}

.otp-body {
  padding: 30px;
  text-align: center;
}

.otp-body p {
  margin-bottom: 25px;
  color: #333;
  font-size: 16px;
}

.otp-input-container {
  margin-bottom: 20px;
}

.otp-input {
  width: 100%;
  padding: 15px;
  font-size: 24px;
  text-align: center;
  border: 2px solid #ddd;
  border-radius: 8px;
  letter-spacing: 8px;
  font-weight: bold;
  transition: border-color 0.3s ease;
}

.otp-input:focus {
  outline: none;
  border-color: #FF8C00;
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.otp-timer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.otp-timer span {
  font-size: 18px;
  font-weight: bold;
  color: #FF6600;
}

.resend-otp-btn {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.resend-otp-btn:disabled {
  background-color: #e9ecef;
  color: #6c757d;
  cursor: not-allowed;
}

.resend-otp-btn:not(:disabled):hover {
  background-color: #5a6268;
}

.otp-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.cancel-otp-btn,
.verify-otp-btn {
  padding: 12px 25px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.cancel-otp-btn {
  background-color: #6c757d;
  color: white;
}

.cancel-otp-btn:hover {
  background-color: #5a6268;
}

.verify-otp-btn {
  background: linear-gradient(135deg, #FF8C00, #FF6600);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.verify-otp-btn:hover {
  background: linear-gradient(135deg, #FF6600, #FF4500);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 140, 0, 0.4);
}

/* Enhanced responsive upload success styles */
@media (max-width: 768px) {
  .upload-success {
    gap: 6px;
  }

  .preview-btn, .verify-bank-btn {
    padding: 4px 8px;
    font-size: 11px;
  }

  .file-name {
    font-size: 11px;
  }

  .upload-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .upload-box {
    padding: 20px 15px;
  }

  .upload-header h2 {
    font-size: 20px;
  }

  .modal-content {
    width: 95%;
    margin: 5% auto;
    padding: 20px;
  }

  .otp-modal-content {
    width: 95%;
    margin: 10% auto;
  }

  .otp-body {
    padding: 20px;
  }

  .otp-actions {
    flex-direction: column;
    gap: 10px;
  }

  .cancel-otp-btn,
  .verify-otp-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .upload-success {
    gap: 4px;
  }

  .preview-btn, .verify-bank-btn {
    padding: 3px 6px;
    font-size: 10px;
  }

  .file-name {
    font-size: 10px;
    max-width: 120px;
  }

  .success-check {
    font-size: 14px;
  }

  .upload-box {
    padding: 15px 10px;
  }

  .upload-box h3 {
    font-size: 16px;
  }

  .upload-btn {
    padding: 8px 20px;
    font-size: 12px;
  }

  .modal-content {
    width: 98%;
    margin: 1% auto;
    padding: 15px;
  }

  .modal-content h3 {
    font-size: 18px;
  }

  .bank-form-group label {
    font-size: 14px;
  }

  .bank-form-group input {
    padding: 10px 12px;
    font-size: 14px;
  }

  .modal-actions {
    flex-direction: column;
    gap: 10px;
  }

  .verify-btn, .cancel-btn {
    width: 100%;
    padding: 12px;
  }

  .otp-modal-content {
    width: 98%;
    margin: 5% auto;
  }

  .otp-body {
    padding: 15px;
  }

  .otp-body p {
    font-size: 14px;
  }

  .otp-input {
    font-size: 20px;
    letter-spacing: 4px;
    padding: 12px;
  }

  .otp-timer {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .resend-otp-btn {
    width: 100%;
    padding: 10px;
  }
}