html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header/Navbar */
.navbar {
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 15px 0;
  background: #fff !important;
}

.navbar-brand {
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  color: #667eea !important;
  transition: transform 0.3s;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.nav-link {
  font-weight: 500;
  color: #555 !important;
  margin: 0 10px;
  transition: color 0.3s;
  position: relative;
}

.nav-link:hover {
  color: #667eea !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background: #667eea;
  transition: all 0.3s;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

/* Hero Section */
.hero-section {
  background: #2c3e50;
  color: white;
  padding: 100px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 40px;
  opacity: 0.95;
}

.hero-buttons .btn {
  margin: 0 10px;
  padding: 12px 40px;
  border-radius: 50px;
}

/* Services Section */
.services-section {
  padding: 80px 20px 40px;
  background: #2c3e50;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 50px;
  color: #fff;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 2px;
}

.service-card {
  background: #34495e;
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 25px rgba(0,0,0,0.3);
  transition: all 0.3s;
  height: 100%;
  border: 1px solid #667eea;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(102,126,234,0.4);
  border-color: #667eea;
}

.service-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #667eea;
}

.service-card p {
  color: #bdc3c7;
}

/* Features Section */
.features-section {
  padding: 40px 20px;
  background: #2c3e50;
}

.features-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: #fff;
}

.features-list {
  list-style: none;
  padding: 0;
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.features-list li {
  padding: 15px 0;
  color: #bdc3c7;
}

.feature-image {
  font-size: 15rem;
  text-align: center;
  line-height: 1;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 80px 20px;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.3rem;
  margin-bottom: 30px;
}

.cta-section .btn {
  padding: 12px 50px;
  border-radius: 50px;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1.2rem;
  }
  .hero-buttons .btn {
    display: block;
    margin: 10px auto;
    width: 80%;
  }
  .service-card {
    margin-bottom: 30px;
  }
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 20px;
  margin: -24px 0 40px 0;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
}

/* Page Content */
.page-content {
  padding: 40px 20px 80px 20px;
  margin-bottom: 80px;
  min-height: 400px;
}

.page-content h2 {
  color: #667eea;
  margin-bottom: 20px;
}

.page-content h3 {
  color: #333;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-content ul {
  line-height: 2;
}

/* Service Detail Cards */
.service-detail-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
  height: 100%;
}

.service-detail-card h3 {
  color: #667eea;
  margin-top: 0;
}


/* Upload Container */
.upload-container {
  margin-top: 40px;
  text-align: center;
  animation: fadeInUp 0.8s 0.2s both;
}

.upload-label {
  font-size: 5rem;
  cursor: pointer;
  display: block;
  margin-bottom: 20px;
  transition: transform 0.3s;
}

.upload-label:hover {
  transform: scale(1.1);
}

.file-input {
  display: none;
}

.file-status {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: white;
  min-height: 30px;
}

.upload-container .btn {
  padding: 15px 60px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  transition: all 0.3s;
}

.upload-container .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

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


/* Print Options */
.print-options {
  background: white;
  color: #333;
  padding: 40px;
  border-radius: 20px;
  margin-top: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  border: 2px solid #667eea;
  animation: fadeInUp 0.5s;
}

.option-group {
  margin-bottom: 25px;
  text-align: left;
}

.option-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.option-group input[type="radio"] {
  margin-right: 8px;
}

.option-group input[type="number"] {
  width: 100px;
  padding: 8px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.option-group div label {
  display: inline-block;
  margin-right: 20px;
  font-weight: normal;
  cursor: pointer;
}

.total-amount {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border-radius: 10px;
  margin: 30px 0;
  box-shadow: 0 5px 15px rgba(102,126,234,0.3);
}

.total-amount h3 {
  margin: 0;
  font-size: 1.5rem;
}

.print-options .btn-success {
  width: 100%;
  padding: 15px;
  font-size: 1.2rem;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(40,167,69,0.3);
}

.print-options .btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(40,167,69,0.4);
}

/* Footer */
.footer {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 40px 0 20px;
}

.footer h5 {
  color: #667eea;
  font-weight: 700;
  margin-bottom: 15px;
}

.footer h6 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.footer p {
  color: #bdc3c7;
  line-height: 1.8;
}

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

.footer ul li {
  margin-bottom: 8px;
}

.footer ul li a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s;
}

.footer ul li a:hover {
  color: #667eea;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 15px;
}

.quick-links a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s;
}

.quick-links a:hover {
  color: #667eea;
}

.footer hr {
  border-color: #34495e;
  margin: 30px 0 20px;
}

.footer-bottom {
  text-align: center;
  color: #95a5a6;
  font-size: 0.9rem;
}

/* Printing Overlay */
#printingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.printing-content {
  text-align: center;
  color: white;
}

.spinner {
  width: 80px;
  height: 80px;
  border: 8px solid #34495e;
  border-top: 8px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 30px;
}

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

.printing-content h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.printing-content p {
  font-size: 1.2rem;
  opacity: 0.8;
}
