/* ── RV Booking — Óticas Redvision ───────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;600;700&family=Playfair+Display:wght@700&display=swap');

#rv-booking-wrap {
  font-family: 'DM Sans', sans-serif;
  color: #1A1A1A;
  max-width: 480px;
  margin: 0 auto;
}

/* Fields */
.rv-field {
  margin-bottom: 18px;
}
.rv-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #9B1C1C;
  margin-bottom: 6px;
}
.rv-req { color: #9B1C1C; }

#rv-booking-wrap select,
#rv-booking-wrap input[type="text"],
#rv-booking-wrap input[type="tel"] {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid #E0E0E0;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: #1A1A1A;
  background: #FAFAFA;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239B1C1C' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  transition: border-color .15s;
  cursor: pointer;
}
#rv-booking-wrap input[type="text"],
#rv-booking-wrap input[type="tel"] {
  background-image: none;
  padding-right: 16px;
  cursor: text;
}
#rv-booking-wrap select:focus,
#rv-booking-wrap input:focus {
  border-color: #9B1C1C;
  outline: none;
  background-color: #fff;
}
#rv-booking-wrap select:disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* Submit button */
.rv-btn-submit {
  width: 100%;
  background: #9B1C1C;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 15px 24px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  margin-top: 8px;
}
.rv-btn-submit:hover  { background: #7B1515; }
.rv-btn-submit:disabled { background: #ccc; cursor: not-allowed; }

/* Messages */
.rv-msg {
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 12px;
}
.rv-error   { background: #FFF0F0; color: #9B1C1C; border: 1.5px solid #f5c6c6; }

/* Success screen */
#rv-success {
  text-align: center;
  padding: 32px 16px;
}
.rv-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #9B1C1C;
  color: #fff;
  font-size: 32px;
  line-height: 64px;
  margin: 0 auto 16px;
}
#rv-success h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: #9B1C1C;
  margin: 0 0 8px;
}
#rv-success p {
  color: #555;
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.6;
}
.rv-btn-whatsapp {
  display: inline-block;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  padding: 13px 28px;
  font-weight: 700;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  transition: background .2s;
}
.rv-btn-whatsapp:hover { background: #1EAD52; color: #fff; }

/* ── Calendar ───────────────────────────────────────── */
#rv-calendar {
  border: 1.5px solid #E0E0E0 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  background: #fff !important;
  user-select: none !important;
}
#rv-cal-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: #9B1C1C !important;
  padding: 10px 14px !important;
}
#rv-cal-nav span {
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  text-transform: capitalize !important;
}
#rv-cal-nav button {
  background: transparent !important;
  border: none !important;
  color: #fff !important;
  font-size: 24px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  padding: 0 8px !important;
  box-shadow: none !important;
}
#rv-cal-nav button:disabled { opacity: .3 !important; cursor: default !important; }

/* Table */
#rv-cal-table {
  width: 100% !important;
  border-collapse: collapse !important;
  table-layout: fixed !important;
}
#rv-cal-table thead tr {
  background: #F5F5F5 !important;
}
#rv-cal-table thead th {
  text-align: center !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #9B1C1C !important;
  padding: 7px 0 !important;
  text-transform: uppercase !important;
  border-bottom: 1px solid #E0E0E0 !important;
  width: 14.28% !important;
}
#rv-cal-table tbody td {
  text-align: center !important;
  padding: 3px !important;
  width: 14.28% !important;
  border: none !important;
  background: transparent !important;
}
/* Day circles */
.rvc {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  font-family: 'DM Sans', sans-serif !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  border: none !important;
  margin: 0 auto !important;
}
.rvc-past { color: #D0D0D0 !important; }
.rvc-off  { color: #C8C8C8 !important; }
.rvc-load { color: #D0D0D0 !important; animation: rv-pulse 1.2s infinite; }
.rvc-ok {
  background: #FFF0F0 !important;
  color: #9B1C1C !important;
  border: 1.5px solid #f5c6c6 !important;
  transition: background .15s !important;
}
.rvc-ok:hover {
  background: #9B1C1C !important;
  color: #fff !important;
  border-color: #9B1C1C !important;
}
.rvc-sel {
  background: #9B1C1C !important;
  color: #fff !important;
  border: 1.5px solid #7B1515 !important;
}

/* Loading skeleton pulse */
@keyframes rv-pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .4; }
}
.rv-loading { animation: rv-pulse 1.2s infinite; pointer-events: none; }
