/* ==========================================
   COUPON SYSTEM STYLES
   Clean, Professional Gift Voucher Design
   ========================================== */

/* Step Number Circles */
.step-number-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(78, 205, 196, 0.25);
}

/* ==========================================
   PHONE NUMBER WITH COUNTRY CODE
   Override Bootstrap dropdown behavior for country selector
   ========================================== */

.country-code-menu.show {
  display: block !important;
}

/* Purchase Page Styles */
.amount-option {
  display: block;
  cursor: pointer;
}

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

.amount-card {
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  text-align: center;
  transition: all var(--transition-base);
  background: var(--white);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 90px;
}

.amount-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.amount-option input[type="radio"]:checked ~ .amount-card {
  border-color: var(--accent);
  background: rgba(78, 205, 196, 0.06);
  box-shadow: 0 2px 8px rgba(78, 205, 196, 0.15);
}

.amount-icon {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.375rem;
}

.amount-option input[type="radio"]:checked ~ .amount-card .amount-icon {
  color: var(--accent);
}

.amount-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.2;
}

.amount-tooltip-text {
  font-size: 0.7rem;
  color: var(--gray-600);
  margin-top: 0.25rem;
  text-align: center;
  line-height: 1.3;
}

.amount-option input[type="radio"]:checked ~ .amount-card .amount-tooltip-text {
  color: var(--accent);
  font-weight: 500;
}

.custom-card .amount-value {
  font-size: 0.95rem;
  font-weight: 600;
}

/* Custom Amount Link Wrapper */
.custom-amount-link-wrapper {
  display: block;
  text-align: center;
  cursor: pointer;
  padding: var(--spacing-sm);
  margin-bottom: 0;
}

.custom-amount-link {
  color: var(--primary);
  text-decoration: underline;
  font-size: 0.9375rem;
  font-weight: 700;
  transition: color var(--transition-base);
}

.custom-amount-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.custom-amount-link-wrapper input[type="radio"]:checked ~ .custom-amount-link {
  color: var(--accent);
  font-weight: 600;
}

/* Custom Amount Input Wrapper */
.custom-amount-input-wrapper {
  margin-top: var(--spacing-md);
  animation: slideDown 0.25s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.custom-amount-section {
  background: var(--gray-50);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
}

/* Amount Info Box */
.amount-info-box {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  background: rgba(6, 214, 160, 0.08);
  border: 1px solid rgba(6, 214, 160, 0.25);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm) var(--spacing-md);
  margin-top: var(--spacing-md);
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.amount-info-box i {
  font-size: 1.25rem;
  margin-top: 0.25rem;
}

/* Feature List */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  transition: background var(--transition-base);
}

.feature-item:hover {
  background: var(--gray-50);
}

.feature-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(78, 205, 196, 0.1);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1.125rem;
  flex-shrink: 0;
}

.feature-content {
  flex: 1;
}

.feature-content strong {
  display: block;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

/* Steps Guide */
.steps-guide {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.step-guide-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-sm);
}

.step-guide-number {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.step-guide-content {
  flex: 1;
}

.step-guide-content strong {
  display: block;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
  font-size: 0.9375rem;
}

/* Section Title - Reuse from booking-forms.css */
/* No additional styles needed, already defined globally */

/* Coupon Info Sidebar */
.coupon-info-sidebar {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.coupon-info-sidebar:hover {
  box-shadow: var(--shadow-md);
}

/* Coupon View Page Styles */
.coupon-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.coupon-amount {
  padding: var(--spacing-xl);
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  border-radius: var(--radius-lg);
  color: var(--white);
}

.coupon-amount .amount-label {
  font-size: 0.875rem;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.9) !important;
}

.coupon-amount .amount-display {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--white);
}

.coupon-code-section {
  padding: var(--spacing-lg);
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
}

.coupon-code-section .code-label {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.coupon-code {
  font-size: 2rem;
  font-weight: 700;
  font-family: "Courier New", monospace;
  color: var(--primary);
  letter-spacing: 3px;
}

.qr-code-section .qr-code-label {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.qr-code-wrapper {
  display: inline-block;
  padding: var(--spacing-md);
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
}

.qr-code-wrapper svg,
.qr-code-wrapper img {
  max-width: 250px;
  height: auto;
  display: block;
}

/* Pending Section */
.coupon-pending-section {
  padding: var(--spacing-xl);
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
}

.coupon-pending-section i {
  color: var(--primary);
}

.coupon-pending-section h5 {
  color: var(--gray-800);
  margin-bottom: var(--spacing-sm);
}

.coupon-pending-section p {
  color: var(--gray-600);
}

.coupon-details {
  padding: var(--spacing-lg);
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--gray-200);
}

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

.detail-label {
  font-weight: 500;
  color: var(--gray-600);
}

.detail-value {
  font-weight: 600;
  color: var(--gray-900);
}

.gift-message-box {
  padding: 20px;
  background: #fff8e1;
  border-left: 4px solid #ffc107;
  border-radius: 4px;
}

.gift-message-title {
  font-weight: 600;
  color: #f57c00;
  margin-bottom: 10px;
}

.gift-message-content {
  color: #795548;
}

.usage-steps {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.usage-step {
  display: flex;
  align-items: start;
  gap: var(--spacing-md);
}

.step-number {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-content strong {
  display: block;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.terms-section h6 {
  color: var(--gray-800);
}

.terms-section ul {
  padding-left: 20px;
  margin: 0;
}

.terms-section li {
  margin-bottom: 8px;
}

/* Divider - Reuse from booking-forms.css */
/* No additional styles needed, already defined globally */

/* Responsive Styles */
@media (max-width: 991px) {
  .amount-card {
    padding: var(--spacing-sm);
    min-height: 80px;
  }

  .amount-icon {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
  }

  .amount-value {
    font-size: 1.125rem;
  }

  .custom-card .amount-value {
    font-size: 0.875rem;
  }

  .coupon-card {
    padding: var(--spacing-lg);
  }

  .amount-display {
    font-size: 2.25rem;
  }

  .coupon-code {
    font-size: 1.5rem;
  }

  /* Sidebar adjustments on tablet and below */
  .coupon-info-sidebar {
    position: static !important;
    margin-top: var(--spacing-lg);
  }
}

@media (max-width: 768px) {
  .booking-summary {
    margin-top: var(--spacing-lg);
  }
}

/* Print Styles */
@media print {
  .info-card {
    display: none;
  }

  body {
    background: white;
  }
}
