/* ═══════════════════════════════════════
   RESERVATION MODAL – Artavista
   Style inspiré Revolut / crypto exchange
   ═══════════════════════════════════════ */

/* ── Dialog sizing ── */
.reservation-dialog {
  max-width: 460px;
  width: 100%;
}

/* ── Modal container ── */
.reservation-modal-content {
  background: #141414;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .7);
  color: #f5f5f5;
}

/* ── Header ── */
.reservation-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.reservation-artwork-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reservation-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #c9a96e;
  font-weight: 600;
}

.reservation-artwork-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.reservation-close-btn {
  background: rgba(255, 255, 255, .06);
  border: none;
  color: #aaa;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .18s, color .18s;
  flex-shrink: 0;
}
.reservation-close-btn:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

/* ── Body ── */
.reservation-modal-body {
  padding: 24px;
}

/* ── Amount card ── */
.res-amount-card {
  background: rgba(201, 169, 110, .08);
  border: 1px solid rgba(201, 169, 110, .2);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 22px;
  text-align: center;
}

.res-amount-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #c9a96e;
  margin-bottom: 6px;
}

.res-amount-value {
  font-size: 36px;
  font-weight: 800;
  color: #c9a96e;
  line-height: 1;
  font-family: system-ui, -apple-system, sans-serif;
}

.res-currency {
  font-size: 22px;
  font-weight: 400;
}

.res-amount-note {
  font-size: 12px;
  color: rgba(255, 255, 255, .45);
  margin-top: 8px;
  line-height: 1.5;
}

/* ── Form ── */
.res-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.res-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.res-form-group label {
  font-size: 12px;
  color: rgba(255, 255, 255, .55);
  font-weight: 500;
  letter-spacing: .3px;
}

.res-optional {
  color: rgba(255, 255, 255, .3);
  font-weight: 400;
}

.res-input {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  color: #fff;
  outline: none;
  transition: border-color .18s, background .18s;
  width: 100%;
}

.res-input::placeholder {
  color: rgba(255, 255, 255, .25);
}

.res-input:focus {
  border-color: rgba(201, 169, 110, .5);
  background: rgba(255, 255, 255, .07);
}

.res-input.is-invalid {
  border-color: #cd3c63;
}

.res-field-error {
  font-size: 11px;
  color: #cd3c63;
  min-height: 14px;
}

/* ── Notice ── */
.res-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, .45);
  line-height: 1.55;
  margin-bottom: 18px;
}

.res-notice-icon {
  color: rgba(255, 255, 255, .3);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Global error ── */
.res-global-error {
  background: rgba(205, 60, 99, .12);
  border: 1px solid rgba(205, 60, 99, .3);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #f28;
  margin-bottom: 14px;
}

/* ── Submit button ── */
.res-submit-btn {
  width: 100%;
  background: #c9a96e;
  color: #111;
  border: none;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .12s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: .3px;
}

.res-submit-btn:hover {
  background: #d4b87a;
  transform: translateY(-1px);
}

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

.res-submit-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

/* ── Spinner ── */
.res-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(17, 17, 17, .3);
  border-top-color: #111;
  border-radius: 50%;
  animation: res-spin .7s linear infinite;
  vertical-align: middle;
}

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

/* ── Result cards (success / cancel pages) ── */
.res-result-card {
  background: #141414;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 500px;
}

.res-result-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.res-result-icon--success {
  background: rgba(30, 164, 113, .1);
}

.res-result-icon--cancel {
  background: rgba(205, 60, 99, .1);
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .res-form-row {
    grid-template-columns: 1fr;
  }
  .reservation-dialog {
    margin: 0 10px;
  }
  .res-result-card {
    padding: 32px 20px;
  }
}
