/* ==========================================================================
   Progetto Reservation Module — Styles
   Brand: Gold #C5A055 / Dark Gold #9B7D3C / Black #1A1A1A
   ========================================================================== */

/* ── Product block ─────────────────────────────────────── */
.progetto-reservation-block {
  margin: 20px 0;
  padding: 22px 24px;
  border: 2px solid #C5A055;
  border-radius: 4px;
  background: linear-gradient(135deg, #FFFBF2 0%, #FFF8EC 100%);
}

.pr-header {
  /*display: flex;
  align-items: center;
  margin-bottom: 10px;*/
  text-align: end;
}

.pr-icon {
  color: #C5A055;
  font-size: 26px;
  margin-right: 10px;
  flex-shrink: 0;
}

.pr-title {
  font-size: 15px;
  font-weight: 700;
  color: #1A1A1A;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pr-description {
  color: #555;
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.6;
}

.pr-toggle-btn {
  background-color: #C5A055;
  border-color: #C5A055;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 11px 26px;
  border-radius: 2px;
  transition: background-color 0.2s, border-color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.pr-toggle-btn:hover,
.pr-toggle-btn:focus {
  background-color: #9B7D3C;
  border-color: #9B7D3C;
  color: #fff;
}
.pr-toggle-btn .material-icons { font-size: 18px; }

/* ── Modal overlay ─────────────────────────────────────── */
.pr-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: prFadeIn 0.2s ease;
}

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

.pr-modal {
  background: #fff;
  border-radius: 4px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: prSlideUp 0.25s ease;
}

@keyframes prSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.pr-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  padding: 4px;
  line-height: 1;
  transition: color 0.15s;
}
.pr-modal-close:hover { color: #1A1A1A; }
.pr-modal-close .material-icons { font-size: 22px; display: block; }

.pr-modal-header {
  background: #1A1A1A;
  padding: 24px 28px 20px;
  text-align: center;
}
.pr-modal-header .material-icons {
  font-size: 36px;
  color: #C5A055;
  margin-bottom: 8px;
  display: block;
}
.pr-modal-header h2 {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 6px;
}
.pr-modal-header p {
  color: #C5A055;
  font-size: 13px;
  margin: 0;
  font-style: italic;
}

/* ── Form inside modal ─────────────────────────────────── */
.pr-form {
  padding: 24px 28px;
}

.pr-form .form-group {
  margin-bottom: 16px;
}

.pr-form label {
  font-size: 12px;
  font-weight: 700;
  color: #1A1A1A;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: block;
}

.pr-req { color: #C5A055; }

.pr-form .form-control {
  border: 1px solid #ddd;
  border-radius: 2px;
  padding: 9px 13px;
  font-size: 14px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pr-form .form-control:focus {
  border-color: #C5A055;
  box-shadow: 0 0 0 3px rgba(197, 160, 85, 0.18);
  outline: none;
}

.pr-qty-input { max-width: 100px; }

.pr-modal-actions {
  /*display: flex;*/
  gap: 10px;
  margin-top: 20px;
}

.pr-submit-btn {
  flex: 1;
  background-color: #C5A055;
  border-color: #C5A055;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 12px 20px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.2s;
}
.pr-submit-btn:hover  { background-color: #9B7D3C; border-color: #9B7D3C; color: #fff; }
.pr-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.pr-submit-btn .material-icons { font-size: 16px; }

.pr-cancel-btn {
  background: transparent;
  border: 1px solid #ddd;
  color: #777;
  font-size: 13px;
  padding: 12px 20px;
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.pr-cancel-btn:hover { border-color: #1A1A1A; color: #1A1A1A; }

/* ── Response messages ─────────────────────────────────── */
.pr-message {
  margin: 0 28px 20px;
  padding: 13px 16px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pr-success {
  background: #E8F5E9;
  border: 1px solid #4CAF50;
  color: #2E7D32;
}
.pr-error {
  background: #FFEBEE;
  border: 1px solid #EF5350;
  color: #C62828;
}

/* ── My Reservations page ──────────────────────────────── */
.pr-my-reservations { max-width: 860px; }

.pr-reservation-card {
  background: #fff;
  border: 1px solid #e8e0d0;
  border-left: 4px solid #C5A055;
  border-radius: 4px;
  padding: 18px 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: box-shadow 0.2s;
}
.pr-reservation-card:hover { box-shadow: 0 4px 16px rgba(197,160,85,0.12); }

.pr-res-product { flex: 1; }
.pr-res-product strong { font-size: 15px; color: #1A1A1A; display: block; margin-bottom: 4px; }
.pr-res-product span  { font-size: 12px; color: #888; }

.pr-res-qty {
  font-size: 13px;
  color: #555;
  text-align: center;
  min-width: 60px;
}
.pr-res-qty strong { display: block; font-size: 20px; color: #C5A055; line-height: 1; }

.pr-res-status .badge {
  font-size: 11px;
  padding: 5px 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.badge-pending   { background: #FFF3E0; color: #E65100; border: 1px solid #FFCC80; }
.badge-notified  { background: #E8F5E9; color: #2E7D32; border: 1px solid #A5D6A7; }
.badge-cancelled { background: #EEEEEE; color: #616161; border: 1px solid #BDBDBD; }
.badge-converted { background: #E3F2FD; color: #1565C0; border: 1px solid #90CAF9; }

/* ── Customer account link ─────────────────────────────── */
#progetto-reservations-link .link-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
#progetto-reservations-link .material-icons {
  color: #C5A055;
  font-size: 36px;
}
#progetto-reservations-link:hover .material-icons { color: #9B7D3C; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 543px) {
  .progetto-reservation-block { padding: 15px; margin: 15px 0; }
  .pr-title { font-size: 13px; }
  .pr-toggle-btn { width: 100%; justify-content: center; padding: 13px; }
  .pr-modal { max-width: 100%; margin: 0; border-radius: 0; }
  .pr-modal-actions { flex-direction: column; }
  .pr-reservation-card { flex-wrap: wrap; }
}
