body {
  font-family: "Inter", sans-serif;
  background: #f5f7fa;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  margin: 0;
  min-height: 100vh;
}

/* Header Styles */
header {
  transition: all 0.3s ease;
  z-index: 1050;
}
header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
header.default {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
}

/* Brand Logo */
.brand-logo {
  width: auto;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo img {
  max-height: 70px;
  width: auto;
  display: block;
}

/* Nav links */
.nav-link {
  font-weight: 500;
  color: #374151;
  position: relative;
  transition: color 0.3s;
  text-decoration: none;
}
.nav-link:hover {
  color: #1e3a8a;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #facc15, #ca8a04);
  transition: width 0.3s;
}
.nav-link:hover::after {
  width: 100%;
}

/* Remove default Bootstrap caret */
.dropdown-toggle::after {
  display: none !important;
}

/* Rotate chevron when dropdown is open */
.dropdown-toggle .fa-chevron-down {
  transition: transform 0.3s ease;
}
.dropdown.show .fa-chevron-down {
  transform: rotate(180deg);
}

/* Mobile dropdown fix */
#mobileNav .collapse .dropdown-item {
  padding: 0.5rem 0;
  color: #374151;
}
#mobileNav .collapse .dropdown-item:hover {
  color: #1e3a8a;
}
/* Gradient button */
.btn-gradient {
  background: linear-gradient(to right, #facc15, #ca8a04);
  color: #fff;
  font-weight: 600;
  border-radius: 50px;
  padding: 0.6rem 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border: none;
}
.btn-gradient:hover {
  background: linear-gradient(to right, #eab308, #a16207);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
  color: #fff;
}

/* Mobile menu button */
.mobile-menu-btn {
  font-size: 1.5rem;
  color: #000 !important;
  background: none;
  border: none;
  outline: none;
}
.mobile-menu-btn:hover {
  color: #000 !important;
}

/* Mobile nav */
#mobileNav a {
  color: #374151;
  font-weight: 500;
  transition: color 0.3s;
}
#mobileNav a:hover {
  color: #1e3a8a;
}
#mobileNav .btn-gradient {
  margin-top: 1rem;
}

/* Body padding to account for fixed header */
body {
  padding-top: 100px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Main container for calculator */
.main-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
  min-height: calc(100vh - 200px);
}

.calculator {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  max-width: 820px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 28px;
  color: #222;
  text-align: center;
}

.field {
  margin-bottom: 28px;
}
.field label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #444;
}

.input-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}

input[type="range"] {
  flex: 1;
  appearance: none;
  height: 10px;
  border-radius: 5px;
  background: #e5e7eb;
  outline: none;
  cursor: pointer;
  min-width: 120px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 22px;
  width: 22px;
  border-radius: 50%;
  background: #2563eb;
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  height: 22px;
  width: 22px;
  border-radius: 50%;
  background: #2563eb;
  cursor: pointer;
  border: none;
}

.input-box {
  position: relative;
  flex-shrink: 0;
}
.input-box span {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  font-weight: 700;
  color: #2563eb;
  z-index: 1;
}
.input-box .prefix {
  left: 8px;
}
.input-box .suffix {
  left: 8px;
}
.input-box input {
  width: 160px;
  padding: 10px 18px;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  text-align: right;
  font-size: 16px;
  font-weight: 700;
  color: #2563eb;
  background: #f9fffc;
}
.input-box input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.result {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 2px solid #eee;
}
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 18px;
  color: #555;
  flex-wrap: wrap;
  gap: 8px;
}
.result-row span.value {
  font-weight: 800;
  color: #111;
  font-size: 20px;
}

.footer {
  background: #111827;
  color: #fff;
  margin-top: auto;
}

.footer-logo {
  max-width: 60px;
  flex-shrink: 0;
}

.footer-logo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.3s ease;
  text-decoration: none;
}
.social-btn.linkedin {
  background: linear-gradient(to right, #0a66c2, #004182);
}
.social-btn.twitter {
  background: linear-gradient(to right, #1da1f2, #0d8ddb);
}
.social-btn.youtube {
  background: linear-gradient(to right, #ff0000, #cc0000);
}
.social-btn:hover {
  transform: translateY(-3px);
  opacity: 0.9;
  color: #fff;
}

.footer-link {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s;
  line-height: 1.8;
}
.footer-link:hover {
  color: #facc15;
  text-decoration: underline;
}

.dot {
  width: 6px;
  height: 6px;
  background: linear-gradient(to right, #facc15, #2563eb);
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
  display: inline-block;
}

.icon-box {
  width: 40px;
  height: 40px;
  background: linear-gradient(to right, #facc15, #ca8a04);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  flex-shrink: 0;
}

/* Text colors */
.text-light {
  color: #d1d5db !important;
}

.text-white {
  color: #ffffff !important;
}

.text-warning {
  color: #facc15 !important;
}

/* Mobile Responsive Footer Styles */

/* Extra Small devices (< 576px) */
@media (max-width: 575.98px) {
  .footer {
    padding: 2rem 0 1rem;
  }

  .footer .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Override center alignment for mobile */
  .footer .row {
    text-align: left !important;
  }

  .footer .col-lg-3,
  .footer .col-md-6 {
    text-align: left !important;
    margin-bottom: 2rem;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Company Info Section */
  .footer .col-lg-3:first-child .d-flex.align-items-center.mb-3 {
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .footer-logo {
    max-width: 45px;
  }

  .footer .col-lg-3:first-child h3 {
    font-size: 1rem;
    margin-bottom: 0;
    line-height: 1.2;
  }

  .footer .text-light.small {
    text-align: left;
    margin-bottom: 1rem;
    line-height: 1.4;
  }

  /* Social Media Section */
  .footer h5.fw-semibold.mt-4 {
    text-align: left;
    font-size: 1rem;
    margin-top: 1.5rem !important;
    margin-bottom: 0.75rem;
  }

  .footer .d-flex.gap-3.mt-2 {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem !important;
    margin-top: 0.75rem !important;
  }

  .social-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    font-size: 0.9rem;
  }

  /* Quick Links Section */
  .footer .col-lg-3:nth-child(2) h5 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    text-align: left;
  }

  .footer .list-unstyled {
    text-align: left;
    margin-bottom: 0;
  }

  .footer .list-unstyled li {
    margin-bottom: 0.5rem;
  }

  .footer-link {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  /* Services Section */
  .footer .col-lg-3:nth-child(3) h5 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    text-align: left;
  }

  .footer .col-lg-3:nth-child(3) .list-unstyled li {
    margin-bottom: 0.5rem;
  }

  .footer .d-flex.align-items-center.mb-2 {
    align-items: flex-start;
    margin-bottom: 0.5rem !important;
  }

  .footer .dot {
    margin-top: 0.25rem;
    margin-right: 8px;
    flex-shrink: 0;
  }

  /* Contact Information Section */
  .footer .col-lg-3:last-child h5 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    text-align: left;
  }

  .footer .d-flex.mb-3 {
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 1rem !important;
    gap: 12px;
  }

  .icon-box {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    flex-shrink: 0;
    margin-top: 2px;
  }

  .icon-box i {
    font-size: 0.9rem;
  }

  .footer .d-flex.mb-3 .ms-3 {
    margin-left: 0 !important;
    flex: 1;
  }

  .footer .fw-semibold {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
  }

  .footer .text-light.small {
    font-size: 0.85rem;
    line-height: 1.3;
  }

  /* Security Badges Section */
  .footer .border-top.border-secondary.pt-4.mt-5 {
    margin-top: 2rem !important;
    padding-top: 1.5rem !important;
  }

  .footer .d-flex.flex-wrap.gap-4 {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 1rem !important;
  }

  .footer .d-flex.align-items-center.gap-2.text-light.small {
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    align-items: center;
  }

  .footer .fas.fa-shield-alt,
  .footer .fas.fa-lock {
    font-size: 0.8rem;
  }

  /* Compliance Disclaimer Section */
  .footer .border-top.border-secondary.pt-4.mt-4 {
    margin-top: 1.5rem !important;
    padding-top: 1.5rem !important;
  }

  .footer .bg-secondary.bg-opacity-25.rounded.p-4 {
    padding: 1.5rem !important;
    border-radius: 8px !important;
  }

  .footer h6.fw-semibold.text-warning.mb-3 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem !important;
  }

  .footer .bg-secondary p.small.text-light {
    font-size: 0.75rem !important;
    line-height: 1.4;
    margin-bottom: 0;
  }

  /* Copyright Section - Centered */
  .footer .border-top.pt-4.mt-4.text-center {
    text-align: center !important;
    margin-top: 1.5rem !important;
    padding-top: 1.5rem !important;
  }

  .footer .text-center p {
    text-align: center !important;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
  }

  .footer .text-center p.small {
    font-size: 0.75rem !important;
    margin-bottom: 0;
  }

  .footer .text-center a {
    color: #facc15;
    text-decoration: none;
  }

  .footer .text-center a:hover {
    text-decoration: underline;
  }
}

/* Small devices (576px - 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .footer {
    padding: 3rem 0 2rem;
  }

  /* Keep left alignment but with better spacing */
  .footer .row {
    text-align: left !important;
  }

  .footer .col-lg-3,
  .footer .col-md-6 {
    text-align: left !important;
    margin-bottom: 2rem;
  }

  .footer-logo {
    max-width: 50px;
  }

  .footer h5 {
    font-size: 1.1rem;
  }

  .social-btn {
    width: 38px;
    height: 38px;
  }

  .icon-box {
    width: 38px;
    height: 38px;
  }

  /* Copyright stays centered */
  .footer .text-center {
    text-align: center !important;
  }

  .footer .text-center p {
    text-align: center !important;
  }
}

/* Medium devices (768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .footer .col-md-6 {
    margin-bottom: 2rem;
  }

  /* On tablets, we can start using some centering for better balance */
  .footer .row {
    text-align: left;
  }
}

/* Ensure no horizontal overflow in footer */
.footer * {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer .container-fluid {
  padding-left: 15px;
  padding-right: 15px;
}

/* Fix for very long text in footer */
.footer .text-light.small,
.footer .footer-link {
  word-break: break-word;
  hyphens: auto;
}

/* Ensure footer links are touchable on mobile */
@media (max-width: 767.98px) {
  .footer-link,
  .social-btn {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
  }

  .social-btn {
    min-height: 36px;
    justify-content: center;
  }
}

/* Dark mode compatibility */
@media (prefers-color-scheme: dark) {
  .footer {
    background: #0f172a;
  }
}

/* Mobile Responsive Styles */
@media (max-width: 575.98px) {
  body {
    padding-top: 80px;
  }

  header .container {
    padding: 8px 15px;
  }

  .brand-logo img {
    max-height: 50px;
  }

  .fs-5 {
    font-size: 0.9rem !important;
  }

  .mobile-menu-btn {
    font-size: 1.2rem;
  }

  .main-container {
    padding: 10px;
  }

  .calculator {
    padding: 20px;
    border-radius: 15px;
    margin: 10px 0;
  }

  h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .field {
    margin-bottom: 20px;
  }

  .field label {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .input-row {
    gap: 10px;
    flex-direction: column;
    align-items: stretch;
  }

  input[type="range"] {
    min-width: 100%;
    order: 2;
    margin-top: 8px;
  }

  .input-box {
    order: 1;
    align-self: flex-end;
  }

  .input-box input {
    width: 140px;
    font-size: 14px;
    padding: 8px 18px;
  }

  .input-box span {
    font-size: 14px;
  }

  .result {
    margin-top: 24px;
    padding-top: 16px;
  }

  .result-row {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .result-row span.value {
    font-size: 18px;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  body {
    padding-top: 90px;
  }

  .calculator {
    padding: 30px;
  }

  h2 {
    font-size: 2.2rem;
  }

  .input-row {
    gap: 12px;
  }

  .input-box input {
    width: 150px;
    font-size: 15px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .calculator {
    padding: 35px;
  }

  .input-box input {
    width: 155px;
  }
}

@media (max-width: 1199.98px) {
  .calculator {
    max-width: 720px;
  }
}

/* Landscape mobile orientation */
@media (max-width: 767.98px) and (orientation: landscape) {
  body {
    padding-top: 70px;
  }

  .calculator {
    padding: 25px;
  }

  h2 {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .field {
    margin-bottom: 18px;
  }

  .input-row {
    flex-direction: row;
    gap: 12px;
  }

  input[type="range"] {
    order: initial;
    margin-top: 0;
  }

  .input-box {
    order: initial;
  }
}

/* Large mobile devices */
@media (min-width: 400px) and (max-width: 575.98px) {
  .calculator {
    padding: 25px;
  }

  .input-box input {
    width: 150px;
  }
}

/* Touch device improvements */
@media (pointer: coarse) {
  input[type="range"] {
    height: 12px;
  }

  input[type="range"]::-webkit-slider-thumb {
    height: 26px;
    width: 26px;
  }

  input[type="range"]::-moz-range-thumb {
    height: 26px;
    width: 26px;
  }

  .btn-gradient {
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
  }
}

/* Privacy Policy Modal Styles */
.privacy-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10001;
  animation: privacyFadeIn 0.3s ease-in-out;
}

@keyframes privacyFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes privacyFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.privacy-modal {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  max-width: 700px;
  width: 95%;
  max-height: 100vh;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  animation: privacySlideUp 0.4s ease-out;
  position: relative;
}

@keyframes privacySlideUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.privacy-modal-content {
  background: white;
  margin: 4px;
  border-radius: 16px;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.privacy-modal-header {
  text-align: center;
  padding: 30px 30px 20px;
  border-bottom: 2px solid #f0f0f0;
  flex-shrink: 0;
}

.privacy-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 20px;
  color: white;
}

.privacy-modal-title {
  color: #2d3436;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 5px;
}

.privacy-modal-subtitle {
  color: #636e72;
  font-size: 14px;
  font-weight: 500;
}

.privacy-modal-body {
  padding: 20px 30px;
  color: #2d3436;
  font-size: 15px;
  line-height: 1.6;
  overflow-y: auto;
  flex-grow: 1;
}

.privacy-section {
  margin-bottom: 20px;
}

.privacy-section h4 {
  color: #0984e3;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 16px;
}

.privacy-section ul {
  margin-left: 20px;
  margin-top: 10px;
}

.privacy-section li {
  margin-bottom: 5px;
}

.privacy-highlight {
  background: linear-gradient(120deg, #e3f2fd 0%, #bbdefb 100%);
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #2196f3;
  margin: 15px 0;
}

.privacy-contact {
  background: linear-gradient(135deg, #74b9ff, #0984e3);
  color: white;
  padding: 15px;
  border-radius: 10px;
  margin: 15px 0;
  text-align: center;
}

.privacy-contact strong {
  color: #fff;
}

.privacy-modal-footer {
  padding: 20px 30px;
  border-top: 2px solid #f0f0f0;
  text-align: center;
  flex-shrink: 0;
}

.privacy-close-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.privacy-close-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(102, 126, 234, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .privacy-modal-overlay {
    padding: 10px;
  }

  .privacy-modal {
    width: 100%;
    max-height: 85vh;
  }

  .privacy-modal-content {
    max-height: calc(85vh - 8px);
  }

  .privacy-modal-body {
    max-height: calc(85vh - 180px);
    padding: 15px 20px;
    font-size: 14px;
  }

  .privacy-modal-header {
    padding: 20px 20px 15px;
  }

  .privacy-modal-footer {
    padding: 15px 20px 20px;
  }

  .privacy-modal-title {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .privacy-modal {
    max-height: 90vh;
  }

  .privacy-modal-content {
    max-height: calc(90vh - 8px);
  }

  .privacy-modal-body {
    max-height: calc(90vh - 160px);
    padding: 15px;
  }

  .privacy-modal-header {
    padding: 15px;
  }

  .privacy-modal-footer {
    padding: 15px;
  }
}
/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  cursor: pointer;
  transition: 0.3s;
}

.whatsapp-float:hover {
  background: #20b954;
  transform: scale(1.1);
}
