/* ── BOOKING MODAL STYLE ── */
.booking-modal {
  position: fixed;
  inset: 0;
  background: rgba(13, 26, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.booking-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.booking-modal-content {
  background: #0f2116;
  border: 1.5px solid var(--gold);
  border-radius: 16px;
  padding: 40px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

/* Custom premium scrollbar for the modal */
.booking-modal-content::-webkit-scrollbar {
  width: 6px;
}
.booking-modal-content::-webkit-scrollbar-track {
  background: rgba(13, 26, 18, 0.3);
  border-radius: 8px;
}
.booking-modal-content::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 8px;
}
.booking-modal-content::-webkit-scrollbar-thumb:hover {
  background: #e0bc5a;
}

.booking-modal.show .booking-modal-content {
  transform: scale(1);
}

.booking-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: transparent;
  border: none;
  color: rgba(247, 242, 232, 0.6);
  font-size: 28px;
  cursor: pointer;
  transition: color 0.3s;
}

.booking-close:hover {
  color: var(--gold);
}

.booking-header {
  margin-bottom: 28px;
  text-align: center;
}

.booking-modal-title {
  font-family: var(--display);
  font-size: 32px;
  color: var(--gold);
  font-weight: 300;
  letter-spacing: 0.05em;
}

.booking-modal-subtitle {
  font-size: 12px;
  color: var(--seafoam);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* ── FORM ELEMENTS ── */
.booking-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-group label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(247, 242, 232, 0.7);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-input {
  background: rgba(13, 26, 18, 0.6);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--ivory);
  font-family: var(--body);
  font-size: 14px;
  font-weight: 300;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(20, 40, 28, 0.7);
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.15);
}

.form-input::placeholder {
  color: rgba(247, 242, 232, 0.3);
}

/* Error State */
.form-group.has-error .form-input {
  border-color: var(--rust);
  box-shadow: 0 0 8px rgba(139, 58, 42, 0.2);
}

.error-msg {
  font-size: 11px;
  color: #ff6b6b;
  margin-top: 4px;
  display: none;
}

.form-group.has-error .error-msg {
  display: block;
}

/* Submit Button */
.btn-submit {
  background: var(--gold);
  color: var(--ink);
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.btn-submit:hover {
  background: #e0bc5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201, 168, 76, 0.25);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit:disabled {
  background: rgba(201, 168, 76, 0.4);
  color: rgba(13, 26, 18, 0.5);
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.submit-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(13, 26, 18, 0.2);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: booking-spin 0.8s linear infinite;
  display: none;
}

.btn-submit.loading .submit-spinner {
  display: block;
}

.btn-submit.loading span {
  opacity: 0.7;
}

/* ── SUCCESS STATE ── */
.booking-success-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 0;
  display: none;
}

.success-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(200, 230, 212, 0.1);
  border: 1.5px solid var(--seafoam);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--seafoam);
  margin-bottom: 24px;
  animation: success-pop 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.success-icon-wrap svg {
  width: 32px;
  height: 32px;
  stroke: var(--seafoam);
}

.success-title {
  font-family: var(--display);
  font-size: 26px;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 400;
}

.success-desc {
  font-size: 14px;
  color: rgba(247, 242, 232, 0.7);
  line-height: 1.6;
  max-width: 360px;
  margin-bottom: 28px;
}

.btn-success-close {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  padding: 10px 24px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-success-close:hover {
  background: var(--gold);
  color: var(--ink);
}

/* Animations */
@keyframes booking-spin {
  to { transform: rotate(360deg); }
}

@keyframes success-pop {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Media Queries */
@media (max-width: 500px) {
  .booking-modal-content {
    padding: 30px 20px;
    max-height: 92vh;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* ── UPGRADE: BOOKING TYPE SELECTOR & DYNAMIC FIELDS ── */
.booking-type-selector {
  display: flex;
  background: rgba(13, 26, 18, 0.8);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 8px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 8px;
}

.type-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: rgba(247, 242, 232, 0.6);
  padding: 8px 4px;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.type-tab:hover {
  color: var(--gold);
}

.type-tab.active {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 4px 10px rgba(201, 168, 76, 0.15);
}

.dynamic-fields-section {
  border-left: 2px solid var(--gold);
  padding-left: 16px;
  margin: 6px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeInFields 0.4s ease both;
}

@keyframes fadeInFields {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Custom dropdown style for select elements */
select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A84C' 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 16px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

select.form-input option {
  background: #0f2116;
  color: var(--ivory);
  padding: 10px;
}

/* Checkbox Style */
.form-checkbox-group {
  margin-top: 4px;
}

.checkbox-container {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 28px;
  cursor: pointer;
  font-size: 13px;
  color: rgba(247, 242, 232, 0.85);
  user-select: none;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 18px;
  width: 18px;
  background-color: rgba(13, 26, 18, 0.6);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.checkbox-container:hover input ~ .checkmark {
  border-color: var(--gold);
}

.checkbox-container input:checked ~ .checkmark {
  background-color: var(--gold);
  border-color: var(--gold);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 6px;
  top: 2px;
  width: 4px;
  height: 9px;
  border: solid var(--ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Services Checklist Grid */
.services-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: rgba(13, 26, 18, 0.4);
  border: 1px solid rgba(201, 168, 76, 0.1);
  border-radius: 8px;
  padding: 14px;
  margin-top: 2px;
}

.vat-details-block {
  border-top: 1px dashed rgba(201, 168, 76, 0.2);
  margin-top: 12px;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeInFields 0.3s ease both;
}

/* Extra media query tweak */
@media (max-width: 500px) {
  .services-checklist {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .booking-type-selector {
    flex-wrap: wrap;
  }
  .type-tab {
    flex: 1 1 45%;
    padding: 6px 2px;
  }
}
