/* Modern Mobile-First Interior Design Website Styles */

/* Base Styles & CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #1a2b5e; /* Navy blue */
  --secondary-color: #f8f9fa; /* Light gray */
  --accent-color: #ff6b6b; /* Coral */
  --text-color: #333;
  --light-text: #f8f9fa;
  --background-color: #ffffff;
  --light-bg: #f8f9fa;
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --error-color: #dc3545;
  --card-gradient: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);
  --card-hover-gradient: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  padding: 0;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color);
}

ul {
  list-style-position: inside;
  margin-bottom: 1rem;
}

/* Typography */
h1 {
  font-size: 1.8rem;
}

h2 {
  font-size: 1.5rem;
  text-align: center;
  margin: 2rem 0;
  position: relative;
  padding-bottom: 0.5rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

/* Layout */
section {
  padding: 2rem 1rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles - Updated to match reference */
header {
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--primary-color);
  padding: 0.75rem 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--box-shadow);
  border-bottom: 1px solid rgba(234, 234, 234, 0.5);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 45px;
  width: auto;
  object-fit: contain;
}

.tagline {
  font-size: 0.7rem;
  color: #666;
  font-weight: 400;
}

.header-button a {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: white;
  padding: 0.6rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  text-align: center;
  box-shadow: 0 4px 16px rgba(255, 82, 82, 0.35), 0 2px 8px rgba(255, 107, 107, 0.25);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.header-button a:hover {
  background: linear-gradient(135deg, #ff8383 0%, #ff6b6b 100%);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(255, 82, 82, 0.5), 0 4px 12px rgba(255, 107, 107, 0.35);
}

/* Mobile-specific adjustments for header button */
@media (max-width: 767px) {
  .header-button a {
    padding: 0.4rem 0.7rem !important; /* Use !important to override other styles */
    font-size: 0.75rem !important;
    min-width: auto !important;
    font-weight: 600 !important;
    white-space: nowrap;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 3px 12px rgba(255, 82, 82, 0.3) !important;
  }
  
  .logo-img {
    height: 35px !important; /* Make logo even smaller */
  }
  
  .header-container {
    padding: 0; /* Remove any additional padding */
  }
}

/* Services Section - New Modern Design */
#services {
  background-color: var(--light-bg);
  padding: 4rem 1rem;
}

#services h2 {
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.service-card {
  background: transparent;
  height: auto;
  min-height: auto;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s ease;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: left;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  background: var(--card-gradient);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card.active .service-card-inner {
  background: var(--card-hover-gradient);
}

.service-front,
.service-back {
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-front {
  display: flex;
  flex-direction: column;
  min-height: auto;
}

.service-back {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
}

.service-card.active .service-back {
  max-height: 500px;
  opacity: 1;
  padding: 0.5rem 1.5rem 1.5rem;
}

.service-icon {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
  width: 50px;
  height: 50px;
  background-color: rgba(255, 107, 107, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
  background-color: rgba(255, 107, 107, 0.2);
}

.service-front h3 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 0;
  line-height: 1.3;
  transition: all 0.3s ease;
  padding-right: 2rem;
}

.expand-icon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: var(--accent-color);
  font-size: 1rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 107, 0.1);
  border-radius: 50%;
  transition: all 0.4s ease;
}

.service-card.active .expand-icon {
  transform: rotate(45deg);
  background: var(--accent-color);
  color: white;
}

.service-back ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-back li {
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.5;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  transition-delay: 0.1s;
}

.service-card.active .service-back li {
  opacity: 1;
  transform: translateY(0);
}

.service-back li:nth-child(2) { transition-delay: 0.2s; }
.service-back li:nth-child(3) { transition-delay: 0.3s; }
.service-back li:nth-child(4) { transition-delay: 0.4s; }

.service-back li::before {
  content: "•";
  color: var(--accent-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Hover effect for desktop */
@media (min-width: 1024px) {
  .service-card:hover:not(.active) .service-card-inner {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  }
  
  /* Fix for desktop grid layout */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: min-content;
    gap: 1.5rem;
  }
  
  /* Make each card take its own space */
  .service-card {
    height: auto;
    align-self: flex-start;
  }
  
  /* Ensure consistent height for front faces */
  .service-front {
    min-height: auto;
  }
}

/* Media Queries for Services Section */
@media (max-width: 767px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-front,
  .service-back {
    padding: 1.25rem;
  }

  .service-icon {
    width: 45px;
    height: 45px;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }

  .service-front h3 {
    font-size: 1.1rem;
    padding-right: 2rem;
  }

  .expand-icon {
    top: 1.25rem;
    right: 1.25rem;
    width: 26px;
    height: 26px;
    font-size: 0.9rem;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  /* Ensure consistent height for front faces */
  .service-front {
    min-height: auto;
  }
  
  /* Make each card take its own space */
  .service-card {
    height: auto;
    align-self: flex-start;
  }
}

@media (min-width: 992px) {
  /* Services grid for desktop */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Larger padding for desktop */
  section {
    padding: 4rem 2rem;
  }
  
  /* Larger logo for desktop */
  .logo-img {
    height: 60px;
  }
  
  /* Contact layout for desktop */
  .contact-container {
    flex-direction: row;
    align-items: stretch;
  }
  
  .contact-info {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Hero adjustments for desktop */
  #hero {
    height: 80vh;
    max-height: 700px;
  }
}

/* Form Styles */
#personal-info {
  background-color: white;
  padding: 2rem 1rem;
}

.form-step {
  background-color: var(--light-bg);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  max-width: 600px;
  margin: 0 auto;
}

.form-description {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  padding: 1rem;
  background-color: rgba(26, 43, 94, 0.04);
  border-left: 4px solid var(--accent-color);
  border-radius: 6px;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}

/* Fix for dropdown arrow spacing */
select {
  padding-right: 2.5rem;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a2b5e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1em;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(58, 110, 165, 0.2);
}

input.invalid,
select.invalid {
  border-color: var(--error-color);
  background-color: rgba(220, 53, 69, 0.05);
}

/* Error message styling */
.error-message {
  color: var(--error-color);
  font-size: 0.85rem;
  margin-top: -0.75rem;
  margin-bottom: 1rem;
  animation: fadeIn 0.3s ease;
}

input[type="radio"] {
  margin-right: 0.5rem;
}

.company-fields,
.personal-fields {
  padding: 1rem;
  background-color: rgba(192, 214, 223, 0.2);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
}

button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

button:hover {
  background-color: #2c5a8c;
}

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

button[type="submit"]:hover {
  background-color: #e05555;
}

#confirmation {
  width: 100%;
  background-color: transparent;
  padding: 0;
  margin: 0;
}

.success-message {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  animation: fadeIn 0.5s ease-in-out;
  max-width: 350px;
  margin: 0 auto;
  border: 1px solid #e0e0e0;
}

.success-icon {
  font-size: 40px;
  color: #28a745;
  margin-bottom: 15px;
  display: block;
}

.success-message h4 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #333;
}

.success-message p {
  font-size: 16px;
  color: #555;
  line-height: 1.5;
  margin: 0;
}

/* Contact Section - New Modern Design */
#contact {
  background: linear-gradient(135deg, #1a2b5e 0%, #0f1d45 100%);
  color: var(--light-text);
  padding: 3rem 1rem;
}

#contact h2 {
  color: var(--light-text);
  margin-bottom: 3rem;
}

#contact h2::after {
  background-color: var(--accent-color);
}

.contact-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.contact-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--accent-color);
  background-color: rgba(255, 107, 107, 0.2);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-text {
  flex: 1;
}

.contact-text h3 {
  color: var(--light-text);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.contact-text p {
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Mobile-specific enhancements */
@media (max-width: 767px) {
  /* Header adjustments for mobile */
  header {
    padding: 0.5rem 0.75rem; /* Reduce header padding */
  }
  
  .header-container {
    padding: 0; /* Remove any additional padding */
  }
  
  .header-button a {
    padding: 0.4rem 0.7rem !important; /* Use !important to override other styles */
    font-size: 0.75rem !important;
    min-width: auto !important;
    font-weight: 600 !important;
    white-space: nowrap;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 3px 12px rgba(255, 82, 82, 0.3) !important;
  }
  
  /* Logo size for mobile */
  .logo-img {
    height: 35px !important; /* Make logo even smaller */
  }
  
  /* Make buttons more tappable on mobile */
  button {
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    min-width: 120px;
    display: inline-block;
    text-align: center;
  }
  
  /* Improve form spacing on mobile */
  .form-step {
    padding: 1rem;
  }
  
  /* Larger touch targets for radio buttons */
  input[type="radio"] + label {
    padding: 0.4rem 0;
    display: inline-block;
  }
  
  /* Ensure inputs have enough height for touch */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  select {
    height: 40px; /* Reduced from 48px to be more compact */
  }
  
  /* Reduce section padding */
  section {
    padding: 1.5rem 0.5rem;
  }
  
  /* Reduce container padding */
  .container {
    padding: 0 0.5rem;
  }
  
  /* Reduce heading margins */
  h2 {
    margin: 1.5rem 0;
    font-size: 1.3rem;
  }
  
  h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  
  /* Ensure dropdown arrows have enough space on mobile */
  select {
    padding-right: 2.5rem;
    background-position: right 0.75rem center;
  }
  
  /* Improve service item spacing */
  .service-card {
    padding: 1.25rem;
  }
  
  /* Contact adjustments for mobile */
  .contact-item {
    padding: 1.25rem;
  }
  
  .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  /* Hero adjustments for mobile */
  #hero {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 5rem 0 3rem;
  }
  
  .hero-text {
    text-align: center;
    margin: 0 auto;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .hero-text p {
    font-size: 1rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
    gap: 1.5rem;
  }
  
  .stat-item {
    text-align: center;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
}

@media (min-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  h3 {
    font-size: 1.4rem;
  }
  
  header {
    padding: 0.4rem 1.2rem; /* Dramatically reduced from 0.65rem 1.4rem */
  }
  
  .logo-img {
    height: 40px; /* Further reduced from 45px */
  }
  
  .header-button a {
    padding: 0.35rem 0.8rem; /* Significantly reduced from 0.5rem 1rem */
    font-size: 0.85rem; /* Further reduced from 0.9rem */
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 14px rgba(255, 82, 82, 0.35);
    font-weight: 600;
  }
  
  section {
    padding: 3rem 2rem;
  }
  
  /* Services grid for tablets */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .service-card h3 {
    font-size: 1.3rem;
  }
  
  .service-icon {
    font-size: 2.2rem;
  }
  
  /* Contact layout for tablets */
  .contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .contact-item:last-child {
    grid-column: span 2;
  }
  
  /* Hero adjustments for tablets */
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .hero-stats {
    justify-content: flex-start;
  }
  
  /* Footer layout for tablets */
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  /* Services grid for desktop */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Larger padding for desktop */
  section {
    padding: 4rem 2rem;
  }
  
  /* Larger logo for desktop */
  .logo-img {
    height: 60px;
  }
  
  /* Contact layout for desktop */
  .contact-container {
    flex-direction: row;
    align-items: stretch;
  }
  
  .contact-info {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Hero adjustments for desktop */
  #hero {
    height: 80vh;
    max-height: 700px;
  }
  
  .hero-text h1 {
    font-size: 3rem;
  }
  
  .hero-content {
    padding: 0 2rem;
  }
  
  /* Footer layout for desktop */
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Animation for form transitions */
.form-step {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-step:not([style*="display: none"]) {
  animation: fadeIn 0.5s ease forwards;
}

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

/* Hero Section - Glassmorphism Design with Hero_BG.jpg */
#hero {
  position: relative;
  background-image: url('Hero_BG.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--light-text);
  padding: 0;
  height: 90vh;
  min-height: 600px;
  max-height: 800px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 43, 94, 0.75) 0%, rgba(15, 29, 69, 0.7) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1;
}

#hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-text {
  text-align: left;
  max-width: 600px;
}

.hero-text h1 {
  font-size: 2.8rem;
  color: var(--light-text);
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.5px;
  animation: fadeInUp 0.8s ease;
}

.hero-text h1 .highlight {
  color: var(--accent-color);
  position: relative;
  display: inline-block;
}

.hero-text h1 .highlight::after {
  display: none;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 0;
  line-height: 1.5;
  opacity: 0.9;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  transform: translateY(20px);
  opacity: 0;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.4s forwards;
  transform: translateY(20px);
  opacity: 0;
}

.primary-btn, .secondary-btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 500;
  transition: var(--transition);
  font-size: 0.95rem;
  text-align: center;
}

.primary-btn {
  background-color: var(--accent-color);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.primary-btn:hover {
  background-color: #ff8383;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
  color: white;
}

.secondary-btn {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.secondary-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  color: white;
}

.hero-stats {
  flex-wrap: nowrap;
  justify-content: space-between;
  margin-top: 0.5rem;
  animation: fadeInUp 0.8s ease 0.6s forwards;
  transform: translateY(20px);
  opacity: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1;
}

.stat-text {
  font-size: 0.8rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Media Queries for Hero Section */
@media (max-width: 767px) {
  #hero {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 5rem 0 3rem;
  }
  
  .hero-text {
    text-align: center;
    margin: 0 auto;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .hero-text p {
    font-size: 1rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
    gap: 1.5rem;
  }
  
  .stat-item {
    text-align: center;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  #hero {
    height: auto;
    min-height: 500px;
    padding: 5rem 0;
  }
  
  .hero-text h1 {
    font-size: 2.2rem;
  }
  
  .hero-stats {
    justify-content: flex-start;
  }
}

@media (min-width: 992px) {
  #hero {
    height: 90vh;
    max-height: 800px;
  }
  
  .hero-text h1 {
    font-size: 2.4rem;
  }
  
  .hero-content {
    padding: 0 2rem;
  }
}

/* Footer Section */
footer {
  background-color: #0a1433;
  color: var(--light-text);
  padding: 4rem 1rem 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-title {
  color: var(--light-text);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.footer-brand p {
  font-size: 0.95rem;
  opacity: 0.8;
}

.footer-links h3, .footer-contact h3, .footer-social h3 {
  color: var(--light-text);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-links h3::after, .footer-contact h3::after, .footer-social h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--light-text);
  opacity: 0.8;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent-color);
  padding-left: 5px;
}

.footer-contact p {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.footer-contact i {
  margin-right: 10px;
  color: var(--accent-color);
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--light-text);
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--accent-color);
  color: white;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Loading Spinner Animation */
.loading-spinner {
  display: none;
}

/* Global: lock body scroll when modal is open (used by web component) */
body.modal-open {
  overflow: hidden;
}

/* Form submission container position */
#submission-form {
  position: relative;
  min-height: 180px; /* Ensure enough space for the loader */
  width: 100%;
}

#submission-content {
  transition: opacity 0.3s ease;
}

/* Form Navigation Buttons */
.form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  width: 100%;
}

button.prev-button, 
button.next-button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  min-width: 100px;
  margin: 0; /* Override general button margins */
}

button.prev-button {
  background-color: #1e3a8a;
  color: white;
}

button.next-button {
  background-color: var(--accent-color);
  color: white;
}

button.prev-button:hover {
  background-color: #152a60;
}

button.next-button:hover {
  background-color: #ff4f4f;
}

/* Mobile-specific adjustments for form buttons */
@media (max-width: 767px) {
  .form-navigation {
    justify-content: space-between;
    gap: 10px;
    margin-top: 0.75rem;
  }
  
  button.prev-button, 
  button.next-button {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
    min-width: 80px;
    margin: 0; /* Remove default margin to prevent stacking */
    flex: 0 0 auto; /* Prevent buttons from growing or shrinking */
  }
  
  /* Override any existing button styles that might cause stacking */
  button {
    margin-right: 0;
    margin-bottom: 0;
  }
}

/* Mobile-specific form adjustments */
@media (max-width: 767px) {
  /* Reduce overall form padding */
  #personal-info {
    padding: 1rem 0.75rem;
  }
  
  /* Make form steps more compact */
  .form-step {
    padding: 1rem;
    margin: 0 auto;
    max-width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  /* Improve step headings */
  .form-step h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(26, 43, 94, 0.1);
  }
  
  /* Form description text */
  .form-description {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 1.25rem;
    line-height: 1.5;
    padding: 0.75rem;
    background-color: rgba(26, 43, 94, 0.03);
    border-left: 3px solid var(--accent-color);
    border-radius: 4px;
  }
  
  /* Optimize spacing between form groups */
  .form-group {
    margin-bottom: 1rem;
  }
  
  /* Enhance label visibility while keeping compact */
  label {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: #2c3e50;
  }
  
  /* Optimize input fields for touch while keeping compact */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  select {
    padding: 0.6rem;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    height: 42px;
    border-radius: 6px;
    border: 1px solid #ddd;
  }
  
  /* Improve radio button groups */
  input[type="radio"] + label {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    margin: 0.4rem 0;
    background: rgba(26, 43, 94, 0.03);
    border-radius: 6px;
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
  }
  
  input[type="radio"]:checked + label {
    background: rgba(26, 43, 94, 0.08);
  }
  
  /* Make personal/company fields more compact */
  .company-fields,
  .personal-fields {
    padding: 0.75rem;
    margin: 0.5rem 0 1rem;
    background-color: rgba(192, 214, 223, 0.12);
    border-radius: 8px;
    border: 1px solid rgba(26, 43, 94, 0.08);
  }
  
  /* Enhance error message visibility while keeping compact */
  .error-message {
    font-size: 0.75rem;
    margin: -0.5rem 0 0.75rem;
    padding: 0 !important;
    background: none;
    border: none;
  }
  
  /* Improve form navigation */
  .form-navigation {
    margin-top: 1.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }
  
  button.prev-button, 
  button.next-button {
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    min-width: 90px;
    border-radius: 6px;
    font-weight: 500;
  }
  
  /* Improve dropdown appearance */
  select {
    background-size: 10px;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
  }
  
  /* Section title improvements */
  #personal-info h2 {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
    color: var(--primary-color);
  }
  
  /* Loading overlay adjustments */
  .loading-overlay {
    background-color: rgba(255, 255, 255, 0.95);
  }
  
  .loading-text {
    font-size: 0.9rem;
  }
  
  /* Success message improvements */
  .success-message {
    padding: 1.5rem 1rem;
  }
  
  .success-icon {
    font-size: 2.5rem;
  }
}

/* New Loader Animation */
.loader-1 {
    --background: #fff;
    --front-color: #ff6b6b;
    --back-color: rgba(30, 58, 138, 0.2);
    --text-color: #333;
    width: 64px;
    height: 64px;
    scale: 0.4;
    border-radius: 50px;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-1 svg {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-1 svg circle {
  position: absolute;
  fill: none;
  stroke-width: 6px;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(-100deg);
  transform-origin: center;
}

.loader-1 svg circle.back {
  stroke: var(--back-color);
}

.loader-1 svg circle.front {
  stroke: var(--front-color);
}

.loader-1 svg.circle-outer {
  height: 86px;
  width: 86px;
}

.loader-1 svg.circle-outer circle {
  stroke-dasharray: 62.75 188.25;
}

.loader-1 svg.circle-outer circle.back {
  animation: circle-outer135 1.8s ease infinite 0.3s;
}

.loader-1 svg.circle-outer circle.front {
  animation: circle-outer135 1.8s ease infinite 0.15s;
}

.loader-1 svg.circle-middle {
  height: 60px;
  width: 60px;
}

.loader-1 svg.circle-middle circle {
  stroke-dasharray: 42.5 127.5;
}

.loader-1 svg.circle-middle circle.back {
  animation: circle-middle6123 1.8s ease infinite 0.25s;
}

.loader-1 svg.circle-middle circle.front {
  animation: circle-middle6123 1.8s ease infinite 0.1s;
}

.loader-1 svg.circle-inner {
  height: 34px;
  width: 34px;
}

.loader-1 svg.circle-inner circle {
  stroke-dasharray: 22 66;
}

.loader-1 svg.circle-inner circle.back {
  animation: circle-inner162 1.8s ease infinite 0.2s;
}

.loader-1 svg.circle-inner circle.front {
  animation: circle-inner162 1.8s ease infinite 0.05s;
}

.loader-1 .text {
  position: absolute;
  bottom: -40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.2px;
}

.loader-1 .text::before,
.loader-1 .text::after {
  content: attr(data-text);
}

.loader-1 .text::before {
  color: var(--text-color);
}

.loader-1 .text::after {
  color: var(--front-color);
  animation: text-animation76 3.6s ease infinite;
  position: absolute;
  left: 0;
}

@keyframes circle-outer135 {
  0% {
    stroke-dashoffset: 25;
  }

  25% {
    stroke-dashoffset: 0;
  }

  65% {
    stroke-dashoffset: 301;
  }

  80% {
    stroke-dashoffset: 276;
  }

  100% {
    stroke-dashoffset: 276;
  }
}

@keyframes circle-middle6123 {
  0% {
    stroke-dashoffset: 17;
  }

  25% {
    stroke-dashoffset: 0;
  }

  65% {
    stroke-dashoffset: 204;
  }

  80% {
    stroke-dashoffset: 187;
  }

  100% {
    stroke-dashoffset: 187;
  }
}

@keyframes circle-inner162 {
  0% {
    stroke-dashoffset: 9;
  }

  25% {
    stroke-dashoffset: 0;
  }

  65% {
    stroke-dashoffset: 106;
  }

  80% {
    stroke-dashoffset: 97;
  }

  100% {
    stroke-dashoffset: 97;
  }
}

@keyframes text-animation76 {
  0% {
    clip-path: inset(0 100% 0 0);
  }

  50% {
    clip-path: inset(0);
  }

  100% {
    clip-path: inset(0 0 0 100%);
  }
}

.loading-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff; /* Fully opaque white background */
  z-index: 10;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border-radius: var(--border-radius);
}

/* Replacing the loading-text style with adjustments for our new loader */
.loading-text {
  display: none; /* Hide the old loading text */
}

/* Updating the loading-spinner to hide it as we're using a new loader */
.loading-spinner {
  display: none;
}

/* Adjustments for the loader-1 within the overlay */
.loading-overlay .loader-1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  scale: 1.2; /* Slightly larger for better visibility */
  margin: 0;
  z-index: 11; /* Ensure loader is above the overlay */
}

.loading-overlay .loader-1 .text {
  position: absolute;
  bottom: -40px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-transform: none; /* Override the lowercase transform */
}

/* Media queries for responsive loader */
@media (max-width: 767px) {
  .loading-overlay .loader-1 {
    scale: 1; /* Slightly smaller on mobile but still visible */
  }
  
  .loading-overlay .loader-1 .text {
    bottom: -35px;
    font-size: 12px;
  }
  
  /* Ensure the form container has enough space on mobile */
  #submission-form {
    min-height: 120px;
  }
}

/* Coming Soon Notification Popup */
.notification-popup {
  position: fixed;
  top: 100px;
  right: 30px;
  background: linear-gradient(135deg, rgba(26, 43, 94, 0.95) 0%, rgba(15, 29, 69, 0.95) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(26, 43, 94, 0.4);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  z-index: 10000;
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  min-width: 280px;
  max-width: 400px;
}

/* ===========================================
   TRACK PROJECT MODAL
   All styles moved to tracker-modal.css
   =========================================== */
.tracker-modal.active {
  display: flex;
}

/* Backdrop */
.tracker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 43, 94, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show .modal-backdrop {
  opacity: 1;
}

.modal-dialog {
  position: relative;
  z-index: 1001;
  width: 100%;
  max-width: 560px;
  margin: clamp(8vh, 10vh, 12vh) auto;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.25),
    0 10px 30px rgba(26, 43, 94, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  padding: 2.5rem;
  transform: scale(0.95) translateY(20px);
  opacity: 0;
  transition: 
    transform 350ms cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 350ms ease-out;
}

.modal.show .modal-dialog {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.04);
  color: #64748b;
  font-size: 1.5rem;
  padding: 0;
  line-height: 1;
  border-radius: 10px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-weight: 300;
}

.modal-close:hover {
  background: rgba(255, 107, 107, 0.12);
  color: #ff6b6b;
  transform: rotate(90deg) scale(1.05);
}

.modal-title {
  margin: 0;
  color: #0f2b66;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.modal-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #ff6b6b 0%, #ff8383 100%);
  border-radius: 2px;
  margin-top: 10px;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.modal-subtitle {
  margin: 0.75rem 0 0;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
}

.modal-header {
  display: block;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.modal-icon { display: none; }

.modal-headings { display: flex; flex-direction: column; }

.tracker-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: stretch;
}

.sr-only { 
  position: absolute; 
  width: 1px; 
  height: 1px; 
  padding: 0; 
  margin: -1px; 
  overflow: hidden; 
  clip: rect(0,0,1px,1px); 
  white-space: nowrap; 
  border: 0; 
}

.tracker-form input[type="text"] {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  text-transform: uppercase;
  height: 52px;
  color: #0f2b66;
  font-weight: 600;
  background: #ffffff;
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.05),
    inset 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

.tracker-form input[type="text"]:focus {
  outline: none;
  border-color: #0f2b66;
  box-shadow: 
    0 0 0 4px rgba(15, 43, 102, 0.1),
    0 2px 8px rgba(15, 43, 102, 0.15),
    inset 0 1px 2px rgba(0, 0, 0, 0.02);
  transform: translateY(-1px);
}

.tracker-form input[type="text"]::placeholder {
  color: #94a3b8;
  font-weight: 500;
  text-transform: none;
}

.tracker-form .modal-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-width: 160px;
}

.helper-text { 
  color: #64748b;
  font-size: 0.875rem; 
  margin-top: 0.5rem;
  margin-bottom: 0;
  line-height: 1.6;
}
.helper-text code { 
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  padding: 0.2rem 0.6rem; 
  border-radius: 6px;
  font-weight: 700;
  color: #0f2b66;
  border: 1px solid #cbd5e1;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
}

.modal .input-group { margin-bottom: 0.75rem; }
.modal label { font-weight: 500; margin-bottom: 0.5rem; }
.modal input[type="text"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius);
  font-size: 1rem;
  text-transform: uppercase;
}

.modal-action {
  width: 100%;
  padding: 1rem 1.3rem;
  background: linear-gradient(135deg, #0f2b66 0%, #204e8a 100%);
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-top: 0;
  box-shadow: 
    0 10px 24px rgba(15, 43, 102, 0.3),
    0 5px 12px rgba(15, 43, 102, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
}
.modal-action i { 
  font-size: 1.1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.modal-action span {
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.modal-action:hover { 
  transform: translateY(-2px);
  box-shadow: 
    0 14px 32px rgba(15, 43, 102, 0.35),
    0 7px 16px rgba(15, 43, 102, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.modal-action:active { 
  transform: translateY(0);
  box-shadow: 
    0 6px 16px rgba(15, 43, 102, 0.25),
    0 3px 8px rgba(15, 43, 102, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.modal-action:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.loading { display: none; text-align: center; margin-top: 1rem; }
.loading.show { display: block; }
.loading .spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--accent-color);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}
@keyframes spin { 0% { transform: rotate(0deg);} 100% { transform: rotate(360deg);} }

.error {
  background: #fee;
  color: #c33;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  margin-top: 0.75rem;
  display: none;
  border-left: 4px solid #c33;
}
.error.show { display: block; }

.result { 
  display: none; 
  margin-top: 1.5rem; 
  background: linear-gradient(135deg, #f8f9fa 0%, #f5f7fb 100%);
  padding: 1.5rem; 
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
  animation: resultSlideIn 0.4s ease-out;
}
.result.show { display: block; }
.result-title { color: var(--primary-color); margin-bottom: 0.75rem; }
.result-grid { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 1rem;
}
.card { 
  background: white;
  border: 1px solid #e7ecf6;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.card-label { 
  color: #94a3b8;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.4rem;
}
.card-value { 
  color: #0f2b66;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 4px;
}
.status-badge { 
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f2b66 0%, #204e8a 100%);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(15, 43, 102, 0.2);
}
.download-btn { 
  display: inline-block; 
  padding: 0.55rem 1rem; 
  background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%); 
  color: #fff; 
  border-radius: 8px; 
  font-weight: 700; 
  box-shadow: 0 8px 18px rgba(255, 82, 82, 0.28);
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}
.download-btn:hover { 
  filter: brightness(1.05); 
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(255, 82, 82, 0.35);
  color: #fff;
  text-decoration: none;
}
.download-btn:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

/* Result section header */
.section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.25rem 0 0.75rem;
  color: #0f2b66;
}
.section-title h4 { margin: 0; font-weight: 800; }
.section-icon { width: 28px; height: 28px; border-radius: 8px; background: #fff1f1; display: inline-flex; align-items: center; justify-content: center; color: #ff6b6b; }
.result { background: #f5f7fb; }
.card { border-color: #e7ecf6; }

/* Desktop/tablet improvements */
@media (min-width: 768px) and (max-width: 1024px) {
  .modal-dialog { max-width: 520px; padding: 2rem; }
  .modal-title { font-size: 24px; }
}

@media (max-width: 767px) {
  .modal-dialog { margin: 10vh 1rem; padding: 1rem; }
  .modal-title { font-size: 1.2rem; }
  .tracker-form { grid-template-columns: 1fr; }
  .tracker-form .modal-action { width: 100%; min-width: 0; }
  .result-grid { grid-template-columns: 1fr; }
  
  /* Mobile tracker improvements */
  .modal-header { margin-bottom: 0.75rem; }
  .modal-title { font-size: 1.1rem; margin-bottom: 0.25rem; }
  .modal-subtitle { font-size: 0.9rem; margin-bottom: 0.5rem; }
  .tracker-form { gap: 0.5rem; margin-bottom: 0.75rem; }
  .tracker-form input[type="text"] { 
    padding: 0.75rem 0.85rem; 
    font-size: 0.95rem; 
    height: 44px;
  }
  .tracker-form .modal-action { 
    padding: 0.75rem 1rem; 
    font-size: 0.95rem; 
    height: 44px;
  }
  .helper-text { font-size: 0.8rem; margin-bottom: 0.5rem; }
  .result { padding: 0.75rem; }
  .card { padding: 0.7rem; }
  .card-label { font-size: 0.7rem; }
  .card-value { font-size: 0.9rem; }
  .download-btn { 
    padding: 0.5rem 0.8rem; 
    font-size: 0.85rem; 
    display: block;
    text-align: center;
    margin-top: 0.25rem;
  }
}

.notification-popup.show {
  transform: translateX(0);
  opacity: 1;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.notification-icon {
  font-size: 1.5rem;
  color: #ff6b6b;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

.notification-message {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* Mobile adjustments for notification */
@media (max-width: 767px) {
  .notification-popup {
    top: 80px;
    right: 15px;
    left: 15px;
    min-width: auto;
    max-width: none;
    padding: 0.875rem 1.25rem;
    transform: translateY(-150px);
  }
  
  .notification-popup.show {
    transform: translateY(0);
  }
  
  .notification-icon {
    font-size: 1.25rem;
  }
  
  .notification-message {
    font-size: 0.9rem;
  }
}

/* =============================
   Mobile-only rebuilt modal styles (≤768px)
   Enhanced design with professional styling and smooth animations
   ============================= */
body.tp-body-locked { 
  overflow: hidden; 
  touch-action: none; 
  overscroll-behavior: contain; 
}

@media (max-width: 768px) {
  /* Use grid to center the panel and enable smooth transitions */
  .modal { 
    display: none;
    animation: modalFadeIn 0.3s ease-out;
  }
  .modal.show { 
    display: grid; 
    place-items: center;
  }

  /* Enhanced backdrop with better blur effect */
  .modal-backdrop { 
    opacity: 0; 
    transition: opacity 300ms cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(26, 43, 94, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .modal.show .modal-backdrop { 
    opacity: 1; 
  }

  /* Enhanced mobile dialog with glassmorphism effect */
  .m-dialog {
    width: calc(100% - 32px);
    max-width: 500px;
    max-height: calc(100dvh - 40px);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 
      0 20px 60px rgba(0, 0, 0, 0.3),
      0 10px 30px rgba(26, 43, 94, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: 
      transform 350ms cubic-bezier(0.34, 1.56, 0.64, 1),
      opacity 350ms ease-out;
    padding: 0;
  }
  .modal.show .m-dialog { 
    transform: scale(1) translateY(0); 
    opacity: 1;
    animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  /* Enhanced header with gradient underline */
  .m-header {
    padding: 20px 20px 16px 20px;
    background: linear-gradient(135deg, rgba(26, 43, 94, 0.03) 0%, rgba(255, 107, 107, 0.02) 100%);
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, #ff6b6b 0%, transparent 100%) 1;
    position: relative;
  }
  .m-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b 0%, #ff8383 100%);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
  }
  .m-title { 
    margin: 0; 
    font-size: 20px; 
    font-weight: 700; 
    color: #0f2b66;
    letter-spacing: -0.3px;
    animation: titleSlideIn 0.5s ease-out 0.1s both;
  }
  .m-subtitle { 
    margin: 8px 0 0; 
    color: #64748b; 
    font-size: 14px;
    line-height: 1.5;
    animation: titleSlideIn 0.5s ease-out 0.2s both;
  }

  /* Enhanced content area */
  .m-content {
    padding: 20px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    animation: contentFadeIn 0.5s ease-out 0.3s both;
  }

  /* Improved form styling */
  .m-form { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 12px; 
    margin-bottom: 12px;
  }
  .m-form input[type="text"] {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    color: #0f2b66;
    text-transform: uppercase;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
  }
  .m-form input[type="text"]:focus {
    outline: none;
    border-color: #0f2b66;
    box-shadow: 
      0 0 0 3px rgba(15, 43, 102, 0.1),
      inset 0 2px 4px rgba(0, 0, 0, 0.03);
    transform: translateY(-1px);
  }
  .m-form input[type="text"]::placeholder {
    color: #94a3b8;
    font-weight: 500;
  }
  
  /* Enhanced primary button with gradient and shadow */
  .m-primary {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f2b66 0%, #204e8a 100%);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    padding: 14px 20px;
    display: inline-flex;
    align-items: center; 
    justify-content: center; 
    gap: 10px;
    box-shadow: 
      0 8px 20px rgba(15, 43, 102, 0.3),
      0 4px 10px rgba(15, 43, 102, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    letter-spacing: 0.3px;
  }
  .m-primary:hover {
    transform: translateY(-2px);
    box-shadow: 
      0 12px 28px rgba(15, 43, 102, 0.35),
      0 6px 14px rgba(15, 43, 102, 0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.25);
  }
  .m-primary:active {
    transform: translateY(0);
    box-shadow: 
      0 4px 12px rgba(15, 43, 102, 0.25),
      0 2px 6px rgba(15, 43, 102, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  .m-primary i {
    font-size: 16px;
  }

  /* Enhanced helper text */
  .m-helper { 
    color: #7a7a7a; 
    font-size: 13px; 
    margin: 8px 0 12px;
    line-height: 1.5;
  }
  .m-helper code { 
    background: linear-gradient(135deg, #f8f9fa 0%, #f3f4f6 100%);
    padding: 3px 8px; 
    border-radius: 6px;
    font-weight: 600;
    color: #0f2b66;
    border: 1px solid #e2e8f0;
  }

  /* Enhanced result section */
  .result { 
    background: linear-gradient(135deg, #f8f9fa 0%, #f5f7fb 100%);
    padding: 16px; 
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
    animation: resultSlideIn 0.4s ease-out;
  }
  .result-grid { 
    grid-template-columns: 1fr !important; 
    gap: 12px;
  }
  
  /* Enhanced card styling */
  .card { 
    padding: 14px 16px; 
    border-radius: 12px;
    background: white;
    border: 1px solid #e7ecf6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
  }
  .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }
  .card-label { 
    font-size: 11px;
    letter-spacing: 0.8px;
    color: #94a3b8;
  }
  .card-value { 
    font-size: 15px;
    font-weight: 600;
    color: #0f2b66;
    margin-top: 4px;
  }
  
  /* Enhanced download button */
  .download-btn { 
    width: 100%; 
    text-align: center;
    padding: 10px 16px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: white;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 
      0 6px 16px rgba(255, 82, 82, 0.3),
      0 3px 8px rgba(255, 107, 107, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
  }
  .download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 
      0 8px 20px rgba(255, 82, 82, 0.35),
      0 4px 10px rgba(255, 107, 107, 0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }
  
  /* Close button enhancement */
  .modal-close {
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .modal-close:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    transform: rotate(90deg);
  }
  
  /* Loading state enhancement */
  .loading {
    text-align: center;
    padding: 20px;
  }
  .loading.show {
    animation: fadeIn 0.3s ease-out;
  }
  .loading-note {
    margin-top: 12px;
    color: #64748b;
    font-size: 14px;
  }
  
  /* Error state enhancement */
  .error {
    background: linear-gradient(135deg, #fee 0%, #fdd 100%);
    border-left: 4px solid #ff6b6b;
    animation: errorShake 0.5s ease-out;
  }
  
  /* Section title enhancement */
  .section-title {
    margin-bottom: 14px;
  }
  .section-title h4 {
    font-size: 16px;
  }
  .section-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff1f1 0%, #ffe8e8 100%);
    box-shadow: 0 2px 6px rgba(255, 107, 107, 0.15);
  }
}

/* Keyframe animations for smooth transitions */
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  from {
    transform: scale(0.9) translateY(30px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

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

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

@keyframes resultSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}
