/* ============ BASE STYLES ============ */
:root {
  --primary: #4361ee;
  --primary-dark: #3a56d4;
  --secondary: #3f37c9;
  --success: #4cc9f0;
  --danger: #f72585;
  --warning: #f8961e;
  --info: #4895ef;
  --light: #f8f9fa;
  --dark: #212529;
  --gray: #6c757d;
  --white: #ffffff;
  --border-radius: 8px;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
}

/* ============ TYPOGRAPHY ============ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark);
}

h2 {
  font-size: 1.75rem;
  color: #2a2a2a;
}

h3 {
  font-size: 1.5rem;
  color: #333;
  position: relative;
  padding-bottom: 0.5rem;
}

/* h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--success));
} */

/* ============ HEADER & NAVIGATION ============ */

/* ============ MAIN CONTENT ============ */
.main-content {
  padding-top: 80px;
  min-height: 100vh;
}

.about-us-container {
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: center;
  background-color: #1C1C25;
  color: wheat;
}

.about-us-container h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  margin-top: 5.5rem;
  background: linear-gradient(90deg, var(--primary), var(--success));
  -webkit-background-clip: text;
  background-clip: text;
  color: white;
}
.about-us-container p {
  color: white;
  margin: 0;
  font-size: 16px;
}

/* ============ INVOICE CONTAINER ============ */
.invoice-container {
  /* max-width: 1200px; */
  margin: 2rem 5rem;
  padding: 0 2rem;
}

.invoice-step {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
@media (max-width: 768px) {
  .invoice-container {
  /* max-width: 1200px; */
  margin: 1rem 0.5rem;
  padding: 0;
}
}

/* ============ PROGRESS BAR ============ */
.progress-bar {
  display: flex;
  justify-content: space-between;
  margin: 2rem 0 3rem;
  position: relative;
  counter-reset: step;
}

.progress-bar::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #f0f0f0;
  z-index: 1;
  transform: translateY(-50%);
  border-radius: 3px;
}

.progress-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* width: 100px; */
  font-size: 10x;
}

.progress-step::before {
  counter-increment: step;
  content: counter(step);
  width: 40px;
  height: 40px;
  background-color: #e9ecef;
  color: black;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transition: var(--transition);
  border: 3px solid #f0f0f0;
}

.progress-step::after {
  display: none;
  content: attr(data-step);
  font-size: 0.85rem;
  color: var(--gray);
  text-align: center;
  transition: var(--transition);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.progress-step.active::before {
  background-color: var(--white);
  color: var(--primary);
  border-color: var(--primary);
}

.progress-step.active::after {
  color: var(--dark);
  font-weight: 600;
}

.progress-step.completed::before {
  background-color: var(--success);
  color: var(--white);
  content: "✓";
  border-color: var(--success);
}

/* ============ PROGRESS BAR - RESPONSIVE ============ */
@media (max-width: 768px) {
  .progress-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    margin: 1.5rem 0 2rem;

    position: relative;
  }

  .progress-bar::before {
    display: none;
  }

  .progress-step {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    width: auto;
  }

  .progress-step::before {
    margin-bottom: 0;
    position: relative;
    z-index: 2;
  }

  .progress-step::after {
    text-align: left;
    text-transform: none;
    font-size: 0.95rem;
    padding-top: 2px;
  }

  /* Active and completed states */
  .progress-step.active::before,
  .progress-step.completed::before {
    transform: scale(1.1);
  }

  /* Line between steps */
  .progress-step:not(:last-child)::after {
    position: relative;
  }

  /* Hide the default number for completed steps on mobile */
  .progress-step.completed::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* For very small screens (below 400px) */
@media (max-width: 400px) {
  .progress-step::after {
    font-size: 0.85rem;
  }

  .progress-step::before {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
}

/* ============ FORM STYLES ============ */
.form-group {
  margin-bottom: 1rem;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.1rem;
  font-weight: 500;
  color: black;
  font-size: 0.8rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  background-color: var(--white);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.form-row {
  display: flex;
  gap: 1.75rem;
  margin-bottom: 1.75rem;
}

.form-row .form-group {
  flex: 1;
}

/* ============ SERVICES GRID ============ *//* ============ SERVICES GRID ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

/* Enhanced Service Card Design */
.service-card {
  position: relative;
  border: 1px solid var(--border-color, #e8e8ed);
  border-radius: var(--border-radius-lg, 12px);
  padding: 2rem 1.75rem;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  overflow: hidden;
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Improved hover and focus states */
.service-card:hover,
.service-card:focus-within {
  border-color: var(--primary-hover, #3a6ff8);
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(58, 111, 248, 0.12);
}

/* Accessibility improvements for keyboard navigation */
.service-card:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Card selection state */
.service-card.selected {
  border: 2px solid var(--primary);
  background-color: rgba(58, 111, 248, 0.03);
  box-shadow: 0 4px 16px rgba(58, 111, 248, 0.1);
  transform: translateY(-3px);
}

/* Hide native radio input (accessibly) */
.service-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Enhanced custom radio button */
.service-card label {
  position: relative;
  padding-right: 2rem; /* Space for checkmark */
  cursor: pointer;
  transition: color 0.2s ease;
}

.service-card label::before {
  content: "";
  position: absolute;
  top: 0.25rem;
  right: 0;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--border-color, #e0e0e0);
  border-radius: 50%;
  background-color: white;
  transition: all 0.2s ease;
}

/* Checkmark indicator */
.service-card label::after {
  content: "";
  position: absolute;
  top: 0.5rem;
  right: 0.25rem;
  width: 0.75rem;
  height: 0.4rem;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg) scale(0);
  opacity: 0;
  transition: all 0.2s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* Selected state styles */
.service-card.selected label::before {
  border-color: var(--primary);
  background-color: var(--primary);
  transform: scale(1.1);
}

.service-card.selected label::after {
  opacity: 1;
  transform: rotate(-45deg) scale(1);
}

/* Card content styling */
.service-card__icon {
  margin-bottom: 1.25rem;
  color: var(--primary);
  font-size: 2rem;
}

.service-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.service-card__description {
  font-size: 0.9375rem;
  color: var(--text-medium);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.service-card__price {
  margin-top: auto;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-prev {
  background-color: #f8f9fa;
  color: var(--dark);
  border: 2px solid black;
  padding: 12px 30px;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-size: 18px;
  cursor: pointer;
}

.btn-next,
.btn-generate {
  color: var(--dark);
  border: 2px solid black;
  font-size: 18px;
  cursor: pointer;
  background: transparent;
  padding: 12px 30px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.btn-pay,
.btn-download {
  
  color: black;
  border: 2px solid black;
transition: 0.7s;
  font-size: 18px;
  cursor: pointer;
  padding: 12px 30px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.btn-print {
  
  color: black;
  border: 2px solid black;
  font-size: 18px;
  padding: 12px 30px;
  border-radius: 25px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-new {
  
  color: black;
  border: 2px solid black;
  padding: 12px 30px;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-size: 18px;
  cursor: pointer;
  transition: 0.7s;
}

.btn-prev:hover {
  background-color: #e9ecef;
  border-color: #d0d0d0;
}

.btn-next:hover,
.btn-generate:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  color: white;
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.btn-pay:hover,
.btn-download:hover {
  background-color: black;
color: white;

  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(76, 201, 240, 0.3);
}

.btn-print:hover {
  background-color: black;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(72, 149, 239, 0.3);
  color: white;
}

.btn-new:hover {
  background-color: black;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: white;

}

.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #f0f0f0;
}

/* ============ REVIEW SECTION ============ */
.review-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0;
}

.review-column {
  background-color: var(--white);
  padding: 1.75rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.review-column h4 {
  color: var(--primary);
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #f0f0f0;
  font-size: 1.1rem;
}

.review-column div {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.review-column strong {
  color: #444;
  font-weight: 500;
}

/* ============ INVOICE SUMMARY ============ */
.invoice-summary {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin: 2.5rem 0;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.invoice-summary h4 {
  color: var(--primary);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.summary-details {
  max-width: 400px;
  margin-left: auto;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row.total {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--dark);
}

/* ============ PAYMENT OPTIONS ============ */
.payment-options {
  margin: 2.5rem 0;
}

.payment-options h4 {
  color: var(--primary);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.payment-method {
  position: relative;
}

.payment-method input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.payment-method label {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  height: 100%;
  background-color: var(--white);
}

.payment-method label i {
  font-size: 1.5rem;
  color: var(--primary);
}

.payment-method input[type="radio"]:checked + label {
  border-color: var(--primary);
  background-color: rgba(67, 97, 238, 0.05);
  box-shadow: 0 0 0 1px var(--primary);
}

/* ============ GENERATED INVOICE ============ */
.invoice-generated {
  background-color: var(--white);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.invoice-header h2 {
  color: var(--dark);
  font-size: 1.8rem;
}

.invoice-status {
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.invoice-status.unpaid {
  background-color: #fff3cd;
  color: #856404;
}

.invoice-status.paid {
  background-color: #d4edda;
  color: #155724;
}

.invoice-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.invoice-from,
.invoice-to {
  line-height: 1.7;
}

.invoice-from h4,
.invoice-to h4 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.invoice-meta {
  text-align: right;
  line-height: 1.7;
}

.invoice-meta strong {
  color: #444;
  font-weight: 500;
}

.invoice-items {
  margin: 3rem 0;
  overflow-x: auto;
}

.invoice-items table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.invoice-items th,
.invoice-items td {
  padding: 1.25rem;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

.invoice-items th {
  background-color: #f8f9fa;
  font-weight: 500;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
}

.invoice-items tfoot td {
  font-weight: 500;
  padding: 1.25rem;
}

.invoice-items .total {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
}

.invoice-notes {
  padding: 1.75rem;
  background-color: #f8f9fa;
  border-radius: var(--border-radius);
  margin-bottom: 2.5rem;
  border: 1px solid #f0f0f0;
}

.invoice-notes h4 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.invoice-notes p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: #555;
}

.invoice-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

/* ============ BLINKING TEXT ============ */
.blinking-text {
  font-size: 0.95rem;
  font-weight: 600;
  animation: text-blink 3.5s infinite;
  background-color: #fff8e1;
  padding: 0.75rem 1.25rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--warning);
  display: inline-block;
}

@keyframes text-blink {
  0% {
    color: var(--dark);
  }
  25% {
    color: var(--primary);
  }
  50% {
    color: var(--success);
  }
  75% {
    color: var(--warning);
  }
  100% {
    color: var(--danger);
  }
}

/* ============ FOOTER ============ */

/* ============ UTILITY CLASSES ============ */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mb-4 {
  margin-bottom: 2rem;
}

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

.invoice-step {
  animation: fadeIn 0.5s ease-out;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.floating {
  animation: float 3s ease-in-out infinite;
}

/* search box css */
.invoice-search {
  background: #f9f9f9;
  padding: 2rem 8rem;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.search-box input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.search-box button {
  padding: 10px 20px;
  background: white;
  color: black;
  border: 2px solid black;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  transition: 0.8s;
}

.search-box button:hover {
  background: black;
  color: white;
}

.search-results {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 15px;
}

.invoice-result {
  padding: 15px;
  border-bottom: 1px solid #eee;
}

.invoice-result:last-child {
  border-bottom: none;
}

.invoice-result h4 {
  margin-top: 0;
  color: #333;
}

.invoice-result button {
  padding: 8px 15px;
  background: #2196F3;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
}

.invoice-result button:hover {
  background: #0b7dda;
}

.status {
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: bold;
}

.status.paid {
  background: #4CAF50;
  color: white;
}

.status.unpaid {
  background: #ff9800;
  color: white;
}

@media (max-width: 768px) {
  .invoice-search h2 {
    font-size: 1rem;

  }
  .invoice-search {
  background: #f9f9f9;
  padding: 1rem 0.8rem;
}
.search-box button{
  font-size: 10px;
   padding: 5px 10px;
}
.search-box input{
  padding: 8px 8px;
}
}

/* // Add this CSS to your invoice.css file: */

.payment-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.payment-popup-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  position: relative;
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.payment-instructions {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.payment-instructions p {
  margin: 5px 0;
}

.btn-submit {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
}

@media (max-width: 768px) {
 .payment-instructions p {
    font-size: 12px;
  }
  .btn-submit { 
    padding: 8px 12px;
  }
}
.m-whatsapp {
  color: white;
  font-weight: 100;
}


select {
  appearance: none; /* Remove default arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  background: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 10px center;
  background-color: #fff;
  padding: 10px;
  padding-right: 40px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
