/* Popup Form — standalone stylesheet */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.popup-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.popup-overlay.active { opacity: 1; visibility: visible; }

.popup-form {
  width: 580px;
  max-width: 100%;
  max-height: 93vh;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  transform: translateY(24px) scale(.97);
  transition: transform .35s ease;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.popup-overlay.active .popup-form { transform: translateY(0) scale(1); }

.popup-header {
  background: #4d2a16;
  color: #fff;
  padding: 16px 20px 12px;
  position: relative;
  flex-shrink: 0;
}

.popup-logo {
  width: 30px; height: 30px;
  border: 1px solid rgba(255,255,255,.4);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px; font-size: 11px; font-weight: bold;
}

.close-btn {
  position: absolute; right: 16px; top: 12px;
  background: none; border: none;
  color: #bfaea1; font-size: 24px; cursor: pointer;
  transition: color .25s;
}
.close-btn:hover { color: #fff; }

.popup-header h2 {
  font-size: 18px; line-height: 1.25; margin-top: 14px; margin-bottom: 2px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif; color: #fff;
}
.popup-header p { color: #d6c8bf; font-size: 11px; margin-bottom: 0; }

.popup-body {
  padding: 20px 28px 22px;
  overflow-y: auto;
  flex: 1;
}

.popup-body::-webkit-scrollbar { width: 5px; }
.popup-body::-webkit-scrollbar-track { background: transparent; }
.popup-body::-webkit-scrollbar-thumb { background: #d6c8bf; border-radius: 10px; }
.popup-body::-webkit-scrollbar-thumb:hover { background: #c36d2d; }

@supports (scrollbar-color: auto) {
  .popup-body { scrollbar-color: #d6c8bf transparent; scrollbar-width: thin; }
}

.popup-row { display: flex; gap: 12px; }

.form-group { flex: 1; margin-bottom: 14px; }
.form-group.full { width: 100%; }

label {
  display: block; font-size: 12px; color: #7A6F65;
  margin-bottom: 6px; font-weight: 600; letter-spacing: 0;
}

input, select, textarea {
  width: 100%;
  border: 1px solid #ece5dd; border-radius: 10px;
  padding: 10px 14px; font-size: 14px;
  outline: none;   background: rgba(250,246,241,.5);
  font-family: inherit; color: #1c1916;
  transition: all .25s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: #d97447; background: #fff;
  box-shadow: 0 0 0 4px rgba(217,116,71,.18);
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237b736c' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.chip-options { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { cursor: pointer; display: inline-flex; align-items: center; }
.chip input { display: none; }
.chip span {
  border: 1px solid #ece5dd;   background: rgba(250,246,241,.5);
  border-radius: 8px; padding: 8px 14px;
  font-weight: 600; font-size: 12px; color: #1c1916;
  transition: .25s;
}
.chip input:checked + span {
  background: #B8622A; color: #fff; border-color: #B8622A;
}
.chip:hover span { border-color: #B8622A; }

input::placeholder, select::placeholder, textarea::placeholder { font-size: 13px; color: #7A6F6580; }

textarea { height: 60px; resize: none; }

.seat-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.seat-buttons button {
  border: 1px solid #ece5dd;   background: rgba(250,246,241,.5);
  border-radius: 8px; padding: 8px 14px;
  cursor: pointer; font-weight: 600; font-size: 12px; color: #1c1916;
  transition: .3s;
}
.seat-buttons button:hover { border-color: #d97447; }
.seat-buttons .active { background: #B8622A; color: #fff; border-color: #B8622A; }

.submit-btn {
  width: 100%;
  background: #B8622A; color: #fff;
  border: none; border-radius: 10px;
  padding: 12px; font-size: 13px;
  letter-spacing: 1.5px; font-weight: 700;
  margin-top: 4px; cursor: pointer;
  transition: background .3s, transform .3s;
}
.submit-btn:hover { background: #c25e35; transform: translateY(-2px); }

.popup-status { margin-top: 10px; font-size: .82rem; text-align: center; }

/* Thank You Screen */
.thankyou { text-align: center; padding: 30px 10px; }
.thankyou-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: #B8622A; color: #fff; font-size: 28px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.thankyou h3 {
  font-family: Georgia, serif; font-size: 22px; color: #1c1916;
  margin-bottom: 8px;
}
.thankyou p {
  font-size: 14px; color: #6e665e; margin-bottom: 20px;
}
.thankyou-contact {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.thankyou-contact a {
  font-size: 14px; font-weight: 600; color: #1c1916;
  text-decoration: none;
}
.thankyou-contact a:hover { color: #B8622A; }

.popup-footer {
  margin-top: 12px;
  border-top: 1px solid #e7e7e7;
  padding-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.footer-item { color: #777; font-size: 10px; line-height: 1.4; }

body.popup-open { overflow: hidden; }

@media (max-width: 768px) {
  .popup-form { width: 95%; max-height: 95vh; }
  .popup-row { flex-direction: column; }
  .popup-footer { grid-template-columns: 1fr; }
  .popup-header h2 { font-size: 18px; }
}
