:root {
  --mc-booking-brand: #F15D61;
  --mc-booking-brand-hover: #d1494d;
  --mc-booking-bg: #FFFFFF;
  --mc-booking-card-bg: #FFFFFF;
  --mc-booking-text: #332223;
  --mc-booking-text-muted: #7A7A7A;
  --mc-booking-border: #e2e8f0;
  --mc-booking-shadow: 0 10px 30px rgba(51, 34, 35, 0.08);
  --mc-booking-radius: 12px;
}

/* Glassmorphism theme container */
.mc-booking-engine {
  max-width: 860px;
  margin: 40px auto;
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--mc-booking-text);
  line-height: 1.5;
}

.mc-booking-card {
  background: var(--mc-booking-card-bg);
  border: 1px solid var(--mc-booking-border);
  border-radius: var(--mc-booking-radius);
  box-shadow: var(--mc-booking-shadow);
  padding: 40px;
}

/* Progress indicator */
.mc-booking-progress {
  margin-bottom: 40px;
}

.mc-progress-bar {
  background: var(--mc-booking-border);
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 15px;
}

.mc-progress-fill {
  background: linear-gradient(90deg, #F15D61, #332223);
  height: 100%;
  display: block;
  transition: width 0.4s ease;
}

.mc-progress-labels {
  display: flex;
  justify-content: space-between;
}

.mc-progress-labels .step-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--mc-booking-text-muted);
  position: relative;
  transition: color 0.3s ease;
}

.mc-progress-labels .step-label.active {
  color: var(--mc-booking-brand);
}

/* Steps */
.mc-booking-step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--mc-booking-text);
}

.mc-booking-step .step-description {
  color: var(--mc-booking-text-muted);
  margin-bottom: 30px;
  font-size: 15px;
}

/* Step 1: Type Grid */
.mc-type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

@media (max-width: 900px) {
  .mc-type-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .mc-type-grid {
    grid-template-columns: 1fr;
  }
}

.mc-type-card {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(51, 34, 35, 0.08);
  border-radius: 15px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(51, 34, 35, 0.02);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.mc-type-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 15px;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.05));
  -webkit-mask: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff);
  mask-composite: exclude;
  pointer-events: none;
}

.mc-type-card:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(241, 93, 97, 0.06);
  border-color: rgba(241, 93, 97, 0.25);
}

.mc-type-card.selected {
  background: rgba(255, 240, 240, 0.65);
  border-color: var(--mc-booking-brand);
  box-shadow: 0 8px 30px rgba(241, 93, 97, 0.15);
}

.mc-type-card.selected::before {
  background: linear-gradient(135deg, var(--mc-booking-brand), rgba(51, 34, 35, 0.4));
}

.mc-type-card .card-icon {
  width: 52px;
  height: 52px;
  background: rgba(241, 93, 97, 0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.mc-type-card .card-icon svg {
  width: 28px;
  height: 28px;
  transition: all 0.3s ease;
}

/* Ensure dynamic SVG fill default color is styleable or consistent */
.mc-type-card .card-icon svg path,
.mc-type-card .card-icon svg rect,
.mc-type-card .card-icon svg circle {
  transition: fill 0.3s ease;
}

.mc-type-card:hover .card-icon {
  background: rgba(241, 93, 97, 0.1);
  transform: scale(1.08);
}

.mc-type-card.selected .card-icon {
  background: var(--mc-booking-brand);
}

.mc-type-card.selected .card-icon svg {
  fill: #ffffff !important;
}

.mc-type-card.selected .card-icon svg path,
.mc-type-card.selected .card-icon svg rect,
.mc-type-card.selected .card-icon svg circle {
  fill: #ffffff !important;
}

/* Specific cutout styling for our-studio.svg to keep the pin hole visible on active state */
.mc-type-card.selected .card-icon svg circle[cx="256"][cy="165.227"] {
  fill: var(--mc-booking-brand) !important;
}

.mc-type-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: var(--mc-booking-text);
}

.mc-type-card p {
  font-size: 11px;
  color: var(--mc-booking-text-muted);
  line-height: 1.4;
  margin: 0;
}

/* Step 2: Location */
.mc-info-banner {
  background: #fff0f0;
  border-left: 4px solid var(--mc-booking-brand);
  padding: 20px;
  border-radius: 0 8px 8px 0;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 30px;
}

.mc-info-banner .dashicons {
  font-size: 24px;
  width: 24px;
  height: 24px;
  line-height: 24px;
  color: var(--mc-booking-brand);
  margin-top: 2px;
}

.mc-info-banner h4 {
  margin: 0 0 5px 0;
  font-size: 16px;
  font-weight: 700;
}

.mc-info-banner p {
  margin: 0;
  font-size: 14px;
  color: #801c1f;
}

.field-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}

.field-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--mc-booking-border);
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s;
  background: #f8fafc;
}

.field-input:focus {
  outline: none;
  border-color: var(--mc-booking-brand);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(241, 93, 97, 0.15);
}

.field-desc {
  display: block;
  font-size: 12px;
  color: var(--mc-booking-text-muted);
  margin-top: 6px;
}

/* Divider between predefined dropdown and custom text input */
.mc-loc-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 14px;
  color: var(--mc-booking-text-muted);
  font-size: 12px;
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0.03em;
}

.mc-loc-divider::before,
.mc-loc-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--mc-booking-border);
}

/* Step 3: Date & Time Grid */
.mc-datetime-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .mc-datetime-grid {
    grid-template-columns: 1fr;
  }
}

.mc-calendar-container {
  border: 1px solid var(--mc-booking-border);
  border-radius: 12px;
  padding: 20px;
  background: #f8fafc;
}

.mc-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.mc-cal-month-year {
  font-weight: 700;
  font-size: 16px;
}

.mc-cal-nav {
  background: none;
  border: none;
  font-weight: bold;
  cursor: pointer;
  padding: 5px 10px;
  font-size: 16px;
  border-radius: 4px;
  transition: background 0.2s;
}

.mc-cal-nav:hover {
  background: #e2e8f0;
}

.mc-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 600;
  font-size: 12px;
  color: var(--mc-booking-text-muted);
  margin-bottom: 10px;
}

.mc-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.mc-cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
}

.mc-cal-day.empty {
  cursor: default;
}

.mc-cal-day.disabled {
  color: #cbd5e1;
  cursor: not-allowed;
}

.mc-cal-day.active {
  background: #e2e8f0;
}

.mc-cal-day.selected {
  background: var(--mc-booking-brand) !important;
  color: #ffffff !important;
  font-weight: 700;
}

.mc-cal-day:not(.empty):not(.disabled):not(.selected):hover {
  background: #cbd5e1;
}

.mc-slots-container {
  border: 1px solid var(--mc-booking-border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.mc-slots-container h4 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 700;
}

.mc-slots-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  overflow-y: auto;
  max-height: 280px;
  flex-grow: 1;
}

.mc-time-slot {
  background: #f8fafc;
  border: 1px solid var(--mc-booking-border);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.mc-time-slot.selected {
  background: var(--mc-booking-brand);
  color: #ffffff;
  border-color: var(--mc-booking-brand);
}

.mc-time-slot:not(.selected):hover {
  background: #e2e8f0;
}

.no-slots-msg {
  color: var(--mc-booking-text-muted);
  font-style: italic;
  font-size: 13px;
  text-align: center;
  padding: 20px 0;
  grid-column: 1 / -1;
}

/* Step 4: Summary Banner */
.mc-booking-summary-banner {
  background: #f8fafc;
  border: 1px solid var(--mc-booking-border);
  border-radius: 10px;
  padding: 18px 24px;
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.summary-item .dashicons {
  color: var(--mc-booking-brand);
}

/* Nav Actions */
.mc-step-nav {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  justify-content: flex-end;
}

.mc-step-nav .btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.mc-step-nav .btn.primary {
  background: var(--mc-booking-brand);
  color: #ffffff;
  border: none;
}

.mc-step-nav .btn.primary:hover:not(:disabled) {
  background: var(--mc-booking-brand-hover);
}

.mc-step-nav .btn.secondary {
  background: #ffffff;
  color: var(--mc-booking-text);
  border: 1px solid var(--mc-booking-border);
}

.mc-step-nav .btn.secondary:hover {
  background: #f8fafc;
}

.mc-step-nav .btn:disabled {
  background: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
}

/* CF7 Custom Overrides for standard integration UI */
.mc-cf7-wrapper form {
  display: grid;
  gap: 15px;
}

.mc-cf7-wrapper form p {
  margin: 0;
}

.mc-cf7-wrapper form label {
  font-weight: 600;
  font-size: 13px;
  color: var(--mc-booking-text);
}

.mc-cf7-wrapper form input[type="text"],
.mc-cf7-wrapper form input[type="email"],
.mc-cf7-wrapper form input[type="tel"],
.mc-cf7-wrapper form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--mc-booking-border);
  border-radius: 8px;
  font-size: 14px;
  background: #f8fafc;
}

.mc-cf7-wrapper form input[type="submit"] {
  background: var(--mc-booking-brand);
  color: #ffffff;
  border: none;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
  justify-self: end;
}

.mc-cf7-wrapper form input[type="submit"]:hover {
  background: var(--mc-booking-brand-hover);
}

/* Circular Back Button (Calendly Style) */
.mc-back-btn-round {
  position: absolute;
  top: 36px;
  left: 30px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--mc-booking-border);
  background: #ffffff;
  color: var(--mc-booking-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(51, 34, 35, 0.05);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  padding: 0;
  outline: none;
}

.mc-back-btn-round:hover {
  background: #fff0f0;
  border-color: var(--mc-booking-brand);
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(241, 93, 97, 0.2);
}

.mc-back-btn-round svg {
  width: 16px;
  height: 16px;
  stroke: var(--mc-booking-brand);
  stroke-width: 2.5;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.mc-back-btn-round:hover svg {
  transform: translateX(-2px);
}

/* Adjust card layout spacing for back button space */
.mc-booking-progress {
  padding-left: 0;
  transition: padding-left 0.3s ease;
}

.mc-booking-engine.has-back-button .mc-booking-progress {
  padding-left: 50px;
}

/* Mobile responsiveness & spacing optimizations */
@media (max-width: 768px) {
  .mc-booking-engine {
    margin: 20px 10px;
  }

  .mc-booking-card {
    padding: 30px 20px;
  }

  .mc-booking-progress {
    margin-bottom: 25px;
  }

  /* Show only the currently active step label as a simplified text line */
  .mc-progress-labels .step-label {
    display: none;
  }

  .mc-progress-labels .step-label.current {
    display: block;
    width: 100%;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--mc-booking-brand);
  }

  .mc-progress-labels .step-label.current::before {
    content: "Step " attr(data-step) " of 4: ";
    color: var(--mc-booking-text-muted);
    font-weight: 500;
  }

  .mc-booking-step h3 {
    font-size: 17px;
  }

  .mc-booking-step .step-description {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .mc-back-btn-round {
    top: 25px;
    left: 20px;
    width: 36px;
    height: 36px;
  }

  .mc-booking-engine.has-back-button .mc-booking-progress {
    padding-left: 42px;
  }

  .mc-datetime-grid {
    gap: 20px;
  }

  .mc-calendar-container,
  .mc-slots-container {
    padding: 15px;
  }
}

@media (max-width: 600px) {
  .mc-booking-summary-banner {
    flex-direction: column;
    gap: 12px;
    padding: 15px;
  }

  .mc-step-nav {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .mc-step-nav .btn {
    width: 100%;
    text-align: center;
    padding: 14px 20px; /* Larger tap targets for mobile */
  }
}

@media (max-width: 480px) {
  .mc-booking-card {
    padding: 24px 15px;
  }

  .mc-back-btn-round {
    top: 20px;
    left: 15px;
    width: 34px;
    height: 34px;
  }

  .mc-booking-engine.has-back-button .mc-booking-progress {
    padding-left: 38px;
  }

  .mc-booking-step h3 {
    font-size: 15px;
  }

  .mc-info-banner {
    padding: 15px;
    gap: 10px;
  }
}

/* Booking Loading Overlay */
.mc-booking-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  border-radius: var(--mc-booking-radius, 12px);
  animation: mcFadeIn 0.3s ease forwards;
}

.mc-booking-loading-overlay .mc-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(241, 93, 97, 0.1);
  border-top: 4px solid var(--mc-booking-brand);
  border-radius: 50%;
  animation: mc-spin 1s linear infinite;
  margin-bottom: 20px;
}

.mc-booking-loading-overlay .mc-loading-msg {
  font-size: 18px;
  font-weight: 700;
  color: var(--mc-booking-text);
  font-family: 'Outfit', 'Inter', sans-serif;
}

/* Hide CF7 success message output */
.mc-booking-engine .wpcf7-form.sent .wpcf7-response-output,
.mc-booking-engine .wpcf7-response-output.wpcf7-mail-sent-ok {
  display: none !important;
}

@keyframes mcFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes mc-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ========================================================
   MC BOOKING FORM UNIFIED LAYOUT & ACCENT STYLING
   ======================================================== */

.mc-booking-form {
  max-width: 520px;
  margin: 0 auto;
  padding: 24px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mc-title {
  font-size: 20px;
  font-weight: 600;
  color: #222;
  margin: 0;
}

.mc-row,
.mc-form__row {
  display: flex;
  gap: 14px;
  margin: 10px 0px;
  flex-wrap: wrap;
}

.mc-form__group {
  flex: 1;
  min-width: 200px;
}

.mc-input,
.mc-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
  transition: all 0.25s ease;
}

.mc-input:focus,
.mc-textarea:focus {
  border-color: #ff5a5f;
  box-shadow: 0 0 0 3px rgba(255, 90, 95, 0.12);
  outline: none;
}

.mc-textarea {
  min-height: 120px;
  resize: vertical;
}

.mc-readonly {
  background: #f8f8f8;
  cursor: not-allowed;
  font-weight: 500;
}

.mc-actions,
.mc-form__actions {
  margin-top: 15px !important; /* Override negative margin to keep submit button fully visible and clickable */
}

.mc-cf7-wrapper form p {
  margin: 0;
  width: 100%;
}

.mc-button {
  width: 100%;
  padding: 14px 18px;
  background: #ff5a5f;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.mc-button:hover {
  background: #e14b50;
  transform: translateY(-1px);
}

.mc-button:active {
  transform: scale(0.98);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .mc-row,
  .mc-form__row {
    flex-direction: column;
  }
  .mc-form__group {
    min-width: 100%;
  }
}


