/**
 * Pro Booking - Checkout Styles
 *
 * Self-contained styling for checkout page.
 * Dark theme = dark cards with light text
 * Light theme = light cards with dark text
 *
 * @package Pro_Booking
 * @since 1.0.3
 */

/* ==========================================================================
   CSS Custom Properties (Theme Variables)
   ========================================================================== */

/* Dark theme - SOLID dark backgrounds with light text */
[data-icz-theme="dark"] .icz-checkout,
.icz-checkout[data-icz-theme="dark"] {
  --icz-checkout-bg: #1a1a2e;
  --icz-checkout-bg-card: #242438;
  --icz-checkout-bg-input: rgba(0, 0, 0, 0.3);
  --icz-checkout-border: rgba(255, 255, 255, 0.1);
  --icz-checkout-text: #ffffff;
  --icz-checkout-text-muted: rgba(255, 255, 255, 0.7);
  --icz-checkout-text-light: rgba(255, 255, 255, 0.5);
  --icz-checkout-input-border: rgba(255, 255, 255, 0.15);
  --icz-checkout-input-focus: rgba(212, 165, 116, 0.5);
  --icz-checkout-copper: #d4a574;
  --icz-checkout-success: #4ade80;
  --icz-checkout-error: #ef4444;
  --icz-checkout-warning: #f59e0b;
}

/* Light theme - SOLID light backgrounds with dark text */
[data-icz-theme="light"] .icz-checkout,
.icz-checkout[data-icz-theme="light"],
.icz-checkout {
  --icz-checkout-bg: #ffffff;
  --icz-checkout-bg-card: #f8f8fa;
  --icz-checkout-bg-input: #ffffff;
  --icz-checkout-border: rgba(0, 0, 0, 0.1);
  --icz-checkout-text: #1a1a2e;
  --icz-checkout-text-muted: rgba(0, 0, 0, 0.6);
  --icz-checkout-text-light: rgba(0, 0, 0, 0.4);
  --icz-checkout-input-border: rgba(0, 0, 0, 0.15);
  --icz-checkout-input-focus: rgba(212, 165, 116, 0.5);
  --icz-checkout-copper: #c49564;
  --icz-checkout-success: #22c55e;
  --icz-checkout-error: #dc2626;
  --icz-checkout-warning: #d97706;
}

/* ==========================================================================
   Base Checkout Styles
   ========================================================================== */

.icz-checkout {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--icz-checkout-bg);
  border: 1px solid var(--icz-checkout-border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  color: var(--icz-checkout-text);
  max-width: 1200px;
  margin: 0 auto;
}

.icz-checkout__header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--icz-checkout-border);
}

.icz-checkout__title {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: 32px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: var(--icz-checkout-copper);
}

.icz-checkout__subtitle {
  font-size: 14px;
  color: var(--icz-checkout-text-muted);
  margin: 0;
}

/* Progress Steps */
.icz-checkout__steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.icz-checkout__step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--icz-checkout-text-light);
}

.icz-checkout__step--active {
  color: var(--icz-checkout-copper);
  font-weight: 600;
}

.icz-checkout__step--completed {
  color: var(--icz-checkout-success);
}

.icz-checkout__step-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  background: var(--icz-checkout-bg-card);
  border: 2px solid var(--icz-checkout-border);
}

.icz-checkout__step--active .icz-checkout__step-number {
  background: var(--icz-checkout-copper);
  border-color: var(--icz-checkout-copper);
  color: #fff;
}

.icz-checkout__step--completed .icz-checkout__step-number {
  background: var(--icz-checkout-success);
  border-color: var(--icz-checkout-success);
  color: #fff;
}

.icz-checkout__step-divider {
  width: 40px;
  height: 2px;
  background: var(--icz-checkout-border);
}

/* ==========================================================================
   Two-Column Layout
   ========================================================================== */

.icz-checkout__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 900px) {
  .icz-checkout__layout {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Summary Section (Left Column)
   ========================================================================== */

.icz-checkout__summary {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.icz-checkout__summary-card {
  background: var(--icz-checkout-bg-card);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--icz-checkout-border);
}

.icz-checkout__summary-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--icz-checkout-copper);
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--icz-checkout-border);
}

/* Room Info */
.icz-checkout__room {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.icz-checkout__room-image {
  width: 120px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.icz-checkout__room-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.icz-checkout__room-image--placeholder {
  background: var(--icz-checkout-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--icz-checkout-text-light);
  font-size: 32px;
}

.icz-checkout__room-details {
  flex: 1;
  min-width: 0;
}

.icz-checkout__room-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--icz-checkout-copper);
  margin: 0 0 8px 0;
}

.icz-checkout__room-meta {
  font-size: 13px;
  color: var(--icz-checkout-text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.icz-checkout__room-info {
  flex: 1;
  min-width: 0;
}

/* Dates Section */
.icz-checkout__dates {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 16px;
  background: var(--icz-checkout-bg);
  border-radius: 8px;
}

.icz-checkout__date {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  flex: 1;
}

.icz-checkout__date-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--icz-checkout-text-light);
  font-weight: 600;
}

.icz-checkout__date-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--icz-checkout-text);
}

.icz-checkout__date-time {
  font-size: 13px;
  color: var(--icz-checkout-copper);
  font-weight: 500;
}

.icz-checkout__date-arrow {
  color: var(--icz-checkout-text-light);
  flex-shrink: 0;
}

.icz-checkout__date-arrow svg {
  display: block;
}

/* Nights Display */
.icz-checkout__nights {
  text-align: center;
  font-size: 14px;
  color: var(--icz-checkout-copper);
  font-weight: 600;
  padding: 8px 16px;
  background: rgba(212, 165, 116, 0.1);
  border-radius: 20px;
  margin-bottom: 16px;
  display: inline-block;
  align-self: center;
}

/* Booking Details (legacy) */
.icz-checkout__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--icz-checkout-bg);
  border-radius: 8px;
}

.icz-checkout__detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.icz-checkout__detail-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--icz-checkout-text-light);
  font-weight: 600;
}

.icz-checkout__detail-value {
  font-size: 15px;
  font-weight: 500;
}

/* Price Breakdown */
.icz-checkout__breakdown {
  border-top: 1px solid var(--icz-checkout-border);
  padding-top: 16px;
}

.icz-checkout__breakdown-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--icz-checkout-text-muted);
}

.icz-checkout__breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  font-size: 14px;
}

.icz-checkout__breakdown-row--discount {
  color: var(--icz-checkout-success);
}

.icz-checkout__discount-note {
  font-size: 12px;
  color: var(--icz-checkout-muted);
  font-style: italic;
  margin-top: 2px;
  margin-bottom: 8px;
}

.icz-checkout__breakdown-row--subtotal {
  border-top: 1px dashed var(--icz-checkout-border);
  margin-top: 8px;
  padding-top: 12px;
}

.icz-checkout__breakdown-row--total {
  border-top: 2px solid var(--icz-checkout-copper);
  margin-top: 12px;
  padding-top: 16px;
  font-size: 18px;
  font-weight: 700;
}

.icz-checkout__breakdown-row--total .icz-checkout__breakdown-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  color: var(--icz-checkout-copper);
}

/* ==========================================================================
   Form Section (Right Column)
   ========================================================================== */

.icz-checkout__form-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.icz-checkout__form-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--icz-checkout-copper);
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--icz-checkout-border);
}

.icz-checkout__form-subtitle,
h3.icz-checkout__form-subtitle {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px 0;
  padding: 0;
  color: var(--icz-checkout-text, #ffffff);
  line-height: 1.3;
}

/* Form Cards */
.icz-checkout__form-card {
  background: var(--icz-checkout-bg-card);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--icz-checkout-border);
  margin-bottom: 20px;
}

.icz-checkout__form-card:last-child {
  margin-bottom: 0;
}

.icz-checkout__coupon-card,
.icz-checkout__payment-card,
.icz-checkout__services-card,
.icz-checkout__submit-card {
  background: var(--icz-checkout-bg-card);
}

/* Form Rows */
.icz-checkout__form-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.icz-checkout__form-row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .icz-checkout__form-row--two {
    grid-template-columns: 1fr;
  }
}

/* Form Grid (legacy) */
.icz-checkout__form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.icz-checkout__form-grid--single {
  grid-template-columns: 1fr;
}

@media (max-width: 600px) {
  .icz-checkout__form-grid {
    grid-template-columns: 1fr;
  }
}

/* Form Field */
.icz-checkout__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.icz-checkout__field--full {
  grid-column: 1 / -1;
}

.icz-checkout__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--icz-checkout-text);
}

.icz-checkout__label--required::after {
  content: ' *';
  color: var(--icz-checkout-error);
}

.icz-checkout__input,
.icz-checkout__select,
.icz-checkout__textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--icz-checkout-text);
  background: var(--icz-checkout-bg-input);
  border: 1px solid var(--icz-checkout-input-border);
  border-radius: 8px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.icz-checkout__input:focus,
.icz-checkout__select:focus,
.icz-checkout__textarea:focus {
  border-color: var(--icz-checkout-input-focus);
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.15);
}

.icz-checkout__input--error,
.icz-checkout__select--error,
.icz-checkout__textarea--error {
  border-color: var(--icz-checkout-error);
}

.icz-checkout__textarea {
  resize: vertical;
  min-height: 80px;
}

.icz-checkout__field-error {
  font-size: 12px;
  color: var(--icz-checkout-error);
  margin-top: 4px;
}

.icz-checkout__field-hint {
  font-size: 12px;
  color: var(--icz-checkout-text-light);
}

/* ==========================================================================
   Coupon Section
   ========================================================================== */

.icz-checkout__coupon {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.icz-checkout__coupon .icz-checkout__input {
  flex: 1;
  flex: auto;
  text-transform: uppercase;
}

.icz-checkout__coupon-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.icz-checkout__coupon-form {
  display: flex;
  gap: 8px;
}

.icz-checkout__coupon-input {
  flex: 1;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  padding: 10px 14px;
  border: 1px solid var(--icz-checkout-input-border);
  border-radius: 8px;
  background: var(--icz-checkout-bg-input);
  color: var(--icz-checkout-text);
  outline: none;
}

.icz-checkout__coupon-input:focus {
  border-color: var(--icz-checkout-input-focus);
}

.icz-checkout__coupon-btn {
  padding: 10px 20px;
  background: var(--icz-checkout-bg);
  border: 1px solid var(--icz-checkout-input-border);
  border-radius: 8px;
  color: var(--icz-checkout-text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icz-checkout__coupon-btn:hover {
  border-color: var(--icz-checkout-copper);
  color: var(--icz-checkout-copper);
}

.icz-checkout__coupon-message {
  margin-top: 8px;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 6px;
}

.icz-checkout__coupon-message--success {
  background: rgba(34, 197, 94, 0.1);
  color: var(--icz-checkout-success);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.icz-checkout__coupon-message--error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--icz-checkout-error);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.icz-checkout__coupon-applied {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 8px;
}

.icz-checkout__coupon-code {
  font-weight: 600;
  color: var(--icz-checkout-success);
}

.icz-checkout__coupon-remove {
  background: none;
  border: none;
  color: var(--icz-checkout-text-muted);
  cursor: pointer;
  font-size: 18px;
  padding: 0;
  line-height: 1;
}

.icz-checkout__coupon-remove:hover {
  color: var(--icz-checkout-error);
}

/* ==========================================================================
   Payment Options Section
   ========================================================================== */

.icz-checkout__payment-card {
  background: var(--icz-checkout-bg-card);
}

.icz-checkout__payment-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.icz-checkout__payment-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--icz-checkout-bg);
  border: 2px solid var(--icz-checkout-input-border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icz-checkout__payment-option:hover {
  border-color: var(--icz-checkout-copper);
  background: rgba(212, 165, 116, 0.03);
}

.icz-checkout__payment-option input[type="radio"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--icz-checkout-copper);
}

.icz-checkout__payment-option input[type="radio"]:checked + .icz-checkout__payment-option-label {
  color: var(--icz-checkout-text);
}

.icz-checkout__payment-option:has(input[type="radio"]:checked) {
  border-color: var(--icz-checkout-copper);
  background: rgba(212, 165, 116, 0.08);
}

.icz-checkout__payment-option-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  color: var(--icz-checkout-text-muted);
  transition: color 0.2s ease;
}

.icz-checkout__payment-option-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--icz-checkout-text);
}

.icz-checkout__payment-option-desc {
  font-size: 13px;
  color: var(--icz-checkout-text-muted);
  line-height: 1.5;
}

.icz-checkout__notice {
  padding: 12px 16px;
  background: rgba(212, 165, 116, 0.1);
  border: 1px solid rgba(212, 165, 116, 0.2);
  border-radius: 8px;
  color: var(--icz-checkout-text);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   Services Section
   ========================================================================== */

.icz-checkout__services {
  margin-top: 5px;
  padding-top: 20px;
  border-top: 1px solid var(--icz-checkout-border);
}

.icz-checkout__services-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.icz-checkout__service {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: var(--icz-checkout-bg);
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icz-checkout__service:hover {
  border-color: var(--icz-checkout-copper);
}

.icz-checkout__service--selected {
  border: 1px solid var(--icz-checkout-copper);
  background: rgba(212, 165, 116, 0.05);
}

.icz-checkout__service-checkbox {
  margin-top: 2px;
  accent-color: var(--icz-checkout-copper);
  width: 18px;
  height: 18px;
}

.icz-checkout__service-info {
  flex: 1;
}

.icz-checkout__service-name {
  font-weight: 500;
  margin-bottom: 4px;
}

.icz-checkout__service-desc {
  font-size: 13px;
  color: var(--icz-checkout-text-muted);
}

.icz-checkout__service-price {
  font-weight: 600;
  color: var(--icz-checkout-copper);
  white-space: nowrap;
}

.icz-checkout__service-required {
  font-size: 11px;
  color: var(--icz-checkout-warning);
  font-weight: 400;
}

.icz-checkout__service-qty {
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid var(--icz-checkout-input-border);
  border-radius: 6px;
  background: var(--icz-checkout-bg-input);
  color: var(--icz-checkout-text);
  cursor: pointer;
  margin-left: 8px;
}

/* Service Quantity */
.icz-checkout__service-quantity {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.icz-checkout__service-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--icz-checkout-input-border);
  background: var(--icz-checkout-bg-input);
  color: var(--icz-checkout-text);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icz-checkout__service-qty-btn:hover {
  border-color: var(--icz-checkout-copper);
  color: var(--icz-checkout-copper);
}

.icz-checkout__service-qty-value {
  min-width: 32px;
  text-align: center;
  font-weight: 500;
}

/* Service Card in Summary Column */
.icz-checkout__services-card {
  margin-top: 20px;
}

.icz-checkout__services-intro {
  font-size: 14px;
  color: var(--icz-checkout-text-muted);
  margin: 0 0 16px 0;
}

.icz-checkout__services-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.icz-checkout__service-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.icz-checkout__service-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  flex: 1;
}

.icz-checkout__service-check input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--icz-checkout-copper);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.icz-checkout__service-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.icz-checkout__service--required {
  border: 1px solid rgba(212, 165, 116, 0.3);
  background: rgba(212, 165, 116, 0.05);
}

.icz-checkout__service-required-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--icz-checkout-copper);
  color: #1a1a2e;
}

.icz-checkout__service-qty-label {
  font-size: 13px;
  color: var(--icz-checkout-text-muted);
  margin-right: 8px;
}

.icz-checkout__service-qty-select {
  padding: 4px 8px;
  font-size: 14px;
  border: 1px solid var(--icz-checkout-input-border);
  border-radius: 6px;
  background: var(--icz-checkout-bg-input);
  color: var(--icz-checkout-text);
  cursor: pointer;
}

.icz-checkout__service-qty-select:focus {
  outline: none;
  border-color: var(--icz-checkout-copper);
}

/* ==========================================================================
   Terms & Submit
   ========================================================================== */

.icz-checkout__terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.icz-checkout__terms input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--icz-checkout-copper);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.icz-checkout__terms span {
  color: var(--icz-checkout-text);
}

.icz-checkout__terms a {
  color: var(--icz-checkout-copper);
  text-decoration: underline;
}

.icz-checkout__terms .required {
  color: var(--icz-checkout-error);
}

/* Terms (legacy) */
.icz-checkout__terms-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
}

.icz-checkout__terms-checkbox {
  margin-top: 3px;
  accent-color: var(--icz-checkout-copper);
  width: 18px;
  height: 18px;
}

.icz-checkout__terms-text a {
  color: var(--icz-checkout-copper);
  text-decoration: underline;
}

.icz-checkout__submit {
  padding: 16px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #d4a574 0%, #c49664 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.icz-checkout__submit:hover {
  background: linear-gradient(135deg, #e0b584 0%, #d4a674 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
}

.icz-checkout__submit:active {
  transform: translateY(0);
}

.icz-checkout__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.icz-checkout__submit-text {
  font-weight: 600;
}

.icz-checkout__submit svg {
  flex-shrink: 0;
}

.icz-checkout__note {
  font-size: 13px;
  color: var(--icz-checkout-text-muted);
  text-align: center;
  margin-top: 12px;
}

/* Submit Button (legacy) */
.icz-checkout__submit-btn {
  width: 100%;
  padding: 16px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #d4a574 0%, #c49664 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

.icz-checkout__submit-btn:hover {
  background: linear-gradient(135deg, #e0b584 0%, #d4a674 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
}

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

.icz-checkout__submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.icz-checkout__submit-btn--loading {
  position: relative;
  color: transparent;
}

.icz-checkout__submit-btn--loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin: -10px 0 0 -10px;
  border: 2px solid #fff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: icz-spin 0.8s linear infinite;
}

@keyframes icz-spin {
  to { transform: rotate(360deg); }
}

/* Trust Signals */
.icz-checkout__trust {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 2px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--icz-checkout-text-light);
}

.icz-checkout__trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Error & Success States
   ========================================================================== */

/* Errors Container */
.icz-checkout__errors {
  margin-bottom: 24px;
}

.icz-checkout__error {
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--icz-checkout-error);
}

.icz-checkout__error:last-child {
  margin-bottom: 0;
}

/* Warning State - Price mismatch alert */
.icz-checkout__warning {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--icz-checkout-warning);
  line-height: 1.5;
}

.icz-checkout__warning svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Success State */
.icz-checkout__success {
  text-align: center;
  padding: 60px 40px;
}

.icz-checkout__success-icon {
  color: var(--icz-checkout-success);
  margin-bottom: 24px;
}

.icz-checkout__success-icon svg {
  width: 64px;
  height: 64px;
}

.icz-checkout__success-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 16px 0;
  color: var(--icz-checkout-text);
}

.icz-checkout__success-text {
  font-size: 16px;
  color: var(--icz-checkout-text-muted);
  line-height: 1.6;
  margin: 0;
}

.icz-checkout__success-text strong {
  color: var(--icz-checkout-copper);
  font-weight: 600;
}

/* ==========================================================================
   Empty / Loading States
   ========================================================================== */

.icz-checkout__empty {
  text-align: center;
  padding: 60px 20px;
}

.icz-checkout__empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.icz-checkout__empty-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  margin-bottom: 8px;
}

.icz-checkout__empty-text {
  color: var(--icz-checkout-text-muted);
  margin-bottom: 20px;
}

.icz-checkout__empty-btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--icz-checkout-copper);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.icz-checkout__empty-btn:hover {
  opacity: 0.9;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 768px) {
  .icz-checkout {
    padding: 20px;
    border-radius: 12px;
  }

  .icz-checkout__title {
    font-size: 26px;
  }

  .icz-checkout__room {
    flex-direction: column;
  }

  .icz-checkout__room-image {
    width: 100%;
    height: 160px;
  }

  .icz-checkout__dates {
    flex-direction: column;
    gap: 12px;
  }

  .icz-checkout__date-arrow {
    transform: rotate(90deg);
  }

  .icz-checkout__details {
    grid-template-columns: 1fr;
  }

  .icz-checkout__steps {
    flex-wrap: wrap;
  }

  .icz-checkout__step-divider {
    width: 20px;
  }
}

@media (max-width: 480px) {
  .icz-checkout {
    padding: 16px;
    margin: 0 -16px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .icz-checkout__summary,
  .icz-checkout__form-section {
    padding: 16px;
  }

  .icz-checkout__coupon-form {
    flex-direction: column;
  }

  .icz-checkout__coupon-btn {
    width: 100%;
  }
}

/* ==========================================================================
   ACCOUNT PAGE STYLES
   ========================================================================== */

.icz-account {
  --icz-account-bg: var(--icz-checkout-bg);
  --icz-account-card-bg: var(--icz-checkout-card-bg);
  --icz-account-text: var(--icz-checkout-text);
  --icz-account-text-muted: var(--icz-checkout-text-muted);
  --icz-account-border: var(--icz-checkout-border);
  --icz-account-copper: var(--icz-checkout-copper);

  font-family: 'DM Sans', sans-serif;
  color: var(--icz-account-text);
  padding: 32px;
  max-width: 900px;
  margin: 0 auto;
}

/* Lookup Form */
.icz-account__lookup {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.icz-account__lookup-card {
  background: var(--icz-account-card-bg);
  border-radius: 16px;
  padding: 48px 40px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  border: 1px solid var(--icz-account-border);
}

.icz-account__lookup-icon {
  color: var(--icz-account-copper);
  margin-bottom: 24px;
}

.icz-account__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: var(--icz-account-text);
}

.icz-account__desc {
  font-size: 15px;
  color: var(--icz-account-text-muted);
  line-height: 1.6;
  margin: 0 0 24px 0;
}

.icz-account__lookup-form {
  margin-top: 24px;
}

.icz-account__field {
  text-align: left;
  margin-bottom: 20px;
}

.icz-account__note {
  font-size: 13px;
  color: var(--icz-account-text-muted);
  margin-top: 16px;
}

/* Messages */
.icz-account__message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 14px;
  text-align: left;
}

.icz-account__message--success {
  background: rgba(72, 187, 120, 0.15);
  color: #48bb78;
}

.icz-account__message--error {
  background: rgba(245, 101, 101, 0.15);
  color: #f56565;
}

.icz-account__message svg {
  flex-shrink: 0;
}

/* Error State */
.icz-account__error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
}

.icz-account__error-icon {
  color: #f56565;
  margin-bottom: 24px;
}

/* Empty State */
.icz-account__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  text-align: center;
  color: var(--icz-account-text-muted);
}

.icz-account__empty-icon {
  color: var(--icz-account-text-muted);
  margin-bottom: 24px;
  opacity: 0.5;
}

/* Dashboard */
.icz-account__dashboard {
  max-width: 800px;
  margin: 0 auto;
}

.icz-account__header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--icz-account-border);
}

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

.icz-account__email {
  font-size: 14px;
  color: var(--icz-account-text-muted);
  margin-top: 8px;
}

.icz-account__section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 20px 0;
  color: var(--icz-account-text);
}

/* Bookings List */
.icz-account__bookings {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.icz-account__booking {
  background: var(--icz-account-card-bg);
  border: 1px solid var(--icz-account-border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.icz-account__booking:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.icz-account__booking--past {
  opacity: 0.7;
}

.icz-account__booking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid var(--icz-account-border);
}

.icz-account__booking-number {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: var(--icz-account-text);
}

.icz-account__status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.icz-account__status--confirmed {
  background: rgba(72, 187, 120, 0.15);
  color: #48bb78;
}

.icz-account__status--pending_payment {
  background: rgba(237, 137, 54, 0.15);
  color: #ed8936;
}

.icz-account__status--pending_admin,
.icz-account__status--pending_user {
  background: rgba(66, 153, 225, 0.15);
  color: #4299e1;
}

.icz-account__status--cancelled,
.icz-account__status--abandoned {
  background: rgba(245, 101, 101, 0.15);
  color: #f56565;
}

.icz-account__booking-content {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  align-items: center;
}

.icz-account__booking-room-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--icz-checkout-copper);
  margin: 0 0 12px 0;
  color: var(--icz-account-text);
}

.icz-account__booking-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--icz-account-text-muted);
}

.icz-account__booking-date strong {
  color: var(--icz-account-text);
}

.icz-account__booking-nights {
  color: var(--icz-account-copper);
  font-weight: 500;
}

.icz-account__booking-guests {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: var(--icz-account-text-muted);
  text-align: center;
}

.icz-account__booking-total {
  text-align: right;
}

.icz-account__booking-total-label {
  display: block;
  font-size: 12px;
  color: var(--icz-account-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.icz-account__booking-total-amount {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--icz-account-copper);
}

/* Booking rate name */
.icz-account__booking-rate {
  font-size: 14px;
  font-weight: 400;
  color: var(--icz-account-text-muted);
  font-family: 'DM Sans', sans-serif;
}

/* Booking Details/Breakdown */
.icz-account__booking-details {
  padding: 16px 20px;
  border-top: 1px solid var(--icz-account-border);
  background: rgba(0, 0, 0, 0.02);
}

.icz-account__booking-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.icz-account__breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--icz-account-text-muted);
}

.icz-account__breakdown-row--indent {
  padding-left: 16px;
}

.icz-account__breakdown-row--indent .icz-account__breakdown-label {
  font-size: 13px;
}

.icz-account__breakdown-row small {
  color: var(--icz-account-text-muted);
  opacity: 0.7;
  margin-left: 4px;
}

.icz-account__breakdown-section {
  margin: 4px 0;
}

.icz-account__breakdown-section-title {
  display: block;
  font-weight: 600;
  color: var(--icz-account-text);
  margin-bottom: 4px;
}

.icz-account__breakdown-row--discount {
  color: #48bb78;
}

.icz-account__breakdown-row--discount .icz-account__breakdown-value {
  color: #48bb78;
}

.icz-account__breakdown-row--total {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--icz-account-border);
}

.icz-account__breakdown-row--total .icz-account__breakdown-label,
.icz-account__breakdown-row--total .icz-account__breakdown-value {
  font-weight: 600;
  color: var(--icz-account-text);
  font-size: 16px;
}

.icz-account__breakdown-row--total .icz-account__breakdown-value {
  color: var(--icz-account-copper);
}

.icz-account__booking-actions {
  padding: 16px 20px;
  border-top: 1px solid var(--icz-account-border);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.icz-account__btn {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-family: 'DM Sans', sans-serif;
}

.icz-account__btn--primary {
  background: linear-gradient(135deg, #d4a574 0%, #c49664 100%);
  color: #fff;
}

.icz-account__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 165, 116, 0.4);
}

.icz-account__btn--secondary {
  background: transparent;
  color: var(--icz-account-text);
  border: 1px solid var(--icz-account-border);
}

.icz-account__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Empty Notice (lighter than full empty state) */
.icz-account__empty-notice {
  padding: 24px;
  text-align: center;
  color: var(--icz-account-text-muted);
  background: rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  margin-bottom: 32px;
}

.icz-account__empty-notice p {
  margin: 0;
  font-size: 15px;
}

/* Lookup Section (card-style form in dashboard) */
.icz-account__lookup-section {
  margin-top: 40px;
  padding: 32px;
  background: var(--icz-account-card-bg);
  border: 1px solid var(--icz-account-border);
  border-radius: 16px;
}

.icz-account__lookup-section .icz-account__section-title {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.icz-account__lookup-desc {
  font-size: 14px;
  color: var(--icz-account-text-muted);
  line-height: 1.6;
  margin: 0 0 24px 0;
}

.icz-account__lookup-inline {
  max-width: 100%;
}

.icz-account__lookup-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.icz-account__lookup-row .icz-checkout__input {
  flex: 1;
  margin: 0;
  min-width: 0;
}

.icz-account__lookup-row .icz-checkout__submit {
  white-space: nowrap;
  flex-shrink: 0;
  margin: 0;
  padding: 14px 28px;
}

/* Account Responsive */
@media (max-width: 768px) {
  .icz-account {
    padding: 24px 16px;
  }

  .icz-account__booking-content {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .icz-account__booking-guests,
  .icz-account__booking-total {
    text-align: left;
  }

  .icz-account__booking-actions {
    flex-direction: column;
  }

  .icz-account__btn {
    width: 100%;
    text-align: center;
  }

  .icz-account__lookup-row {
    flex-direction: column;
  }

  .icz-account__lookup-row .icz-checkout__submit {
    width: 100%;
  }

  .icz-account__lookup-section {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .icz-account__lookup-card,
  .icz-account__lookup-section {
    padding: 24px 20px;
  }

  .icz-account__title {
    font-size: 24px;
  }

  .icz-account__booking-dates {
    flex-direction: column;
    gap: 8px;
  }
}
