/* 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;
}

/* Gradient button */
.btn-gradient,
.gradient-btn {
  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,
.gradient-btn: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;
}

/* Main content styles */
.main-content {
  margin-top: 120px;
  padding: 2rem 0;
  min-height: calc(100vh - 120px);
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Form container styles */
.form-container {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 700px;
  margin: 0 auto;
}

.form-header {
  background: linear-gradient(135deg, #facc15, #ca8a04);
  color: white;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.form-header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>')
    repeat;
  animation: float 20s linear infinite;
}

@keyframes float {
  0% {
    transform: translateX(-50px) translateY(-50px) rotate(0deg);
  }
  100% {
    transform: translateX(-50px) translateY(-50px) rotate(360deg);
  }
}

.icon-box {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 1;
}

.form-content {
  padding: 3rem 2rem;
}

.form-control,
.form-select {
  border-radius: 15px;
  border: 2px solid #e5e7eb;
  padding: 1rem 1.25rem;
  transition: all 0.3s ease;
  font-size: 1rem;
  background: #fff;
}

.form-control:focus,
.form-select:focus {
  border-color: #facc15;
  box-shadow: 0 0 0 0.25rem rgba(250, 204, 21, 0.15);
  transform: translateY(-2px);
  outline: none;
}

.form-control.is-valid,
.form-select.is-valid {
  border-color: #10b981;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2310b981' d='m2.3 6.73.94-.94-.94-.94L1.36 6.01 0 4.65l.94-.94L2.3 5.07l3.54-3.54.94.94L2.3 6.73z'/%3e%3c/svg%3e");
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #ef4444;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23ef4444'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6.7.7M6.5 7.3l-.7-.7m0 0-.7-.7m.7.7.7.7'/%3e%3c/svg%3e");
}

.form-label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.required {
  color: #ef4444;
}

.success-message {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}

.success-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  animation: bounce 0.6s ease-out;
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0, 0, 0);
  }
  40%, 43% {
    transform: translate3d(0, -30px, 0);
  }
  70% {
    transform: translate3d(0, -15px, 0);
  }
  90% {
    transform: translate3d(0, -4px, 0);
  }
}

.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: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  background: #20b954;
  transform: scale(1.1);
  color: #fff;
}

/* Loading animation for form submission */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Error message styles */
.error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.form-field.has-error .error-message {
  display: block;
}

/* Base Footer Styles (Desktop) */
.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,
.social-btn:focus {
  transform: translateY(-3px);
  opacity: 0.9;
  color: #fff;
  outline: 2px solid #facc15;
  outline-offset: 2px;
  border-radius: 4px;
}

.footer-link {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s;
  word-break: break-word;
  hyphens: auto;
}

.footer-link:hover,
.footer-link:focus {
  color: #facc15;
  text-decoration: underline;
  outline: 2px solid #facc15;
  outline-offset: 2px;
}

.dot {
  width: 6px;
  height: 6px;
  background: linear-gradient(to right, #facc15, #2563eb);
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
  display: inline-block;
}

/* Footer Icon Box (different from form icon-box) */
.footer .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;
  margin-top: 2px;
}

.footer .icon-box i {
  font-size: 1rem;
}

/* Footer Contact Section Specific Styles */
.footer .col-lg-4.col-md-6 {
  margin-bottom: 2rem;
}

.footer .col-lg-4.col-md-6 h5 {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer .d-flex {
  align-items: flex-start;
  margin-bottom: 1.5rem;
  /* gap: 1rem; */
}

.footer .ms-3 {
  flex: 1;
  min-width: 0;
}

.footer .fw-semibold {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  font-weight: 600;
}

.footer .fw-semibold a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s;
}

.footer .fw-semibold a:hover {
  color: #facc15;
}

.footer .text-light.small {
  font-size: 0.85rem;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
  color: #d1d5db;
}

/* Prevent horizontal overflow */
.footer * {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer .container {
  padding-left: 15px;
  padding-right: 15px;
}

/* Text colors */
.text-light {
  color: #d1d5db !important;
}

.text-white {
  color: #ffffff !important;
}

.text-warning {
  color: #facc15 !important;
}

/* Mobile Responsive Styles */
@media (max-width: 575.98px) {
  /* Header Mobile Styles */
  body {
    padding-top: 80px;
  }

  header .container {
    padding: 8px 15px;
  }

  .brand-logo {
    height: 50px;
  }

  .brand-logo img {
    max-height: 50px;
  }

  .fs-5 {
    font-size: 0.9rem !important;
  }

  .mobile-menu-btn {
    font-size: 1.2rem;
  }

  /* Main Content Mobile */
  .main-content {
    margin-top: 80px;
    padding: 1rem;
  }

  /* Form Mobile Styles */
  .form-container {
    border-radius: 15px;
    margin: 0.5rem;
  }

  .form-header {
    padding: 2rem 1.5rem;
  }

  .form-header h3 {
    font-size: 1.5rem;
  }

  .form-header .icon-box {
    width: 60px;
    height: 60px;
    border-radius: 15px;
  }

  .form-content {
    padding: 2rem 1.5rem;
  }

  .form-control,
  .form-select {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    border-radius: 12px;
  }

  .btn-gradient {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 24px;
    bottom: 15px;
    right: 15px;
  }

  /* Footer Mobile Styles */
  .footer {
    padding: 2rem 0 1rem;
  }

  .footer .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Hide empty column on mobile */
  .col-lg-1.d-none.d-lg-block {
    display: none !important;
  }

  /* Stack columns vertically */
  .footer .row {
    text-align: left !important;
    margin: 0;
  }

  .footer .col-lg-2,
  .footer .col-lg-4,
  .footer .col-md-6 {
    text-align: left !important;
    margin-bottom: 2rem;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
  }

  /* Quick Links Section */
  .footer .col-lg-2:nth-child(2) h5 {
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: left;
    font-weight: 600;
  }

  .footer .list-unstyled {
    text-align: left;
    margin-bottom: 0;
    padding-left: 0;
  }

  .footer .list-unstyled li {
    margin-bottom: 0.75rem;
  }

  .footer-link {
    font-size: 0.9rem;
    line-height: 1.4;
    display: block;
    padding: 0.5rem 0;
    min-height: 44px;
    color: #d1d5db;
  }

  .footer-link:hover {
    color: #facc15;
    padding-left: 0.25rem;
  }

  /* Services Section */
  .footer .col-lg-2:nth-child(3) h5 {
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: left;
    font-weight: 600;
  }

  .footer .col-lg-2:nth-child(3) .list-unstyled li {
    margin-bottom: 0.75rem;
  }

  .footer .d-flex.align-items-center.mb-2 {
    align-items: flex-start;
    margin-bottom: 0.75rem !important;
    gap: 0.75rem;
  }

  .footer .dot {
    margin-top: 0.4rem;
    margin-right: 8px;
    flex-shrink: 0;
  }

  /* Contact Section */
  .footer .col-lg-4.col-md-6 h5 {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    text-align: left;
    font-weight: 600;
  }

  .footer .col-lg-4.col-md-6 .d-flex {
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 1.25rem !important;
    gap: 0.75rem;
    flex-wrap: nowrap;
  }

  .footer .icon-box {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    margin-top: 0.25rem;
    flex-shrink: 0;
  }

  .footer .icon-box i {
    font-size: 0.9rem;
  }

  .footer .ms-3 {
    margin-left: 0 !important;
    flex: 1;
    min-width: 0;
  }

  .footer .fw-semibold {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    font-weight: 600;
  }

  .footer .fw-semibold a {
    display: inline-block;
    margin-top: 0.25rem;
    font-size: 0.9rem;
    color: #d1d5db;
    text-decoration: none;
    word-break: break-all;
    line-height: 1.3;
  }

  .footer .fw-semibold a:hover {
    color: #facc15;
    text-decoration: underline;
  }

  .footer .text-light.small {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #d1d5db;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    margin-top: 0.25rem;
  }

  /* Social Media Section */
  .footer .col-lg-2:last-child h5 {
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: left;
    font-weight: 600;
  }

  .footer .d-flex.flex-column.gap-3.mt-2 {
    justify-content: flex-start;
    flex-direction: column;
    gap: 0.75rem !important;
    margin-top: 0.75rem !important;
  }

  .social-btn {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    font-size: 1rem;
    min-height: 44px;
    justify-content: center;
    padding: 0.5rem;
  }

  /* 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;
    margin-bottom: 0.5rem;
  }

  .footer .d-flex.align-items-center.gap-2.text-light.small {
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
  }

  .footer .fas.fa-shield-alt,
  .footer .fas.fa-lock {
    font-size: 0.8rem;
    margin-right: 0.5rem;
  }

  /* 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.25rem !important;
    border-radius: 8px !important;
  }

  .footer h6.fw-semibold.text-warning.mb-3 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem !important;
    text-align: left;
  }

  .footer .bg-secondary p.small.text-light {
    font-size: 0.75rem !important;
    line-height: 1.5;
    margin-bottom: 0;
    text-align: left;
  }

  /* 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;
    line-height: 1.4;
  }

  .footer .text-center p.small {
    font-size: 0.8rem !important;
    margin-bottom: 0;
    line-height: 1.4;
  }

  .footer .text-center a {
    color: #facc15;
    text-decoration: none;
  }

  .footer .text-center a:hover {
    text-decoration: underline;
  }
}

/* Ultra-Small Screens (max-width: 360px) */
@media (max-width: 360px) {
  .footer .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .footer .col-lg-2,
  .footer .col-lg-4,
  .footer .col-md-6 {
    padding-left: 0;
    padding-right: 0;
  }

  .footer h5 {
    font-size: 0.95rem;
  }

  .footer .text-light.small {
    font-size: 0.75rem;
  }

  .footer .bg-secondary p.small.text-light {
    font-size: 0.7rem;
  }

  .footer .icon-box {
    width: 32px;
    height: 32px;
    border-radius: 6px;
  }

  .footer .icon-box i {
    font-size: 0.8rem;
  }

  .footer .fw-semibold {
    font-size: 0.85rem;
  }

  .footer .fw-semibold a {
    font-size: 0.85rem;
  }

  .footer .d-flex {
    gap: 0.5rem;
  }

  .social-btn {
    width: 40px;
    height: 40px;
  }

  .footer-link {
    font-size: 0.85rem;
  }

  .footer .d-flex.flex-wrap.gap-4 {
    gap: 0.75rem !important;
  }

  .footer .d-flex.align-items-center.gap-2.text-light.small {
    font-size: 0.75rem;
  }
}

/* Small Tablets (576px–767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Main Content */
  .main-content {
    padding: 1.5rem;
  }

  .form-container {
    margin: 1rem;
  }

  .form-header {
    padding: 2.5rem 2rem;
  }

  .form-content {
    padding: 2.5rem 2rem;
  }

  /* Footer */
  .footer {
    padding: 3rem 0 2rem;
  }

  .footer .row {
    text-align: left !important;
  }

  .footer .col-lg-2,
  .footer .col-lg-4,
  .footer .col-md-6 {
    text-align: left !important;
    margin-bottom: 2rem;
  }

  .footer h5 {
    font-size: 1.1rem;
  }

  .social-btn {
    width: 42px;
    height: 42px;
  }

  .footer .icon-box {
    width: 38px;
    height: 38px;
  }

  .footer .text-center {
    text-align: center !important;
  }

  .footer .text-center p {
    text-align: center !important;
  }

  .footer .d-flex {
    margin-bottom: 1.25rem !important;
  }

  .footer .fw-semibold {
    font-size: 0.95rem;
  }

  .footer .fw-semibold a {
    font-size: 0.95rem;
  }

  .footer .text-light.small {
    font-size: 0.85rem;
  }

  /* Two-column layout for tablets */
  .footer .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Medium Devices (768px–991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .form-header {
    padding: 3rem 2.5rem;
  }

  .form-content {
    padding: 3rem 2.5rem;
  }

  .footer .col-md-6,
  .footer .col-lg-4.col-md-6 {
    margin-bottom: 2rem;
  }

  .footer .row {
    text-align: left;
  }

  .footer .d-flex {
    margin-bottom: 1.5rem !important;
  }

  /* Three-column layout for tablets */
  .footer .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }

  .footer .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Touch device improvements */
@media (pointer: coarse) {
  .form-control,
  .form-select {
    min-height: 50px;
  }

  .btn-gradient {
    min-height: 50px;
    font-size: 1.1rem;
  }

  /* Footer touch improvements */
  .footer-link,
  .social-btn {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
  }

  .social-btn {
    min-height: 44px;
    justify-content: center;
  }

  .footer .fw-semibold a {
    min-height: 48px;
    padding: 0.75rem 0;
    display: inline-block;
    align-items: center;
  }

  .footer .d-flex.align-items-center.mb-2 {
    min-height: 48px;
  }
}

/* Accessibility improvements */
@media (max-width: 767.98px) {
  .footer .col-lg-4.col-md-6 * {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
  }

  .footer .fw-semibold a[href^="mailto:"],
  .footer .fw-semibold a[href^="tel:"] {
    word-break: break-all;
    display: inline-block;
    max-width: 100%;
  }
}

/* Dark mode compatibility */
@media (prefers-color-scheme: dark) {
  .footer {
    background: #0f172a;
  }
}

/* Large Desktop */
@media (min-width: 992px) {
  .footer {
    padding: 4rem 0 3rem;
  }

  .footer .col-lg-2 h5,
  .footer .col-lg-4 h5 {
    font-size: 1.1rem;
  }

  .footer .d-flex {
    /* gap: 1.25rem; */
  }

  .footer .icon-box {
    width: 42px;
    height: 42px;
  }

  .footer .fw-semibold {
    font-size: 1rem;
  }
}
/* Footer Contact Information - Add space between icon & text */
.footer-contact .contact-item {
  display: flex;
  align-items: center;     
  gap: 1rem;               /* ✅ increased gap between icon & text */
  margin-bottom: 0.8rem;   /* balanced row spacing */
}

.footer-contact .contact-item:last-child {
  margin-bottom: 0;
}

.footer-contact .contact-item * {
  margin: 0 !important;
  line-height: 1.3;
}

