/**
 * Venus Infra - "Book a Meeting" Modal Styles
 * Replicating reference mockup:
 * - Floating white card with soft rounded corners
 * - Top-right circular close button with white ring
 * - 2-column clean field grid
 * - Styled selects with floating titles (Choose City, Start Construction)
 * - Radio options for plot ownership
 * - Checkbox for Privacy Policy & Terms agreement
 * - Peach-orange "Book a meeting" CTA button (#fdbe87 -> #F15A2A hover)
 * - Mobile responsive stack
 */

.booking-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.booking-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.booking-modal-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  width: 100%;
  max-width: 680px;
  position: relative;
  padding: 44px 44px 38px 44px;
  box-sizing: border-box;
  transform: scale(0.95) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.booking-modal-overlay.is-active .booking-modal-card {
  transform: scale(1) translateY(0);
}

/* Circular Close Button at Top-Right */
.booking-modal-close {
  position: absolute;
  top: -42px;
  right: 0px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #242424;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  padding: 0;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.booking-modal-close:hover {
  transform: scale(1.08);
  background: #000000;
}

.booking-modal-close:focus-visible {
  outline: 2px solid #F15A2A;
  outline-offset: 2px;
}

/* Form Grid */
.booking-modal-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  margin: 0;
}

.booking-field {
  position: relative;
  width: 100%;
}

/* Text Inputs */
.booking-input {
  width: 100%;
  height: 50px;
  border: 1.2px solid #d5d9dd;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 15px;
  color: #171717;
  background: #ffffff;
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.booking-input::placeholder {
  color: #8c9ba5;
  font-size: 14.5px;
}

.booking-input:focus {
  border-color: #F15A2A;
  outline: none;
  box-shadow: 0 0 0 3px rgba(241, 90, 42, 0.16);
}

/* Custom Select Box with Embedded Floating Notched Label */
.booking-select-box {
  border: 1.2px solid #d5d9dd;
  border-radius: 8px;
  padding: 0 36px 0 16px;
  height: 50px;
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.booking-select-box:focus-within {
  border-color: #F15A2A;
  box-shadow: 0 0 0 3px rgba(241, 90, 42, 0.16);
}

.booking-select-label {
  position: absolute;
  top: -8px;
  left: 12px;
  background: #ffffff;
  padding: 0 5px;
  font-size: 11.5px;
  line-height: 1;
  color: #5f6c7b;
  font-weight: 400;
  pointer-events: none;
  z-index: 2;
}

.booking-select {
  border: none;
  background: transparent;
  outline: none;
  padding: 0;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: #0f172a;
  width: 100%;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-family: inherit;
}

.booking-select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Radio Button Row */
.booking-radio-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 0 4px;
  box-sizing: border-box;
}

.booking-radio-title {
  font-size: 14px;
  color: #334155;
  font-weight: 400;
}

.booking-radio-options {
  display: flex;
  align-items: center;
  gap: 16px;
}

.booking-radio-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 14px;
  color: #334155;
  user-select: none;
  position: relative;
}

.booking-radio-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.booking-radio-custom {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #8c9ba5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: border-color 0.2s;
  flex-shrink: 0;
}

.booking-radio-input:checked + .booking-radio-custom {
  border-color: #F15A2A;
}

.booking-radio-input:checked + .booking-radio-custom::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #F15A2A;
}

.booking-radio-input:focus-visible + .booking-radio-custom {
  box-shadow: 0 0 0 3px rgba(241, 90, 42, 0.2);
}

/* Agreement Checkbox Row */
.booking-agreement-row {
  grid-column: 1 / -1;
  margin-top: 4px;
}

/* Validation Error Message */
.booking-modal-error {
  grid-column: 1 / -1;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13.5px;
  text-align: center;
  box-sizing: border-box;
}

.booking-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.booking-checkbox-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.booking-checkbox-custom {
  width: 18px;
  height: 18px;
  border: 1.8px solid #94a3b8;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: all 0.2s;
  background: #ffffff;
  flex-shrink: 0;
}

.booking-checkbox-input:checked + .booking-checkbox-custom {
  background: #F15A2A;
  border-color: #F15A2A;
}

.booking-checkbox-input:checked + .booking-checkbox-custom::after {
  content: '';
  width: 4px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.booking-checkbox-input:focus-visible + .booking-checkbox-custom {
  box-shadow: 0 0 0 3px rgba(241, 90, 42, 0.2);
}

.booking-checkbox-text {
  font-size: 13.5px;
  color: #334155;
  line-height: 1.4;
}

.booking-link {
  color: #F15A2A;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.booking-link:hover {
  text-decoration: underline;
}

/* Submit Button */
.booking-submit-wrap {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.booking-submit-btn {
  min-width: 270px;
  height: 48px;
  border-radius: 10px;
  background: #fdbe87;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 36px;
  box-shadow: 0 4px 14px rgba(253, 190, 135, 0.45);
  transition: background-color 0.25s, transform 0.15s, box-shadow 0.25s;
  font-family: inherit;
}

.booking-submit-btn:hover {
  background: #F15A2A;
  box-shadow: 0 6px 20px rgba(241, 90, 42, 0.4);
  transform: translateY(-1px);
}

.booking-submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(241, 90, 42, 0.3);
}

.booking-submit-btn:focus-visible {
  outline: 2px solid #F15A2A;
  outline-offset: 3px;
}

.booking-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Success View */
.booking-success-view {
  text-align: center;
  padding: 24px 12px;
}

.booking-success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #e6f9ed;
  color: #10b981;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 16px;
}

.booking-success-title {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px 0;
}

.booking-success-desc {
  font-size: 15px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 24px 0;
}

/* Responsive Breakpoints */
@media (max-width: 640px) {
  .booking-modal-overlay {
    padding: 12px;
  }

  .booking-modal-card {
    padding: 32px 18px 24px 18px;
    border-radius: 14px;
  }

  .booking-modal-close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
  }

  .booking-modal-form {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .booking-radio-row {
    height: auto;
    padding: 6px 2px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .booking-submit-btn {
    width: 100%;
    min-width: auto;
  }
}
