/*
  Consolidated Calendly overrides.
  - Keeps a single authoritative wrapper block
  - Centralizes inline widget + iframe rules (size + centering)
  - Preserves 'full' and modal variants
  - Keeps scaling rules (if you prefer no scaling, remove the transform block)
*/

.calendly-widget-wrap {
	margin: 36px auto 0;
	padding: 14px 14px 6px; /* small bottom padding so grey box sits just below widget */
	border-radius: 10px;
	overflow: visible; /* allow iframe expansion */
	max-width: 1200px; /* desktop width cap */
	background: transparent;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
}

/* Base: single rule for inline widget and its iframe */
.calendly-inline-widget,
.calendly-inline-widget iframe {
	width: 100% !important;
	border: 0 !important;
	max-width: 100% !important;
	overflow: visible !important;
}

/* Strong sizing overrides so the embedded UI has room (adjust values to taste) */
.calendly-inline-widget,
.calendly-inline-widget iframe {
	min-height: 920px !important;
	height: 920px !important;
}

/* Center the inline Calendly widget and its iframe */
.calendly-inline-widget { margin: 0 auto !important; display: block !important; }
.calendly-inline-widget iframe { display: block !important; margin: 0 auto !important; }

/* Full inline variant: larger min-height so it fills more viewport */
.calendly-full { height: auto; min-height: 1100px; }
.calendly-full .calendly-inline-widget,
.calendly-full .calendly-inline-widget iframe { height: 1100px !important; max-height: none !important; overflow: visible !important; }

/* Modal styles (unchanged) */
.calendly-modal { position: fixed; left: 0; top: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.55); display: none; align-items: center; justify-content: center; z-index: 11000; }
.calendly-modal[aria-hidden="false"] { display: flex; }
.calendly-modal-inner { width: 100%; height: 100%; max-width: 1400px; max-height: 100vh; margin: auto; position: relative; }
.calendly-modal-content { position: absolute; left:0; right:0; top:0; bottom:0; background:#fff; border-radius:10px; overflow:hidden; }
.calendly-modal-close { position:absolute; right:14px; top:14px; z-index:12000; background:#fff; border:0; padding:8px 10px; border-radius:6px; cursor:pointer; font-size:18px }
.calendly-modal .calendly-inline-widget,
.calendly-modal .calendly-inline-widget iframe { height: 100vh !important; min-height: 100vh !important; width: 100% !important; }

/* Responsive breakpoints: reduce heights and wrapper max-widths */
@media (max-width: 1200px) {
	.calendly-widget-wrap { max-width: 1000px; }
	.calendly-inline-widget, .calendly-inline-widget iframe { min-height: 820px !important; height: 820px !important; }
}

@media (max-width: 900px) {
	.calendly-widget-wrap { max-width: 820px; }
	.calendly-inline-widget, .calendly-inline-widget iframe { min-height: 740px !important; height: 740px !important; }
}

@media (max-width: 480px) {
	.calendly-widget-wrap { max-width: 100%; padding-left: 12px; padding-right: 12px; }
	.calendly-inline-widget, .calendly-inline-widget iframe { min-height: 620px !important; height: 620px !important; }
}

/* Scaling: scale the iframe to make the Calendly card appear larger visually. */
/* If you prefer no scaling (crisper text), remove this block and increase the heights instead. */
.calendly-inline-widget iframe { transform-origin: top center; transform: scale(1.12); width: calc(100% / 1.12) !important; height: 1030px !important; min-height: 1030px !important; }
@media (max-width: 1200px) { .calendly-inline-widget iframe { transform: scale(1.12); width: calc(100% / 1.12) !important; height: 918px !important; min-height: 918px !important; } }
@media (max-width: 900px) { .calendly-inline-widget iframe { transform: scale(1.08); width: calc(100% / 1.08) !important; height: 897px !important; min-height: 897px !important; } }
@media (max-width: 480px) { .calendly-inline-widget iframe { transform: scale(1.03); width: calc(100% / 1.03) !important; height: 715px !important; min-height: 715px !important; } }

/* Note: Keep comments or tweak values as desired. If anything looks off, I'll iterate. */
