:root {
  --primary: #145da0;
  --primary-dark: #145da0;
  --secondary: #f8fafc;
  --accent: #e0e7ff;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
  --success: #10b981;
  --warning: #f59e0b;
}
    .close-btn i {
            position: absolute;
            top: 10px;
            color: #145da0; /* Icon color */
            font-size: 1.5rem;
            cursor: pointer;
            background-color: rgba(20, 93, 160, 0.2); /* Background with opacity */
            border-radius: 50%;
            padding: 0.3rem;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 1.5em;
            height: 1.5em;
            transition: all 0.3s ease;
        }

        .close-btn:hover i {
            color: #145da0; /* Same color maintained on hover */
            background-color: rgba(20, 93, 160, 0.3); /* Darker background on hover */
        }

        .containers {
            position: relative;
        }
* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8fafc;
  color: var(--text-dark);
  line-height: 1.5;
}
button,
select {
  text-transform: none;
  padding: 10px;
}
.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  position: relative;
}

.form-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  padding: 1rem;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  transition: all 0.5s ease;
}

h2 {
  color: var(--primary);
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.75rem;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

select,
input[type="number"] {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: white;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  color: var(--text-dark);
  appearance: none;
}

select {
  padding: 10px;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.5rem center;
  background-size: 12px;
}

select:focus,
input[type="number"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.class-control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.class-btn {
  padding: 0.5rem;
  font-size: 1rem;
  border: none;
  background-color: var(--primary);
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.class-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
}

.class-btn:active {
  transform: translateY(0);
}

input[type="number"] {
  text-align: center;
  padding-left: 1rem;
  font-weight: 600;
}

.receipt {
  width: 450px;
  background: white;
  padding: 0.75rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  z-index: 10;
  margin-top: 20px;
  display: none;
}

.receipt.visible {
  display: block;
}

.receipt h3 {
  margin-top: 0;
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.receipt-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.receipt-item:last-child {
  border-bottom: none;
}

.receipt-label {
  font-weight: 500;
  color: var(--text-light);
}

.receipt-value {
  font-weight: 600;
  color: var(--text-dark);
  text-align: right;
}

.receipt-total {
  background-color: var(--accent);
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.receipt-total .label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.receipt-total .value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.whatsapp-btn {
  margin-top: 1.5rem;
  display: flex;
  width: 100%;
  padding: 0.875rem;
  background-color: var(--success);
  color: white;
  text-align: center;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 1rem;
  border: none;
  cursor: pointer;
}

.whatsapp-btn:hover {
  background-color: #0d9e6e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.whatsapp-btn:active {
  transform: translateY(0);
}

.discount-badge {
  background-color: #ecfdf5;
  color: #065f46;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-right: 0.5rem;
}

.hidden {
  display: none;
}

.program-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.primary-badge {
  background-color: #dbeafe;
  color: var(--primary);
}

.secondary-badge {
  background-color: #e0f2fe;
  color: #0369a1;
}

@media (min-width: 769px) {
  .receipt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
    margin-top: 0;
  }

  .receipt.visible {
    transform: translate(-25%, -50%) translateX(200px);
    opacity: 1;
  }

  .form-wrapper.has-total {
    transform: translateX(-250px);
  }
  /* Close button styling */

        .close-btn i {
            position: absolute;
            top: 5px;
            color: #145da0;
            font-size: 1.5rem;
            cursor: pointer;
            background-color: rgba(20, 93, 160, 0.2);
            border-radius: 50%;
            padding: 0.3rem;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 1.5em;
            height: 1.5em;
            transition: all 0.3s ease;
        }

        .close-btn:hover i {
            color: var(--primary);
            background-color: rgba(20, 93, 160, 0.3);
        }
        
        .container {
            position: relative;
            width: 300px;
            height: 200px;
            margin: 50px auto;
            border: 1px solid #ddd;
            border-radius: 8px;
        }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .form-container {
    padding: 0.75rem;
    margin-bottom: 0;
    grid-column: 1;
  }

  h2 {
    font-size: 1.5rem;
  }

  .form-wrapper {
    display: grid;
    grid-template-columns: 1fr; /* Single column layout */
    gap: 1rem; /* Space between the form and receipt */
  }
  /* Style for the Show Receipt button */
.show-btn {
  padding: 0.875rem;
  background-color: var(--primary);
  color: white;
  text-align: center;
  border-radius: 8px;
  width: 100%;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.show-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
}

.show-btn:active {
  transform: translateY(0);
}

  .receipt {
    grid-column: 1; /* The receipt will take up the first column below the form */
    width: 100%;
    max-width: 600px;
    margin: 0 auto; /* Center the receipt */
    opacity: 1; /* Disable animation */
    transform: none; /* Remove animation transform */
    transition: none; /* Disable transition */
  }
}

.form-wrapper {
  display: flex;
  justify-content: center;
  position: relative;
  transition: all 0.5s ease;
}
