.re-cst{max-width:960px;margin:24px auto;padding:24px;background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:16px}
.re-cst h3{margin-top:0;color:var(--re-heading,#0F172A)}
.re-cst h3.center{text-align:center}
.re-cst h4.center{text-align:center}
.re-cst p.subhead{color:#6b7280;text-align:center;margin-top:4px;margin-bottom:12px}
.re-cst .re-step{display:none}
.re-cst .re-step.active{display:block;animation:fade .2s ease-in}
.re-cst .row{display:flex;gap:16px;flex-wrap:wrap}
.re-cst .grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}
.re-cst label{display:block;font-weight:500}
.re-cst input[type=text],.re-cst input[type=email],.re-cst input[type=tel],.re-cst input[type=number],.re-cst input[type=date],.re-cst select,.re-cst textarea{width:100%;padding:10px;border:1px solid #d1d5db;border-radius:8px}
.re-cst .prev,.re-cst .next,.re-cst .submit{margin-top:16px}
.re-cst .prev,.re-cst .next,.re-cst .submit{background:var(--re-btn-bg,#2C7BE5);color:var(--re-btn-text,#fff);border:0;padding:10px 16px;border-radius:8px;cursor:pointer}
.re-cst .prev{background:var(--re-secondary,#6C757D)}
.re-cst .notice.success{background:rgba(var(--re-success-rgb,40,167,69),.1);border:1px solid var(--re-success,#28A745);padding:12px;border-radius:8px}
/* Header */
.re-cst-header{display:flex;flex-direction:column;align-items:center;gap:12px;margin-bottom:20px}
.re-cst-brand{display:flex;align-items:center;gap:16px}
.re-icon-traveler{display:none!important}
.re-cst-progress{display:flex;gap:10px;align-items:center}
.re-cst-progress .bar{display:inline-block;width:72px;height:6px;border-radius:6px;background:#e9ecef}
.re-cst-progress .bar.active{background:var(--re-heading,#0F172A)}
.re-cst-headings{text-align:center}
.re-cst-headings h2{margin:.25rem 0 .25rem;font-size:28px}
.re-cst-headings p{margin:.25rem 0;color:#6b7280}
.re-cst-headings p.muted{font-size:14px}
/* Mobile: hide big traveler icon, keep steps */
@media (max-width: 768px){
	.re-cst-brand{justify-content:center}
	.re-icon-traveler{display:none!important}
	.re-cst-progress{flex-wrap:wrap;gap:8px;justify-content:center}
}
/* Segmented toggle */
.re-cst-toggle{display:inline-flex;justify-content:center;align-items:center;border:1px solid #d1d5db;border-radius:8px;overflow:hidden;margin:16px auto 14px;max-width:100%;box-sizing:border-box}
.re-cst-toggle .seg{padding:10px 22px;font-size:17px;border:0;background:#fff;color:#111827;cursor:pointer;transition:background .15s,color .15s}
.re-cst-toggle .seg+ .seg{border-left:1px solid #d1d5db}
.re-cst-toggle .seg.active{background:var(--re-heading,#0F172A);color:#fff}
.re-year-picker{display:flex;gap:16px;align-items:center;justify-content:center;margin:10px 0 14px}
.re-year-picker .year-display{min-width:72px;text-align:center;font-weight:600;font-size:18px}
.re-year-picker .yp-prev,.re-year-picker .yp-next{display:flex;align-items:center;justify-content:center;background:#fff;border:1.5px solid #b0b0b0;border-radius:8px;width:40px;height:36px;cursor:pointer;font-size:20px;color:#a00;transition:background .15s,border .15s}
.re-year-picker .yp-prev:hover,.re-year-picker .yp-next:hover{background:#f3f4f6;border-color:#a00}
.re-year-picker .yp-prev.disabled,.re-year-picker .yp-next.disabled{opacity:.5;cursor:not-allowed;pointer-events:none}
/* Year picker */
.re-year-picker{display:flex;gap:12px;align-items:center;justify-content:center;margin:8px 0 12px}
.re-year-picker .year-display{min-width:72px;text-align:center;font-weight:600}
.re-year-picker .yp-prev,.re-year-picker .yp-next{background:#fff;border:1px solid #d1d5db;border-radius:6px;width:36px;height:32px;line-height:30px;text-align:center;cursor:pointer}
/* Button-like choices */
.re-cst-choices{display:grid;grid-template-columns:repeat(3,minmax(220px,1fr));gap:20px;justify-content:center;max-width:860px;margin:12px auto 0}
.re-cst-choices.choices-2{grid-template-columns:repeat(2,minmax(240px,320px));justify-content:center;max-width:720px;margin:16px auto}
.re-cst-choices.choices-2 .choice{justify-content:center}
@media (max-width:700px){.re-cst-choices.choices-2{grid-template-columns:repeat(2,minmax(140px,1fr));max-width:100%}}

/* Step 8 layout */
.re-contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;max-width:980px;margin:16px auto}
.re-contact-grid .row{display:flex;gap:14px}
.re-contact-grid .col label{display:block;width:100%}
.re-contact-method{max-width:720px;margin:8px auto 0}
.re-consent-row{max-width:860px;margin:12px auto;display:flex;justify-content:center}
.re-consent{display:flex;gap:10px;align-items:flex-start}
.re-cst .submit.re-submit[disabled]{opacity:.6;cursor:not-allowed}
@media (max-width:1024px){.re-contact-grid{grid-template-columns:1fr}.re-contact-grid .row{flex-direction:column}}

/* New: align contact methods and consent side-by-side like the mock */
.re-contact-row{display:grid;grid-template-columns:2fr 1fr;gap:24px;align-items:center;max-width:980px;margin:8px auto 0}
.re-consent-wrap{display:flex;align-items:center}
@media (max-width:900px){.re-contact-row{grid-template-columns:1fr}}

/* intl-tel-input styles override: make dial-code column compact */
.iti{width:100%}
.iti--separate-dial-code .iti__flag-container{padding:0 6px}
.iti--separate-dial-code .iti__selected-dial-code{min-width:36px}
.iti__selected-country{border:1px solid #d1d5db;border-right:0;border-radius:8px 0 0 8px;height:40px;display:flex;align-items:center;padding:0 8px;background:#fff}
.iti input[type="tel"], .iti input{height:40px;border:1px solid #d1d5db;border-left:0;border-radius:0 8px 8px 0;padding:10px;width:100%}
.iti__country-list{max-height:220px}
.re-cst-choices .choice{display:flex;align-items:center;justify-content:center;gap:10px;padding:16px;border-radius:8px;border:1px solid #e5e7eb;background:#f3f4f6;cursor:pointer;text-align:center}
.re-cst-choices .choice:hover{background:#eef2f7}
.re-cst-choices .choice input{display:none}
.re-cst-choices .choice.selected{background:var(--re-btn-bg,#2C7BE5);color:var(--re-btn-text,#fff);position:relative}
.re-cst-choices .choice.selected::after{content:"";position:absolute;top:6px;right:6px;width:10px;height:10px;border-right:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(45deg)}
.re-cst-nav{display:flex;justify-content:center;margin-top:16px}
.re-cst-nav.right{justify-content:flex-end}
.re-cst-nav.between{justify-content:space-between}
.re-cst-footer{display:flex;align-items:center;gap:8px;justify-content:center;margin-top:20px;color:#6b7280;flex-wrap:nowrap;white-space:nowrap}
.re-cst-footer span,.re-cst-footer a{white-space:nowrap}
@media (max-width:480px){.re-cst-footer{gap:6px;font-size:13px}}
.re-cst-footer a{color:inherit;text-decoration:underline;font-size:.95em}
@media (max-width:480px){.re-cst{font-size:14px}.re-cst input,.re-cst select,.re-cst textarea{font-size:14px}.re-cst-footer a{font-size:12px}}
/* Tile grid for step 2 */
.re-cst-tiles{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:16px;max-width:980px;margin:10px auto}
@media (max-width:700px){.re-cst-tiles{grid-template-columns:repeat(2,minmax(150px,1fr))}}
.re-cst-tiles .tile{display:flex;align-items:center;justify-content:center;padding:14px;border-radius:6px;border:1px solid #e5e7eb;background:#f3f4f6;cursor:pointer;text-align:center}
.re-cst-tiles .tile:hover{background:#eef2f7}
.re-cst-tiles .tile input{display:none}
.re-cst-tiles .tile.selected{outline:2px solid var(--re-btn-bg,#2C7BE5);background:#fff}
.re-cst-tiles .tile.full{grid-column:auto}
@media (max-width:700px){
	/* Step 2 mobile: keep all tiles, including "I don't know", in two columns */
	.re-cst-tiles .tile.full{grid-column:auto}
	/* Slightly tighter tiles on mobile for a compact look */
	.re-cst-tiles .tile{padding:12px;font-size:15px}
}
.purposes-tiles{margin-top:16px}
.months-tiles{max-width:860px;grid-template-columns:repeat(6,minmax(120px,1fr));margin-bottom:14px}
.months-tiles .tile{min-height:48px}
.months-tiles .tile.any{grid-column:1 / -1}
.months-tiles .tile.disabled{opacity:.5;pointer-events:none;cursor:not-allowed}
@media (max-width:700px){.months-tiles{grid-template-columns:repeat(3,minmax(90px,1fr))}}

/* Date range picker (exact dates) */
/* Keep the inline calendar fully inside a centered bordered box */
.re-dr{max-width:660px;margin:16px auto;padding:12px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;box-sizing:border-box;overflow:hidden}
.re-dr-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;gap:8px}
.re-dr-header .dr-title{flex:1;text-align:center;font-weight:600}
.re-dr-header button{background:#fff;border:1px solid #d1d5db;border-radius:6px;width:36px;height:32px;cursor:pointer}
.re-dr-months{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.re-dr-month{border-radius:6px;padding:4px}
.re-dr-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.re-dr-grid .dow{font-size:12px;color:#6b7280;text-align:center;padding:4px 0}
.re-dr-grid .day{height:32px;display:flex;align-items:center;justify-content:center;border-radius:6px;cursor:pointer;border:1px solid transparent}
.re-dr-grid .day:hover{background:#f3f4f6}
.re-dr-grid .day.disabled{opacity:.35;cursor:not-allowed}
.re-dr-grid .day.selected-start,.re-dr-grid .day.selected-end{background:var(--re-btn-bg,#2C7BE5);color:#fff}
.re-dr-grid .day.in-range{background:rgba(44,123,229,.12)}

/* Step 4 duration row */
.re-duration-row{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:18px}
.re-duration-row h4{margin:0;text-align:center}
.re-duration-select select{min-width:220px}
/* Hide duration selector when exact-dates mode is active (we auto-calc) */
.re-step[data-step="4"].exact-mode .re-duration-row{display:none}
/* Step 4 mobile: stack duration row and make select full-width */
@media (max-width:700px){
	.re-duration-row{flex-direction:column;gap:10px;margin-top:14px}
	.re-duration-row .re-duration-select{width:100%}
	.re-duration-row .re-duration-select select{width:100%;max-width:420px}
}
@keyframes fade{from{opacity:.6;transform:translateY(4px)}to{opacity:1;transform:none}}
@media (max-width:600px){.re-cst{padding:12px}.re-cst .row{flex-direction:column;gap:10px}.re-cst-choices{grid-template-columns:1fr}.re-cst-progress .bar{width:36px}}
@media (max-width:480px){.re-cst-progress .bar{width:28px}}

/* Inline range calendar for exact dates */
.re-inline-range{display:flex;justify-content:center;margin:12px 0}
.re-inline-range .cal-wrap{border:1px solid #e5e7eb;border-radius:8px;padding:12px}
.re-inline-range .cal-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.re-inline-range .cal{width:300px}
.re-inline-range .cal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.re-inline-range .cal-title{font-weight:600}
.re-inline-range .cal-nav{display:flex;gap:6px}
.re-inline-range .cal-btn{display:flex;align-items:center;justify-content:center;width:36px;height:28px;border:1px solid #d1d5db;border-radius:6px;background:#fff;cursor:pointer;color:#a00}
.re-inline-range .cal-btn[disabled]{opacity:.5;cursor:not-allowed}
.re-inline-range table{width:100%;border-collapse:collapse;font-size:14px;color:#111827}
.re-inline-range th{font-weight:600;color:#6b7280;padding:6px 0}
.re-inline-range td{width:42px;height:36px;text-align:center;border-radius:6px;cursor:pointer}
.re-inline-range td.disabled{opacity:.4;pointer-events:none}
.re-inline-range td.selected,.re-inline-range td.in-range{background:#e6f0ff}
.re-inline-range td.start,.re-inline-range td.end{background:#2C7BE5;color:#fff}

/* New: Exact dates two-month inline calendar (.re-dr) */
/* Unify with the container above and ensure it's centered */
.re-dr{display:flex;flex-direction:column;align-items:center;justify-content:center}
.re-dr .re-dr-header{display:flex;align-items:center;gap:10px;justify-content:center;margin-bottom:10px;width:100%}
.re-dr .dr-title{font-weight:600;color:#111827;min-width:260px;text-align:center}
.re-dr .dr-pp,.re-dr .dr-p,.re-dr .dr-n,.re-dr .dr-nn{display:flex;align-items:center;justify-content:center;width:36px;height:28px;border:1px solid #d1d5db;border-radius:6px;background:#fff;color:#a00;cursor:pointer}
.re-dr .dr-pp.disabled,.re-dr .dr-p.disabled{opacity:.5;cursor:not-allowed}
.re-dr .re-dr-months{display:grid;grid-template-columns:repeat(2,auto);gap:16px;width:auto;margin:0 auto;justify-content:center}
.re-dr .re-dr-month{width:auto}
.re-dr .re-dr-grid{display:grid;grid-template-columns:repeat(7, 38px);grid-auto-rows:32px;gap:6px;justify-content:center}
.re-dr .re-dr-grid .dow{font-weight:600;color:#6b7280;display:flex;align-items:center;justify-content:center}
.re-dr .re-dr-grid .day{display:flex;align-items:center;justify-content:center;border-radius:6px;cursor:pointer;color:#111827}
.re-dr .re-dr-grid .day.disabled{opacity:.35;pointer-events:none}
.re-dr .re-dr-grid .day.in-range{background:#e6f0ff}
.re-dr .re-dr-grid .day.selected-start,.re-dr .re-dr-grid .day.selected-end{background:#2C7BE5;color:#fff}

/* Responsive: collapse to single month on small screens and keep centered */
@media (max-width: 700px){
	.re-dr{max-width:100%;}
	.re-dr .re-dr-months{grid-template-columns:1fr;width:100%}
	.re-dr .re-dr-grid{grid-template-columns:repeat(7, 1fr)}
}

/* Step 5: centered selects row */
.re-people-row{display:flex;justify-content:center;align-items:center;gap:24px;margin:22px 0}
.re-people-row .sel select{min-width:240px;padding:10px 12px;border:1px solid #d1d5db;border-radius:8px;background:#fff}
.re-people-row .sel select:focus{outline:none;box-shadow:0 0 0 2px rgba(44,123,229,.2)}
@media (max-width:700px){
	/* Two-column layout on mobile with no clipping */
	.re-people-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;gap:12px;margin:16px 0}
	.re-people-row .sel{width:100%}
	.re-people-row .sel select{width:100%;min-width:0}
}
/* Children ages dropdown grid */
.children-ages-grid{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:14px;justify-content:center;max-width:740px;margin:8px auto 0}
.children-ages-grid .age-sel select{width:100%;padding:10px 12px;border:1px solid #d1d5db;border-radius:8px;background:#fff}
@media (max-width:700px){.children-ages-grid{grid-template-columns:repeat(2,minmax(120px,1fr));}}

/* Step 6: budget UI */
.re-budget-wrap{max-width:860px;margin:10px auto 0}
.re-budget-controls{display:flex;flex-direction:column;align-items:center;gap:12px;margin-bottom:16px}
.re-budget-currency select{min-width:120px;padding:10px 12px;border:1px solid #d1d5db;border-radius:8px;background:#fff}
.re-budget-badge{display:inline-block;background:var(--re-btn-bg,#2C7BE5);color:var(--re-btn-text,#fff);padding:10px 20px;border-radius:24px;font-weight:600;min-width:140px;text-align:center}
.re-budget-slider{position:relative;margin:16px auto 8px;max-width:820px}
.re-budget-slider input[type=range]{width:100%}
.re-budget-ends{display:flex;justify-content:space-between;margin-top:8px;color:#111827}
.re-budget-ends .min span,.re-budget-ends .max span{display:block;color:#6b7280;font-size:13px}

/* Slider styling (webkit + moz basics) */
.re-budget-slider input[type=range]{appearance:none;-webkit-appearance:none;height:6px;border-radius:3px;background:#e5e7eb;outline:none}
.re-budget-slider input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:28px;height:28px;border-radius:50%;background:var(--re-btn-bg,#2C7BE5);border:4px solid #fff;box-shadow:0 0 0 2px var(--re-btn-bg,#2C7BE5);cursor:pointer}
.re-budget-slider input[type=range]::-moz-range-thumb{width:28px;height:28px;border-radius:50%;background:var(--re-btn-bg,#2C7BE5);border:4px solid #fff;box-shadow:0 0 0 2px var(--re-btn-bg,#2C7BE5);cursor:pointer}
