:root {
  --primary: #0070c9;
  --secondary: #00a86b;
  --accent: #ff7b00;
  --light: #f8f9fa;
  --dark: #212529;
  --radius: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  padding: 30px 0;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.form-container {
  background: white;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

h1 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary);
}

h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 20px;
}

.form-section {
  margin-bottom: 25px;
}

.form-section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.form-row {
  margin-bottom: 15px;
}

label {
  font-weight: 500;
  display: block;
  margin-bottom: 5px;
  color: var(--dark);
}

input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  background-color: #f9f9f9;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 112, 201, 0.1);
  outline: none;
}

.upsell-options {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 15px;
}

.upsell-option {
  flex: 1;
  min-width: 250px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  padding: 15px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s;
}

.upsell-option:hover {
  border-color: var(--primary);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.upsell-option.selected {
  border-color: var(--primary);
  background-color: rgba(0, 112, 201, 0.05);
}

.upsell-option-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.upsell-checkbox {
  margin-right: 10px;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.upsell-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 10px;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

.price-tag {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  margin-left: auto;
}

.order-summary {
  background-color: #f7f9fc;
  padding: 20px;
  border-radius: var(--radius);
  margin-top: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.summary-row.total {
  font-weight: 700;
  font-size: 18px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #ddd;
}

.btn {
  display: block;
  width: 100%;
  background-color: var(--primary);
  color: white;
  padding: 15px;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.btn:hover {
  background-color: #005aa0;
  box-shadow: 0 4px 10px rgba(0, 112, 201, 0.3);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: white;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-secondary:hover {
  background-color: #f0f7ff;
  box-shadow: 0 4px 10px rgba(0, 112, 201, 0.1);
}

.payment-methods {
  margin-top: 20px;
}

#card-element {
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  background-color: white;
}

#card-errors {
  color: #dc3545;
  margin-top: 10px;
  font-size: 14px;
}

.message {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  text-align: center;
}

.message.success {
  background-color: #d4edda;
  color: #155724;
}

.message.error {
  background-color: #f8d7da;
  color: #721c24;
}

.StripeElement {
  background-color: white;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
}

.StripeElement--focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 112, 201, 0.1);
}

.StripeElement--invalid {
  border-color: #dc3545;
}

.StripeElement--webkit-autofill {
  background-color: #fefde5 !important;
}

.referral-code {
  text-align: center; /* Center the text */
  margin: 20px auto; /* Add margin around the element */
  padding: 10px; /* Add padding inside the border */
  border: 2px solid var(--primary); /* Add a border with the primary color */
  border-radius: var(--radius); /* Add rounded corners */
  background-color: var(--light); /* Light background for contrast */
  color: var(--dark); /* Dark text color for readability */
  font-weight: bold; /* Make the text bold */
  max-width: 400px; /* Limit the width */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
}

@media (max-width: 768px) {
  .upsell-options {
    flex-direction: column;
  }

  .upsell-option {
    min-width: 100%;
  }
}
