@charset "UTF-8";
/* ==========================================================================
   Feeria  -  rezerwacje.css
   ========================================================================== */

.rez-main {
  padding-top: var(--header-h);
  background: var(--clr-bg);
  min-height: 100vh;
}

/* ---- Layout ---- */
.rez-wrap {
  padding-block: clamp(3rem, 7vh, 5rem) clamp(5rem, 12vh, 9rem);
  max-width: 720px;
}

/* ---- Form card ---- */
.rez-form-card {
  background: var(--clr-bg-card);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(42, 37, 32, 0.10);
  padding: clamp(2rem, 5vw, 3rem);
}

.rez-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* ---- Two-column row ---- */
.rez-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

/* ---- Fields ---- */
.rez-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rez-label {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--clr-text-muted);
}

.rez-hint {
  font-size: 0.6rem;
  color: var(--clr-text-faint);
  letter-spacing: 0.03em;
}

.rez-input {
  width: 100%;
  font-family: var(--ff-mono);
  font-size: 0.85rem;
  color: var(--clr-text);
  background: #fff;
  border: none;
  padding: 0.85rem 1.25rem;
  outline: none;
  border-radius: 100px;
  transition: box-shadow var(--transition);
  appearance: none;
}

.rez-input:focus {
  box-shadow: 0 0 0 2px rgba(208, 97, 51, 0.35);
}

.rez-input[readonly] {
  cursor: pointer;
}

.rez-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a89484' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  padding-right: 3rem;
  cursor: pointer;
}

.rez-textarea {
  border-radius: 16px;
  resize: vertical;
  min-height: 110px;
  line-height: 1.65;
}

/* ---- Note ---- */
.rez-note {
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  color: var(--clr-text-faint);
  line-height: 1.85;
  letter-spacing: 0.04em;
  padding-top: 0.25rem;
}

/* ---- Error ---- */
.rez-error {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  color: #c0392b;
  background: #fdf2f2;
  border: 1px solid #f5c6c6;
  padding: 0.6rem 1.25rem;
  border-radius: 100px;
}
.rez-error[hidden] { display: none; }

/* ---- Submit ---- */
.rez-submit {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--clr-accent);
  border: none;
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: background var(--transition);
  border-radius: 100px;
  width: 100%;
  margin-top: 0.25rem;
}

.rez-submit:hover   { background: var(--clr-accent-dark); }
.rez-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---- Success state ---- */
.rez-success {
  text-align: center;
  padding: clamp(3rem, 8vh, 6rem) 2rem;
  background: var(--clr-bg-card);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(42, 37, 32, 0.10);
}

.rez-success[hidden] { display: none; }

.rez-success__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(45, 106, 79, 0.1);
  border: 2px solid #2d6a4f;
  color: #2d6a4f;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.rez-success__title {
  font-family: var(--ff-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--clr-text);
  margin-bottom: 1rem;
}

.rez-success__text {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  color: var(--clr-text-muted);
  line-height: 1.8;
}

.rez-success__text a {
  color: var(--clr-accent);
}

/* ---- Kalendarz (wybór daty) ---- */
.rez-field--date {
  position: relative;
}

.rez-calendar {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  z-index: 20;
  width: 300px;
  max-width: calc(100vw - 2.5rem);
  background: var(--clr-white);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 1rem;
}

.rez-calendar[hidden] { display: none; }

.rez-calendar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.rez-calendar__month {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--clr-text);
  text-transform: capitalize;
}

.rez-calendar__nav {
  width: 28px;
  height: 28px;
  border: 1px solid var(--clr-border);
  border-radius: 50%;
  background: none;
  color: var(--clr-text-muted);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.rez-calendar__nav:hover:not(:disabled) {
  background: var(--clr-accent-pale);
  color: var(--clr-accent-dark);
}

.rez-calendar__nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.rez-calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 0.25rem;
}

.rez-calendar__weekdays span {
  font-family: var(--ff-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--clr-text-faint);
}

.rez-calendar__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.rez-cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  color: var(--clr-text);
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.rez-cal-day--blank { cursor: default; }

.rez-cal-day:hover:not([disabled]) {
  background: var(--clr-accent-pale);
}

.rez-cal-day--today {
  color: var(--clr-accent);
  font-weight: 600;
}

.rez-cal-day--selected {
  background: var(--clr-accent);
  color: #fff;
}

.rez-cal-day--disabled {
  color: var(--clr-text-faint);
  cursor: not-allowed;
  opacity: 0.45;
}

.rez-cal-day--excluded {
  background: var(--clr-bg-alt);
  text-decoration: line-through;
}

.rez-calendar__legend {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  font-family: var(--ff-mono);
  font-size: 0.56rem;
  letter-spacing: 0.04em;
  color: var(--clr-text-faint);
}

.rez-calendar__legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--clr-bg-alt);
  border: 1px solid var(--clr-border);
  flex-shrink: 0;
}

/* ---- Mobile ---- */
@media (max-width: 640px) {
  .rez-row {
    grid-template-columns: 1fr;
  }

  .rez-calendar {
    left: 50%;
    transform: translateX(-50%);
  }
}
