/* ======================================================== */
/* Hero */

.hero-section {
  padding: var(--space-8) var(--space-5) var(--space-7);
  text-align: center;
}

.hero-content {
  max-width: 620px;
  margin: 0 auto;
}

.hero-content h1 {
  margin: 0;
  color: var(--color-text-dark);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.hero-content p {
  margin: var(--space-3) 0 0;
  color: var(--color-text-muted);
  font-size: 15px;
}

/* ======================================================== */
/* Main booking container */

.booking-section {
  position: relative;
  padding: 0 var(--space-4) var(--space-9);
}

.cover-page {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10000;
}

.cover-page.active {
  pointer-events: all;
}

.booking-card {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;

  padding: var(--space-6);

  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-large);

  box-shadow: var(--shadow-card);
}

/* ======================================================== */
/* Form sections */

.form-section {
  padding: var(--space-6) 0;

  border-bottom: 1px solid var(--color-border-light);
}

.form-section:first-of-type {
  padding-top: 0;
}

.form-section:last-of-type {
  border-bottom: none;
}

.section-title {
  margin: 0 0 var(--space-5);

  color: var(--color-text-dark);

  font-size: 18px;
  font-weight: 600;
}

/* ======================================================== */
/* Form fields */

.field-group {
  margin-bottom: var(--space-5);
}

.field-group:last-child {
  margin-bottom: 0;
}

.field-group label {
  display: block;

  margin-bottom: var(--space-2);

  color: var(--color-text-dark);

  font-size: 14px;
  font-weight: 500;
}

.field-group input,
.field-group select {
  width: 100%;
  min-height: 48px;

  padding: 0 var(--space-4);

  color: var(--color-text-dark);
  background: var(--color-surface);

  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);

  outline: none;

  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.field-group input:focus,
.field-group select:focus {
  border-color: var(--color-primary);

  box-shadow: 0 0 0 3px var(--color-primary-soft);
}

.field-help {
  margin: var(--space-2) 0 0;

  color: var(--color-text-muted);

  font-size: 12px;
}

.field-error {
  margin: var(--space-2) 0 0;

  color: var(--color-error);

  font-size: 13px;
}

.form-errors {
  margin-bottom: var(--space-5);

  padding: var(--space-4);

  color: var(--color-error);

  background: var(--color-error-background);

  border: 1px solid #f0d5d5;
  border-radius: var(--radius-medium);
}

/* ======================================================== */
/* Price information */

.service-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-top: var(--space-4);
  direction: rtl;
}

.price-box {
  padding: var(--space-4);

  background: var(--color-surface-soft);

  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-medium);
}

.price-box span {
  display: block;

  margin-bottom: var(--space-2);

  color: var(--color-text-muted);

  font-size: 12px;
}

.price-box strong {
  color: var(--color-text-dark);

  font-size: 16px;
  font-weight: 600;
}

/* ======================================================== */
/* Submit button */

.submit-section {
  padding-top: var(--space-6);
}

.submit-section button {
  width: 100%;
  min-height: 52px;

  padding: 0 var(--space-5);

  color: #ffffff;
  background: var(--color-primary-dark);

  border: none;
  border-radius: var(--radius-medium);

  font-size: 15px;
  font-weight: 600;

  box-shadow: var(--shadow-button);

  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.submit-section button:hover {
  background: #a97d68;
}

.submit-section button:active {
  transform: translateY(1px);
}

.submit-section button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  box-shadow: none;
}

/* ======================================================== */
/* Date card */

.date-picker {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  padding: var(--space-1) 2px var(--space-3);
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
}

.date-picker::after {
  content: "";
  flex: 0 0 2px;
}

.date-option {
  position: relative;
  display: flex;
  flex: 0 0 72px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  padding: var(--space-3);
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  cursor: pointer;
  scroll-snap-align: start;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.date-option:focus-visible,
.time-option:focus-visible,
.submit-section button:focus-visible,
.remove-receipt:focus-visible {
  outline: 3px solid var(--color-primary-soft);
  outline-offset: 2px;
}

.date-option .date-weekday {
  margin-bottom: 3px;

  color: var(--color-text-muted);

  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.date-option .date-day {
  color: var(--color-text-dark);

  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
}

.date-option .date-month {
  margin-top: 2px;

  color: var(--color-text-muted);

  font-size: 11px;
}

.date-option.is-selected {
  color: #ffffff;
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  box-shadow: var(--shadow-button);
  font-weight: 600;
}

.date-option.is-selected::after {
  content: "\2714";
  position: absolute;
  top: 5px;
  right: 7px;
  font-size: 10px;
}

.date-option.is-selected .date-weekday,
.date-option.is-selected .date-day,
.date-option.is-selected .date-month {
  color: #ffffff;
}

.date-option:active {
  transform: scale(0.97);
}

/* ======================================================== */
/* Time slots */

.time-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.time-option {
  min-height: 48px;
  padding: var(--space-3);
  color: var(--color-text-dark);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
}

.time-option.is-selected {
  color: #ffffff;
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  box-shadow: var(--shadow-button);
  font-weight: 600;
}

.time-option:active {
  transform: scale(0.98);
}

.time-option:disabled,
.time-option.is-unavailable {
  color: #b5aaa4;
  background: #f8f5f3;
  border-color: #eee7e3;
  cursor: not-allowed;
  text-decoration: line-through;
}

.time-option:disabled:active {
  transform: none;
}

.time-slots.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

.time-loading {
  grid-column: 1 / -1;

  padding: var(--space-5);

  color: var(--color-text-muted);

  text-align: center;

  font-size: 13px;
}

.time-empty {
  grid-column: 1 / -1;

  padding: var(--space-5);

  color: var(--color-text-muted);

  background: var(--color-surface-soft);

  border-radius: var(--radius-medium);

  text-align: center;

  font-size: 13px;
}

.availability-error {
  margin-top: var(--space-3);

  padding: var(--space-3) var(--space-4);

  color: var(--color-error);

  background: var(--color-error-background);

  border: 1px solid #f0d5d5;

  border-radius: var(--radius-medium);

  font-size: 13px;
  line-height: 1.5;
}

/* ======================================================== */
/* file input */

.receipt-upload input[type="file"] {
  display: none;
}

.payment-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
  padding: var(--space-4);
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-medium);
}

.payment-summary-label {
  color: var(--color-text-muted);
  font-size: 13px;
}

.payment-summary strong {
  color: var(--color-text-dark);
  font-size: 18px;
  font-weight: 600;
}

.receipt-upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-height: 170px;

  padding: var(--space-6);

  background: var(--color-background);

  border: 1.5px dashed var(--color-primary);
  border-radius: var(--radius-large);

  text-align: center;

  cursor: pointer;

  transition:
    background var(--transition-normal),
    border-color var(--transition-normal),
    transform var(--transition-fast);
}

.receipt-upload-area:hover {
  background: var(--color-primary-soft);
}

.receipt-upload-area:active {
  transform: scale(0.99);
}

.receipt-upload-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;

  margin-bottom: var(--space-3);

  color: var(--color-primary-dark);

  background: var(--color-primary-soft);

  border-radius: 50%;

  font-size: 22px;
  font-weight: 400;
}

.receipt-upload-title {
  color: var(--color-text-dark);

  font-size: 14px;
  font-weight: 600;
}

.receipt-upload-description {
  margin-top: var(--space-2);

  color: var(--color-text-muted);

  font-size: 12px;
  line-height: 1.6;
}

.receipt-preview {
  margin-top: var(--space-4);

  overflow: hidden;

  background: var(--color-surface);

  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
}

.receipt-preview-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;

  max-height: 280px;

  padding: var(--space-3);

  background: var(--color-background);
}

.receipt-preview img {
  display: block;

  width: 100%;
  max-height: 250px;

  object-fit: contain;

  border-radius: var(--radius-small);
}

.receipt-preview-info {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: var(--space-3);

  padding: var(--space-3) var(--space-4);

  border-top: 1px solid var(--color-border-light);
}

.receipt-file-name {
  min-width: 0;

  overflow: hidden;

  color: var(--color-text-dark);

  font-size: 13px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.remove-receipt {
  flex-shrink: 0;

  padding: 6px 10px;

  color: var(--color-error);

  background: transparent;

  border: none;

  font-size: 12px;
  font-weight: 500;
}

/* ======================================================= */
/* Animations */

@keyframes submit-spinner {
  to {
    transform: rotate(360deg);
  }
}

/* ======================================================= */
/* Responsive design */

@media (min-width: 768px) {
  .hero-section {
    padding-top: var(--space-9);
    padding-bottom: var(--space-8);
  }

  .hero-content h1 {
    font-size: 38px;
  }
  .hero-content h2 {
    font-size: 28px;
    margin-top: 0;
  }

  .booking-section {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }

  .booking-card {
    padding: var(--space-8);
  }

  .time-slots {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .date-picker {
    scrollbar-width: none;
  }
  .date-picker::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 380px) {
  .booking-card {
    padding: var(--space-5);
  }

  .hero-section {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .section-title {
    font-size: 17px;
  }
}

/* ========================================================
   Banking Card
======================================================== */

.payment-banking-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 235px;
  margin: 0 auto var(--space-6);
  padding: var(--space-6);
  overflow: hidden;

  border-radius: 22px;

  background: linear-gradient(
    135deg,
    var(--color-primary-dark),
    var(--color-primary)
  );

  color: #ffffff;

  box-shadow: 0 14px 35px rgba(90, 74, 66, 0.16);

  direction: rtl;
}

/* Decorative circles */
.payment-banking-card::before,
.payment-banking-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.payment-banking-card::before {
  width: 190px;
  height: 190px;
  top: -85px;
  left: -55px;
  background: rgba(255, 255, 255, 0.08);
}

.payment-banking-card::after {
  width: 150px;
  height: 150px;
  right: -55px;
  bottom: -75px;
  background: rgba(255, 255, 255, 0.08);
}

.banking-card-header,
.banking-card-number,
.banking-card-footer {
  position: relative;
  z-index: 1;
}

.banking-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.banking-card-title {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
}

.banking-card-bank {
  font-size: 14px;
  font-weight: 700;
}

/* Card number */
.banking-card-number {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;

  margin-top: 42px;

  direction: ltr;

  font-size: clamp(18px, 4vw, 25px);
  font-weight: 600;
  letter-spacing: 1px;
  white-space: nowrap;
}

.banking-card-number span {
  direction: ltr;
}

/* Footer */
.banking-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 35px;
}

.banking-card-owner {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.banking-card-label {
  font-size: 10px;
  opacity: 0.75;
}

.banking-card-owner strong {
  font-size: 18px;
  font-weight: 600;
}

.banking-card-owner span {
  font-size: 14px;
  font-weight: 600;
}
.copy-card-number {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-small);
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 16px;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast);
}

.copy-card-number:hover {
  background: rgba(255, 255, 255, 0.2);
}

.copy-card-number:active {
  transform: scale(0.96);
}

/* Mobile */
@media (max-width: 480px) {
  .payment-banking-card {
    min-height: 210px;
    padding: var(--space-5);
    border-radius: 18px;
  }

  .banking-card-number {
    gap: 7px;
    margin-top: 38px;
    font-size: 17px;
  }

  .banking-card-footer {
    margin-top: 30px;
  }

  .banking-card-owner strong {
    font-size: 15px;
    font-weight: 600;
  }

  .banking-card-owner span {
    font-size: 12px;
    font-weight: 600;
  }

  .copy-card-number {
    font-size: 14px;
  }
}
