<style>
	  :root {
            --primary: #2A2A72;
            --secondary: #009FFD;
            --accent: #FFA400;
            --dark: #1A1A1A;
            --light: #F8F9FA;
			}
			

		 /* General Reset */
			* {
			  margin: 0;
			  padding: 0;
			  box-sizing: border-box;
			  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
			  font-size: 16px;
			}
			

			/* Body Background */
			body {
				background-color: #F8F9FA;
			    animation: fadeIn 1s ease-in-out;
				transition: background 0.5s ease-in-out;
			}

			/* Header */
			.header {
    		   position: relative; /* Not sticky anymore */
    		  top: 0;
    		  z-index: 1000;
    		  display: flex;
    		  justify-content: space-between;
    		  align-items: center;
    		  background: linear-gradient(90deg, #2A2A72, #009FFD);
    		  backdrop-filter: blur(8px);
    		  padding: 5px 5px 5px 5px;
    		  border-bottom: 2px solid #0d47a1;
    		  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    		  flex-wrap: wrap;
    		  animation: slideDownFade 0.7s ease-out;
    		}

			.site-info {
			  display: flex;
			  align-items: center;
			  gap: 12px;
			}

			.site-logo {
    		  width: 100%;          /* Adjusts to container width */
    		  max-width: 350px;     /* Optional: Max width limit */
    		  height: auto;
    		  object-fit: contain;
    		  border: none;
    		  box-shadow: none;
    		  border-radius: 0;
    		  background: transparent;
    		  transition: none;
    		}
			.site-logo:hover {
			  transform: scale(1.05);
			}

			.nav-menu {
			  display: flex;
			  gap: 25px;
			  justify-content: center;
			  align-items: center;
			  flex: 1;
			}

			.nav-link {
			  font-size: 16px;
			  text-decoration: none;
			  color: #333;
			  font-weight: 600;
			  padding: 6px 12px;
			  border-radius: 6px;
			  transition: all 0.3s ease;
			}
			.nav-link:hover {
			  background-color: #007bff;
			  color: white;
			  transform: translateY(-2px);
			  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
			}

			.developer-info {
			  display: flex;
			  flex-direction: column;
			  align-items: center;
			  text-align: center;
			}
			.developer-label {
			  font-size: 16px;
			  color: #333;
			  font-weight: 600;
			  margin-bottom: 5px;
			}
			.developer-logo {
			  width: 180px;
			  height: auto;
			  border-radius: 8px;
			  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
			  transition: transform 0.3s, box-shadow 0.3s;
			}
			.developer-logo:hover {
			  transform: scale(1.05);
			  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
			}




			/* Radio Button Group */
			.radio-group label {
				display: inline-flex;
				margin-right: 5px;
				margin-bottom: 10px;
				font-size: 16px;
				padding: 5px;
				font-weight: bold;
			}


			/* Footer */
			.footer {
			  width: 100%;
			  background: linear-gradient(90deg, #ffffff 0%, #e3f2fd 100%);
			  backdrop-filter: blur(8px);
			  border-top: 2px solid #0d47a1;
			  padding: 15px 20px;
			  text-align: center;
			  color: #0d47a1;
			  font-size: 15px;
			  font-weight: bold;
			  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
			  z-index: 999;
			  animation: slideUpFade 0.7s ease-out;
			}

			/* Centered Container */
			.container {
			  display: flex;
			  flex-direction: column;
			  align-items: center;
			  justify-content: center;
			  width: 100%;
			  padding: 20px;
			  gap: 20px;
			  background: white;
			}

			/* Card Styles */
			.card, .card1, .card2 {
			  background-color: white;
			  border: 1px solid #000;
			  border-radius: 5px;
			  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
			  padding: 20px;
			  margin: 10px auto;
			  max-width: 900px;
			  width: 100%;
			  justify-content: center;
              overflow-x: auto;
			}
			
			
			
			
			/* Form Elements */
			.form-title {
			  text-align: center;
			  font-size: 32px;
			  margin-bottom: 30px;
			  color: var(--primary);
			  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
			}

			.loan-form {
			  max-width: 750px;
			  margin: auto;
			  background: #ffffffdd;
			  border-radius: 16px;
			  padding: 30px 40px;
			  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
			  backdrop-filter: blur(5px);
			  animation: fadeIn 1s ease;
			}

			.section-title {
			  font-size: 20px;
			  margin-bottom: 15px;
			  color: var(--dark);
			  text-align: center;
			}

			.radio-group {
			  display: flex;
			  justify-content: space-around;
			  flex-wrap: wrap;
			  margin-bottom: 25px;
			}

			.radio-group label {
			  font-weight: 600;
			  font-size: 16px;
			  padding: 10px 15px;
			  border: 2px solid var(--secondary);
			  border-radius: 8px;
			  cursor: pointer;
			  margin: 8px;
			  transition: all 0.3s ease;
			  background-color: white;
			}

			.radio-group input[type="radio"] {
			  margin-right: 8px;
			}

			.radio-group label:hover,
			.radio-group input[type="radio"]:checked + label {
			  background-color: var(--secondary);
			  color: white;
			  border-color: var(--primary);
			}

			.form-group {
			  display: flex;
			  flex-direction: column;
			  margin-bottom: 20px;
			}

			.form-group label {
			  margin-bottom: 8px;
			  font-weight: bold;
			  color: #333;
			}

			.form-group input {
			  padding: 12px;
			  font-size: 16px;
			  border: 1.5px solid #ccc;
			  border-radius: 8px;
			  transition: 0.3s;
			}

			.form-group input:focus {
			  outline: none;
			  border-color: var(--secondary);
			  box-shadow: 0 0 0 2px rgba(0, 153, 255, 0.2);
			}

			.error-text {
			  color: red;
			  font-size: 14px;
			  margin-top: 5px;
			}

			/* Responsive */
			@media (max-width: 768px) {
			  .loan-form {
				padding: 20px;
			  }

			  .radio-group {
				flex-direction: column;
				align-items: center;
			  }
			}
			
			

			// to be removed
            
            input[type="text"], input[type="number"], input[type="date"] {
                width: 100%;
                padding: 12px;
                border: 1px solid #ccc;
                border-radius: 4px;
                box-sizing: border-box;
            }
			
			/* Action Buttons */
			.action-btns {
			  display: grid;
			  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
			  gap: 1rem;
			  margin: 2rem 0;
			  
			  visibility: visible !important;
			  opacity: 1 !important;
			  z-index: 10;
			}

			.btn {
			  padding: 1rem;
			  border: none;
			  border-radius: 15px;
			  color: white;
			  font-weight: 600;
			  cursor: pointer;
			  transition: all 0.3s ease;
			  display: flex;
			  align-items: center;
			  justify-content: center;
			  gap: 0.5rem;
			}

			.btn-primary {
				  background-color: #2A2A72;
				}
				.btn-secondary {
				  background-color: #009FFD;
				}
				.btn-accent {
				  background-color: #FFA400;
				}

			.btn:hover {
			  filter: brightness(1.1);
			  transform: translateY(-2px);
			}

			/* Buttons */
			.my-button {
				background-color: #007bff;
				color: white;	
				padding: 10px 20px;
				border: 1px solid #ccc;
				border-radius: 5px;
				font-size: 16px;
				cursor: pointer;
				transition: background-color 0.3s ease;
				font-weight: bold;
			}
						
			.my-button:hover {
				background-color: #0056b3;
			}

			/* Results & Labels */
			#resultsContainer label, #resultsContainer span {
			  display: block;
			  font-size: 18px;
			  margin-top: 5px;
			}
			#resultsContainer span {
			  font-weight: bold;
			  color: blue;
			}
			
			.results-card {
			  background: #ffffffcc;
			  backdrop-filter: blur(8px);
			  border-radius: 16px;
			  padding: 25px;
			  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
			  max-width: 700px;
			  margin: 20px auto;
			  animation: fadeIn 0.8s ease;
			}

			.results-title {
			  text-align: center;
			  font-size: 24px;
			  color: var(--primary);
			  margin-bottom: 20px;
			}

			.result-row {
			  display: flex;
			  justify-content: space-between;
			  align-items: center;
			  margin: 12px 0;
			  padding: 10px 0;
			  border-bottom: 1px dashed #ccc;
			}

			.result-row label {
			  font-weight: 600;
			  color: #333;
			  flex: 1;
			  font-size: 16px;
			}

			.result-row span {
			  flex: 1;
			  text-align: right;
			  font-weight: bold;
			  color: var(--secondary);
			  font-size: 17px;
			}
			
			.result-row:hover {
			  background-color: rgba(0, 153, 255, 0.05);
			}
			
			
			/* Chart Styles */
			.chart-section {
			  max-width: 700px;
			  margin: 40px auto;
			  text-align: center;
			  animation: fadeInUp 1s ease;
			}

			.chart-title {
			  font-size: 24px;
			  color: var(--primary);
			  margin-bottom: 20px;
			  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
			}

			.chart-card {
			  background: linear-gradient(to right, #fdfbfb, #ebedee);
			  padding: 30px;
			  border-radius: 20px;
			  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
			  transition: transform 0.4s ease, box-shadow 0.4s ease;
			}

			.chart-card:hover {
			  transform: scale(1.02);
			  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
			}
			
			

			#loanPieChart, #loanPieChart1, #loanPieChart2 {
                width: 100% !important;
                max-width: 300px;
                height: auto !important;
                margin: auto;
                display: block;
              }

			/* Animation */
			@keyframes fadeInUp {
			  0% { opacity: 0; transform: translateY(30px); }
			  100% { opacity: 1; transform: translateY(0); }
			}
			

			/* Table Styles */
			table {
			  width: 100%;
			  border-collapse: collapse;
			  font-size: 14px;
			}
			th, td {
			  border: 1px solid #000;
			  padding: 8px;
			  text-align: center;
			}
			th {
			  background-color: #f4f4f4;
			}
			
			//
			
			/* Table Container styling */
			.styled-table-container {
			  margin: 40px auto;
			  max-width: 1000px;
			  background: #ffffffcc;
			  border-radius: 15px;
			  padding: 25px;
			  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
			  backdrop-filter: blur(6px);
			  animation: fadeIn 0.8s ease;
			}

			/* Table title */
			.table-title {
			  text-align: center;
			  font-size: 24px;
			  color: var(--primary);
			  margin-bottom: 20px;
			}

			/* Table base styles */
			.styled-table {
			  width: 100%;
			  border-collapse: collapse;
			  border-radius: 10px;
			  overflow: hidden;
			  font-size: 15px;
			}

			/* Table head */
			.styled-table thead {
			  background-color: var(--primary);
			  color: #ffffff;
			}

			.styled-table th, .styled-table td {
			  padding: 12px 15px;
			  text-align: center;
			  border: 1px solid #ddd;
			}

			/* Alternating rows */
			.styled-table tbody tr:nth-child(even) {
			  background-color: #f9f9f9;
			}

			/* Hover effect */
			.styled-table tbody tr:hover {
			  background-color: #e0f3ff;
			  transform: scale(1.01);
			  transition: all 0.2s ease;
			}

			/* Responsive handling */
			@media (max-width: 768px) {
			  .styled-table {
				font-size: 13px;
			  }
			  .table-title {
				font-size: 20px;
			  }
			}

			/* Fade-in animation */
			@keyframes fadeIn {
			  from { opacity: 0; transform: translateY(20px); }
			  to { opacity: 1; transform: translateY(0); }
			}
			
			
			
			/*Comparison Remark Styling*/
			
			
			.card3 {
				padding: 20px;
				background: linear-gradient(to right, #f8f9fa, #e0f7fa);
				border-radius: 12px;
				box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
				margin-top: 20px;
				font-family: 'Segoe UI', sans-serif;
			  }

			  .result-box {
				background-color: #ffffffdd;
				border-left: 5px solid #00796b;
				padding: 20px;
				border-radius: 8px;
				animation: fadeIn 0.8s ease-in-out;
			  }

			  .result-box h3 {
				margin-bottom: 15px;
				font-size: 20px;
				color: #00796b;
				text-transform: uppercase;
				letter-spacing: 0.5px;
			  }

			  .remark {
				margin-bottom: 15px;
			  }

			  .remark label {
				font-weight: 600;
				color: #37474f;
				display: block;
				margin-bottom: 6px;
			  }

			  .remark-text {
				display: inline-block;
				padding: 12px 16px;
				background-color: #f1f8e9;
				border-left: 4px solid #8bc34a;
				border-radius: 6px;
				font-size: 15px;
				color: #33691e;
				font-weight: 500;
				transition: all 0.3s ease;
			  }
			  .final-remark {
				  background-color: #e3f2fd;
				  border-left: 4px solid #2196f3;
				  color: #0d47a1;
				}

			  @keyframes fadeIn {
				from {
				  opacity: 0;
				  transform: translateY(10px);
				}
				to {
				  opacity: 1;
				  transform: translateY(0);
				}
			  }
			
			/* Animations */
			@keyframes slideDownFade {
			  0% { opacity: 0; transform: translateY(-20px); }
			  100% { opacity: 1; transform: translateY(0); }
			}
			@keyframes slideUpFade {
			  0% { opacity: 0; transform: translateY(20px); }
			  100% { opacity: 1; transform: translateY(0); }
			}
			@keyframes fadeIn {
			  from { opacity: 0; }
			  to { opacity: 1; }
			}

			/* Responsive Layout */
			@media (max-width: 768px) {
			  .header {
				flex-direction: column;
				text-align: center;
			  }
			  .nav-menu {
				flex-direction: column;
				gap: 10px;
			  }
			  .card, .card1 {
				width: 95%;
			  }
			}
			
			
			/* Grid Layout */
			.layout-wrapper {
			  display: grid;
			  grid-template-columns: 1fr 1fr;
			  gap: 30px;
			}

			/* Columns */
			.form-column, .results-column {
			  background: #ffffff;
			  padding: 20px;
			  border-radius: 12px;
			  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
			  overflow: auto;
			}
			
			
			/* Dropdown Container */
            .nav-item {
              position: relative;
            }
            
            /* Dropdown Menu - initially hidden */
            .dropdown-menu {
              position: absolute;
              top: 110%;
              left: 0;
              background: linear-gradient(135deg, #ffffff 0%, #f4f8fb 100%);
              border-radius: 12px;
              box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
              min-width: 200px;
              opacity: 0;
              transform: translateY(10px);
              pointer-events: none;
              transition: opacity 0.4s ease, transform 0.3s ease;
              z-index: 999;
              overflow: hidden;
            }
            
            /* Dropdown Links */
            .dropdown-link {
              display: block;
              padding: 12px 20px;
              font-size: 15px;
              font-weight: 500;
              color: #333;
              text-decoration: none;
              transition: all 0.3s ease;
              border-bottom: 1px solid #eee;
            }
            
            .dropdown-link:last-child {
              border-bottom: none;
            }
            
            .dropdown-link:hover {
              background: #e3f2fd;
              color: #0d47a1;
              padding-left: 24px;
            }
            
            /* Animate dropdown on hover */
            .nav-item:hover .dropdown-menu {
              opacity: 1;
              transform: translateY(0);
              pointer-events: auto;
            }
            
            
            @media (max-width: 768px) {
    body {
      font-size: 14px;
    }
    .form-title {
      font-size: 24px;
    }
    .section-title, .results-title, .chart-title, .table-title {
      font-size: 18px;
    }
    .nav-link, .developer-label {
      font-size: 14px;
    }
    .btn, .dropdown-link {
      font-size: 14px;
    }
    .result-row label, .result-row span {
      font-size: 14px;
    }
    .remark-text, .final-remark {
      font-size: 14px;
    }
    .card, .card1, .card2, .results-card, .loan-form, .chart-section, .styled-table-container {
      padding: 15px;
    }
    .header {
      flex-direction: column;
      text-align: center;
      padding: 10px;
    }
    .nav-menu {
      flex-direction: column;
      gap: 10px;
    }
    .layout-wrapper {
      grid-template-columns: 1fr;
    }
    .form-column, .results-column {
      padding: 15px;
    }
    #loanPieChart, #loanPieChart1, #loanPieChart2 {
      max-width: 250px;
      width: 100%;
      height: auto !important;
    }
    
    
    
    /*email prpmpt styling*/
    /* Smooth fade-in animation */
/* Overlay: dims background */
#overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  backdrop-filter: blur(2px);
}

/* Modal container */
#emailPrompt {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  padding: 30px 25px;
  width: 90%;
  max-width: 400px;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  font-family: 'Segoe UI', sans-serif;
  animation: fadeIn 0.3s ease-out;
}

/* Animate entrance */
@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -55%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

#emailPrompt h3 {
  margin-top: 0;
  font-size: 20px;
  color: #222;
  text-align: center;
}

#emailPrompt input[type="email"] {
  width: 100%;
  padding: 12px;
  margin-top: 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: border 0.3s, box-shadow 0.3s;
}

#emailPrompt input[type="email"]:focus {
  border-color: #528ff0;
  outline: none;
  box-shadow: 0 0 0 3px rgba(82, 143, 240, 0.2);
}

#emailPrompt .modal-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
}

#emailPrompt button {
  flex: 1;
  margin: 0 5px;
  padding: 12px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#emailPrompt button:first-child {
  background-color: #528ff0;
  color: white;
}

#emailPrompt button:first-child:hover {
  background-color: #3a6edc;
}

#emailPrompt button:last-child {
  background-color: #e0e0e0;
  color: #333;
}

#emailPrompt button:last-child:hover {
  background-color: #ccc;
}

</style>