/* =========================================================
   KRO CAFÉ — RESERVATIONS
   PREMIUM EDITORIAL RESERVATION EXPERIENCE
========================================================= */


/* =========================================================
   PAGE FOUNDATION
========================================================= */

body {
  background: #0A0908;
  color: #F2EBDD;
}

.page-shell {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(177, 138, 76, 0.08),
      transparent 32%
    ),
    #0A0908;
}


/* =========================================================
   RESERVATION MAIN
========================================================= */

main#top {
  position: relative;
  overflow: hidden;
  padding-top: 7rem;
  padding-bottom: 5rem;

  background:
    linear-gradient(
      180deg,
      #0A0908 0%,
      #0F0C09 18%,
      #17100C 42%,
      #F2EBDD 42.1%,
      #F2EBDD 100%
    );
}


/* =========================================================
   ATMOSPHERIC BACKGROUND DETAIL
========================================================= */

main#top::before {
  content: "";
  position: absolute;
  top: 0;
  right: -12rem;
  width: 42rem;
  height: 42rem;

  background:
    radial-gradient(
      circle,
      rgba(177, 138, 76, 0.13) 0%,
      rgba(177, 138, 76, 0.04) 35%,
      transparent 70%
    );

  pointer-events: none;
}

main#top::after {
  content: "";
  position: absolute;
  left: -18rem;
  top: 28rem;
  width: 42rem;
  height: 42rem;

  background:
    radial-gradient(
      circle,
      rgba(10, 9, 8, 0.07),
      transparent 68%
    );

  pointer-events: none;
}


/* =========================================================
   MAIN CONTAINER
========================================================= */

main#top > section {
  position: relative;
  z-index: 2;
}


/* =========================================================
   INTRODUCTION
========================================================= */

main#top > section > .max-w-7xl {
  position: relative;
}


/* =========================================================
   EYEBROW
========================================================= */

main#top .eyebrow {
  margin: 0;
  color: #B9904E;

  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  line-height: 1.4;
}


/* =========================================================
   INTRO RESERVATION DETAILS
========================================================= */

.reservation-detail {
  color: #D8C19A;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

.reservation-status {
  color: #B9904E;
  font-size: 0.58rem;
}


/* =========================================================
   RULES
========================================================= */

.rule {
  width: 100%;
  height: 1px;

  background:
    linear-gradient(
      90deg,
      rgba(185, 144, 78, 0.45),
      rgba(185, 144, 78, 0.14),
      rgba(185, 144, 78, 0.45)
    );
}


/* =========================================================
   FORM + FEATURE GRID
========================================================= */

main#top .grid {
  position: relative;
}


/* =========================================================
   RESERVATION FORM CARD
========================================================= */

.form-card {
  position: relative;
  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      #F7F0E4 0%,
      #F2EBDD 52%,
      #EDE2D0 100%
    );

  border: 1px solid rgba(185, 144, 78, 0.28);

  color: #1C120D;

  box-shadow:
    0 25px 70px rgba(10, 9, 8, 0.18),
    0 8px 25px rgba(10, 9, 8, 0.08);

  transition:
    box-shadow 400ms ease,
    transform 400ms ease;
}

.form-card::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.34),
      transparent 35%
    );

  pointer-events: none;
}

.form-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;

  background:
    linear-gradient(
      180deg,
      #B9904E,
      #D8C19A,
      #B9904E
    );
}

.form-card > form {
  position: relative;
  z-index: 2;
}


/* =========================================================
   FORM HEADER
========================================================= */

.form-card h1 {
  color: #1C120D;

  font-family:
    "Playfair Display",
    Georgia,
    serif;

  font-weight: 600;
  letter-spacing: -0.025em;
}

.form-card [data-lucide="calendar-check"] {
  width: 22px;
  height: 22px;
  stroke-width: 1.25;
}


/* =========================================================
   SECTION HEADINGS
========================================================= */

.section-heading {
  color: #6A432B;

  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.5;
}


/* =========================================================
   FIELD LABELS
========================================================= */

.field-label {
  color: #5B3927;

  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.4;
}


/* =========================================================
   FIELD CONTROLS
========================================================= */

.field-control {
  width: 100%;

  min-height: 2.9rem;

  padding:
    0.72rem
    0.8rem;

  border:
    1px solid
    rgba(28, 18, 13, 0.18);

  border-radius: 0;

  background:
    rgba(255, 255, 255, 0.48);

  color: #1C120D;

  font-family:
    "Montserrat",
    Arial,
    sans-serif;

  font-size: 0.72rem;
  font-weight: 500;

  outline: none;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45);

  transition:
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.field-control:hover {
  border-color:
    rgba(185, 144, 78, 0.5);

  background:
    rgba(255, 255, 255, 0.65);
}

.field-control:focus {
  border-color: #B9904E;

  background: #FFFDF8;

  box-shadow:
    0 0 0 3px rgba(185, 144, 78, 0.11);
}

.field-control::placeholder {
  color: #8B7969;
  opacity: 0.8;
}


/* =========================================================
   DATE / TIME CONTROLS
========================================================= */

input[type="date"],
input[type="time"] {
  color-scheme: light;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  opacity: 0.65;
  cursor: pointer;
  transition: opacity 180ms ease;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}


/* =========================================================
   SELECT CONTROLS
========================================================= */

select.field-control {
  cursor: pointer;

  appearance: none;

  background-image:
    linear-gradient(
      45deg,
      transparent 50%,
      #8B6A3E 50%
    ),
    linear-gradient(
      135deg,
      #8B6A3E 50%,
      transparent 50%
    );

  background-position:
    calc(100% - 14px) 50%,
    calc(100% - 9px) 50%;

  background-size:
    5px 5px,
    5px 5px;

  background-repeat: no-repeat;

  padding-right: 2.2rem;
}


/* =========================================================
   TEXTAREA
========================================================= */

textarea.field-control {
  min-height: 6rem;
  line-height: 1.7;
}


/* =========================================================
   FIELD ERRORS
========================================================= */

.field-error {
  min-height: 0.9rem;
  margin: 0.35rem 0 0;

  color: #9A3E2E;

  font-size: 0.57rem;
  font-weight: 600;
  line-height: 1.45;
}

.field-control.field-invalid {
  border-color: #A94E3C;

  background:
    rgba(169, 78, 60, 0.035);

  box-shadow:
    0 0 0 3px rgba(169, 78, 60, 0.07);
}


/* =========================================================
   FORM MESSAGES
========================================================= */

.form-message {
  display: none;

  padding: 0.85rem 1rem;

  border-left: 2px solid;

  font-size: 0.65rem;
  line-height: 1.6;
}

.form-message.error {
  border-color: #A94E3C;
  background: rgba(169, 78, 60, 0.06);
  color: #7E3327;
}

.form-message.success {
  border-color: #7C8A55;
  background: rgba(124, 138, 85, 0.08);
  color: #536039;
}

.form-message.is-visible {
  display: block;
}


/* =========================================================
   GOLD SUBMIT BUTTON
========================================================= */

.gold-button {
  position: relative;
  overflow: hidden;

  border: 1px solid #B9904E;

  background:
    linear-gradient(
      135deg,
      #B9904E,
      #C8A261
    );

  color: #0A0908;

  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.18em;

  box-shadow:
    0 8px 20px rgba(10, 9, 8, 0.13);

  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.gold-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.28),
      transparent
    );

  transform: skewX(-20deg);

  transition: left 600ms ease;
}

.gold-button:hover {
  transform: translateY(-1px);

  background:
    linear-gradient(
      135deg,
      #C8A261,
      #D5B274
    );

  box-shadow:
    0 12px 28px rgba(10, 9, 8, 0.18);
}

.gold-button:hover::before {
  left: 140%;
}

.gold-button:active {
  transform: translateY(0);
}

.gold-button:disabled {
  cursor: wait;
  opacity: 0.6;
  transform: none;
  box-shadow: none;
}


/* =========================================================
   FOCUS RING
========================================================= */

.focus-ring:focus-visible {
  outline: 2px solid #B9904E;
  outline-offset: 3px;
}


/* =========================================================
   FEATURE IMAGE
========================================================= */

.image-feature {
  position: relative;

  min-height: 100%;

  border-color:
    rgba(185, 144, 78, 0.35);

  background:
    #0A0908;

  box-shadow:
    0 25px 70px rgba(10, 9, 8, 0.22);
}

.image-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;

  background:
    linear-gradient(
      180deg,
      rgba(10, 9, 8, 0.22) 0%,
      rgba(10, 9, 8, 0.05) 35%,
      rgba(10, 9, 8, 0.72) 100%
    );

  pointer-events: none;
}

.image-feature::after {
  content: "";
  position: absolute;
  inset: 1rem;

  z-index: 3;

  border:
    1px solid
    rgba(216, 193, 154, 0.18);

  pointer-events: none;
}

.image-feature img {
  filter:
    saturate(0.78)
    contrast(1.08)
    brightness(0.72);

  transform: scale(1.015);

  transition:
    transform 900ms cubic-bezier(.2,.65,.25,1),
    filter 700ms ease;
}

.image-feature:hover img {
  transform: scale(1.045);

  filter:
    saturate(0.9)
    contrast(1.06)
    brightness(0.78);
}


/* =========================================================
   FEATURE CONTENT
========================================================= */

.image-feature > div {
  position: relative;
  z-index: 4;
}

.image-feature h2 {
  color: #F2EBDD;

  font-family:
    "Playfair Display",
    Georgia,
    serif;

  font-weight: 500;
  letter-spacing: -0.025em;
}

.image-feature p {
  color: #D8C19A;
}


/* =========================================================
   FEATURE LABEL
========================================================= */

.image-feature .self-start {
  position: relative;
  z-index: 5;

  color: #D8C19A;

  background:
    rgba(10, 9, 8, 0.72);

  backdrop-filter: blur(8px);

  border-color:
    rgba(210, 174, 112, 0.5);

  font-size: 0.55rem;
}


/* =========================================================
   FORM CARD ANIMATION
========================================================= */

.form-card,
.image-feature {
  animation:
    reservationReveal 700ms cubic-bezier(.2,.65,.25,1) both;
}

.image-feature {
  animation-delay: 100ms;
}

@keyframes reservationReveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================================================
   DESKTOP REFINEMENT
========================================================= */

@media (min-width: 1024px) {

  main#top {
    padding-bottom: 7rem;
  }

  main#top > section {
    padding-bottom: 2rem;
  }

  .form-card {
    min-height: 100%;
  }

  .image-feature {
    min-height: 700px;
  }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1023px) {

  main#top {
    background:
      linear-gradient(
        180deg,
        #0A0908 0%,
        #17100C 18%,
        #F2EBDD 18.1%,
        #F2EBDD 100%
      );
  }

  .image-feature {
    min-height: 460px;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

  main#top {
    padding-top: 6.5rem;
    padding-bottom: 3.5rem;

    background:
      linear-gradient(
        180deg,
        #0A0908 0%,
        #17100C 14%,
        #F2EBDD 14.1%,
        #F2EBDD 100%
      );
  }

  main#top > section {
    padding-bottom: 1rem;
  }

  .reservation-detail {
    font-size: 0.67rem;
    line-height: 1.7;
  }

  .reservation-status {
    font-size: 0.55rem;
  }

  .form-card {
    padding: 1.15rem !important;
  }

  .form-card h1 {
    font-size: 1.55rem;
  }

  .field-control {
    min-height: 2.8rem;
    font-size: 0.68rem;
  }

  .image-feature {
    min-height: 430px;
  }

  .image-feature::after {
    inset: 0.8rem;
  }

  .image-feature h2 {
    font-size: 2rem;
  }

}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 390px) {

  main#top {
    padding-top: 6rem;
  }

  .form-card {
    padding: 1rem !important;
  }

  .form-card h1 {
    font-size: 1.4rem;
  }

  .section-heading {
    font-size: 0.55rem;
  }

  .field-label {
    font-size: 0.54rem;
  }

  .field-control {
    font-size: 0.65rem;
  }

  .image-feature {
    min-height: 390px;
  }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

}