/* ============================================================
   Robinson Reunion – Registration Form Styles
   Single-page layout with inline Stripe payment sidebar
   ============================================================ */

:root {
	--rr-red:        #D9393C;
	--rr-red-hover:  #A93226;
	--rr-red-light:  #FEF2F1;
	--rr-dark:       #181818;
	--rr-green:      #22C55E;
	--rr-gray:       #6B7280;
	--rr-gray-light: #9CA3AF;
	--rr-border:     #F3F4F6;
	--rr-bg:         #F9FAFB;
	--rr-white:      #FFFFFF;
	--rr-radius:     30px;
	--rr-shadow:     0 1px 2px 0 rgba(0,0,0,.05);
}

/* ── Outer Wrapper ─────────────────────────────────────────── */
.rr-wrap {
	display: flex;
	gap: 32px;
	max-width: 1080px;
	margin: 0 auto;
	padding: 48px 20px;
	align-items: flex-start;
	font-family: "Manrope";
	box-sizing: border-box;
	position: relative;
}

/* Force Bricks parent containers to allow sticky — scoped to registration page only */
body.page .rr-wrap ~ * ,
#brx-content:has(.rr-wrap),
#brx-content:has(.rr-wrap) > *,
#brx-content:has(.rr-wrap) .brxe-section,
#brx-content:has(.rr-wrap) .brxe-container,
#brx-content:has(.rr-wrap) .brxe-block {
	overflow: visible !important;
}

/* ── Steps Column ──────────────────────────────────────────── */
.rr-steps-col {
	flex: 1;
	min-width: 0;
}

/* All sections always visible */
.rr-section {
	margin-bottom: 8px;
}

.rr-section-divider {
	border: none;
	border-top: 1px solid var(--rr-border);
	margin: 32px 0;
}

.rr-step-label {
	display: block;
	font-size: 16px;
	font-weight: 800;
	text-transform: uppercase;
	color: var(--rr-red);
	margin-bottom: 6px;
}

.rr-step-title {
	font-size: 30px;
	font-family: "Manrope";
	font-weight: 700;
	color: #181818;
	margin: 0 0 4px;
	line-height: 1.2;
	letter-spacing: 0;
}

.rr-step-subtitle {
	font-size: 16px;
	color: var(--rr-gray);
	margin: 0 0 24px;
}

/* ── Ticket Cards ──────────────────────────────────────────── */
.rr-ticket-card {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 20px;
	border: 1px solid var(--rr-border);
	border-radius: var(--rr-radius);
	margin-bottom: 14px;
	background: var(--rr-white);
	box-shadow: var(--rr-shadow);
	transition: border-color .2s;
}

.rr-ticket-card:hover {
	border-color: #D1D5DB;
}

.rr-ticket-icon {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--rr-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: var(--rr-gray);
}

.rr-ticket-info { flex: 1; min-width: 0; }

.rr-ticket-info h3 {
	font-size: 20px;
	font-weight: 800;
	margin: 0 0 8px;
	color: #181818;
}

.rr-features {
	list-style: none;
	padding: 0;
	margin: 0;
}

.rr-features li {
	font-size: 13px;
	color: var(--rr-dark);
	display: flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 4px;
}

.rr-features li::before {
	content: '';
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	background-color: var(--rr-green);
	border-radius: 50%;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7l3 3 6-6' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-size: 100%;
	background-repeat: no-repeat;
}

.rr-ticket-right {
	text-align: right;
	flex-shrink: 0;
}

.rr-big-price {
	display: block;
	font-size: 35px;
	font-weight: 800;
	color: #181818;
	line-height: 1;
}

.rr-per-person {
	font-size: 12px;
	color: var(--rr-gray-light);
}

/* ── Quantity Controls ─────────────────────────────────────── */
.rr-qty-row {
	display: flex;
	align-items: center;
	gap: 12px;
	justify-content: flex-end;
	margin-top: 12px;
}

.rr-qty-btn {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: none;
	background: var(--rr-red);
	color: var(--rr-white);
	font-size: 20px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background .2s, transform .1s;
	padding: 0;
}

.rr-qty-btn:hover:not(:disabled) {
	background: var(--rr-red-hover);
	transform: scale(1.08);
}

.rr-qty-btn:disabled {
	background: #D1D5DB;
	cursor: not-allowed;
	transform: none;
}

.rr-qty-display {
	font-size: 16px;
	font-weight: 700;
	min-width: 28px;
	text-align: center;
	color: #111;
}

/* ── Error Block ───────────────────────────────────────────── */
.rr-error {
	background: var(--rr-red-light);
	border: 1px solid #FECACA;
	border-radius: var(--rr-radius);
	padding: 12px 16px;
	font-size: 13px;
	color: #991B1B;
	margin-bottom: 18px;
	display: none;
}

.rr-error.visible { display: block; }

.rr-field-error {
	display: block;
	font-size: 12px;
	color: #DC2626;
	margin-top: 5px;
	font-weight: 500;
}

/* ── Contact Form ──────────────────────────────────────────── */
.rr-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	align-items: start;
}

.rr-field-group {
	display: flex;
	flex-direction: column;
	gap: 5px;
	align-self: start;
}

.rr-field-group label {
	font-size: 12px;
	font-weight: 600;
	color: var(--rr-gray);
	text-transform: uppercase;
	letter-spacing: .5px;
}

.rr-field-group input,
.rr-field-group select,
.rr-field-group textarea {
	padding: 11px 14px;
    border: 1px solid #E5E7EB;
    border-radius: 100px;
    font-size: 14px;
    line-height: 1.2;
    color: #111;
    background: #F9FAFB;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
    box-sizing: border-box;
}

.rr-field-group input:focus,
.rr-field-group select:focus {
	border-color: var(--rr-red);
	box-shadow: 0 0 0 3px rgba(192,57,43,.08);
}

.rr-field-group input.invalid {
	border-color: #DC2626;
}

/* ── Attendee Cards ────────────────────────────────────────── */
.rr-attendee-placeholder {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 18px 20px;
	border: 1px dashed var(--rr-border);
	border-radius: var(--rr-radius);
	font-size: 14px;
	color: var(--rr-gray-light);
}

.rr-attendee-card {
    border-left: 8px solid var(--rr-red);
    border-radius: var(--rr-radius);
    padding: 20px;
    margin-bottom: 14px;
    background: var(--rr-white);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 5%);
}

.rr-attendee-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
}

.rr-attendee-title {
	font-size: 18px;
	font-weight: 700;
	color: #181818;
}

.rr-attendee-badge {
	font-size: 11px;
	padding: 3px 11px;
	border-radius: 20px;
	background: var(--rr-bg);
	color: var(--rr-gray);
	font-weight: 600;
}

.rr-attendee-badge.rr-primary-badge {
	background: var(--rr-red-light);
	color: var(--rr-red);
}

/* ════════════════════════════════════════════════════════════
   SIDEBAR
   ════════════════════════════════════════════════════════════ */
.rr-sidebar-col {
	width: 320px;
	flex-shrink: 0;
	align-self: flex-start;
	position: -webkit-sticky;
	position: sticky;
	top: 110px;
}

/* When WP admin bar is visible (logged-in users), add extra offset */
.admin-bar .rr-sidebar-col {
	top: 142px;
}

.rr-sidebar-inner {
    background: #181111;
    border-radius: 16px;
    padding: 24px;
    color: var(--rr-white);
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 25%);
}

.rr-sidebar-title {
	font-size: 17px;
	font-weight: 800;
	margin: 0 0 20px;
	color: var(--rr-white);
}

.rr-order-line {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	color: #A0A0A0;
	margin-bottom: 9px;
}

.rr-order-line .rr-ol-price {
	color: var(--rr-white);
	font-weight: 600;
}

.rr-empty-msg {
	font-size: 13px;
	color: #555;
	text-align: center;
	padding: 12px 0;
	margin: 0;
}

.rr-sidebar-divider {
	border: none;
	border-top: 1px solid #333;
	margin: 16px 0;
}

.rr-summary-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	color: #A0A0A0;
	margin-bottom: 8px;
}

.rr-total-row {
	font-size: 16px;
	font-weight: 800;
	color: var(--rr-white);
	margin-top: 6px;
}

.rr-total-amount {
	font-size: 22px;
	color: var(--rr-red);
	font-weight: 900;
}

/* ── Payment Label ─────────────────────────────────────────── */
.rr-payment-label {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1.5px;
	color: #666;
	text-transform: uppercase;
	margin: 20px 0 10px;
}

/* ── Stripe Card Fields ────────────────────────────────────── */
.rr-card-fields {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 6px;
}

.rr-card-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.rr-stripe-field-wrap {
	background: #2A2A2A;
	border: 1px solid #3A3A3A;
	border-radius: 8px;
	padding: 12px 14px;
	transition: border-color .2s;
}

.rr-stripe-field-wrap.focused {
	border-color: #555;
}

/* The div that Stripe mounts into must have a min-height
   so it doesn't collapse before Stripe renders */
.rr-stripe-field {
	min-height: 20px;
}

/* Error message under card fields */
.rr-card-error {
	font-size: 12px;
	color: #FF6B6B;
	padding: 6px 2px;
	display: none;
}

.rr-card-error.visible { display: block; }

/* ── Pay Button ────────────────────────────────────────────── */
.rr-pay-btn {
    width: 100%;
    padding: 8px 10px 8px 20px;
    background: var(--rr-red);
    color: var(--rr-white);
    border: none;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: background .2s, opacity .2s;
    letter-spacing: .5px;
    margin-top: 14px;
}
.rr-pay-btn svg {
    background: #ffffff26;
    height: 40px;
    width: 40px;
    padding: 10px;
    border-radius: 100px;
}

.rr-pay-btn:hover:not(:disabled) { background: var(--rr-red-hover); }

.rr-pay-btn:disabled {
	background: #3A3A3A;
	cursor: not-allowed;
	opacity: .6;
}

.rr-btn-text {
	display: flex;
	align-items: center;
	gap: 8px;
}

.rr-btn-loading {
	display: flex;
	align-items: center;
	gap: 8px;
}

.rr-spinner {
	width: 18px;
	height: 18px;
	animation: rr-spin .7s linear infinite;
}

@keyframes rr-spin { to { transform: rotate(360deg); } }

/* ── SSL + Help ────────────────────────────────────────────── */
.rr-ssl-note {
	text-align: center;
	font-size: 11px;
	color: #555;
	margin: 10px 0 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

.rr-help-box {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 20px;
    padding: 24px;
    font-size: 13px;
    color: #181818;
    line-height: 1.5;
    box-shadow: var(--rr-shadow);
	border-radius: 28px;
}

.rr-help-icon { color: #666; flex-shrink: 0; margin-top: 2px; }

.rr-help-box strong { color: #181818; display: block; margin-bottom: 3px; }
.rr-help-box p { margin: 0 0 4px; }
.rr-help-box a { color: var(--rr-red); text-decoration: none; font-weight: 600; }
.rr-help-box a:hover { text-decoration: underline; }

/* ── Responsive ────────────────────────────────────────────── */
@media ( max-width: 860px ) {
	.rr-wrap {
		flex-direction: column;
		padding: 0;
	}
	.rr-sidebar-col, .rr-steps-col { width: 100%; }
	.rr-sidebar-inner { position: static; }
}

@media ( max-width: 560px ) {
	.rr-form-grid { grid-template-columns: 1fr; }
	.rr-step-title { font-size: 22px; }

	/* Ticket card — keep horizontal but tighten */
	.rr-ticket-card {
		flex-wrap: nowrap;
		align-items: flex-start;
		padding: 14px 14px;
		gap: 10px;
	}

	.rr-ticket-icon {
		width: 36px;
		height: 36px;
		flex-shrink: 0;
	}

	.rr-ticket-info h3 {
		font-size: 16px;
		margin-bottom: 5px;
	}

	.rr-features li {
		font-size: 12px;
	}

	.rr-ticket-right {
		text-align: right;
		flex-shrink: 0;
		display: flex;
		flex-direction: column;
		align-items: flex-end;
	}

	.rr-big-price {
		font-size: 26px;
	}

	.rr-qty-row {
		justify-content: flex-end;
		margin-top: 8px;
		gap: 8px;
	}

	.rr-qty-btn {
		width: 28px;
		height: 28px;
		font-size: 16px;
	}

	/* Lodging dates — stack on mobile */
	.rr-lodging-dates {
		flex-direction: column;
		gap: 12px;
	}
	.rr-lodging-date-field {
		width: 100%;
	}
	.rr-lodging-date-field input[type="date"] {
		font-size: 14px;
		width: 100%;
		box-sizing: border-box;
	}

	/* City/State/Zip — stack on mobile */
	div[style*="grid-column:1/-1"][style*="display:flex"] {
		flex-wrap: wrap;
	}
	div[style*="grid-column:1/-1"][style*="display:flex"] .rr-field-group {
		flex: 0 0 100% !important;
		max-width: 100% !important;
	}

	/* Payment method options — tighter on mobile */
	.rr-payment-method-options {
		gap: 5px;
	}
}

/* ── Accomplishment Groups ───────────────────────────────── */
.rr-accomplishment-group {
	margin-bottom: 20px;
}
.rr-acc-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .6px;
	color: #555;
	margin-bottom: 8px;
}
.rr-acc-entries {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 8px;
}
.rr-acc-row {
	display: flex;
	align-items: center;
	position: relative;
}
.rr-acc-input {
	flex: 1;
	padding: 10px 46px 10px 14px;
	border: 1.5px solid #e5e7eb;
	border-radius: 10px;
	font-size: 14px;
	outline: none;
	transition: border-color .15s;
	width: 100%;
}
.rr-acc-input:focus {
	border-color: var(--rr-red);
}
.rr-acc-remove {
	position: absolute;
	right: 10px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: none;
	background: var(--rr-red);
	color: #fff;
	font-size: 14px;
	line-height: 1;
	text-align: center;
	cursor: pointer;
	flex-shrink: 0;
	padding: 0;
	transition: opacity .15s;
	display: flex;
	align-items: center;
	justify-content: center;
}
.rr-acc-remove:hover {
	opacity: 0.8;
}
.rr-add-entry-btn {
	background: none;
	border: 1.5px dashed #ccc;
	border-radius: 10px;
	padding: 8px 14px;
	font-size: 13px;
	color: #666;
	cursor: pointer;
	transition: border-color .15s, color .15s;
}
.rr-add-entry-btn:hover {
	border-color: var(--rr-red);
	color: var(--rr-red);
}

/* ── Radio Group ────────────────────────────────────────── */
.rr-radio-group {
	display: flex;
	gap: 10px;
	margin-top: 8px;
	width: fit-content;
}
.rr-radio-label {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 22px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border: 1.5px solid #e5e7eb;
	border-radius: 50px;
	background: #fff;
	transition: border-color .15s, background .15s, color .15s;
	user-select: none;
	margin: 0;
}
.rr-radio-label:has(input:checked) {
	border-color: var(--rr-red);
	background: #fef2f2;
	color: var(--rr-red);
}
.rr-radio-label input[type="radio"] {
	accent-color: var(--rr-red);
	width: 15px;
	height: 15px;
	margin: 0;
}

/* ── Short field (State/Zip) ─────────────────────────────── */
.rr-field-group--short {
	max-width: 140px;
}

/* ── City / State / Zip row ─────────────────────────────── */
.rr-csz-row {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}
.rr-csz-row .rr-field-group {
	flex: 1;
}
.rr-csz-row .rr-field-group--short {
	flex: 0 0 100px;
}

/* ── Lodging Block ───────────────────────────────────────── */
.rr-lodging-block {
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.rr-lodging-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .6px;
	color: #555;
	margin-bottom: 10px;
}
.rr-lodging-dates {
	display: flex;
	gap: 16px;
}
.rr-lodging-date-field {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.rr-lodging-date-field label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .6px;
	color: #555;
}
.rr-lodging-date-field input[type="date"] {
	padding: 12px 16px;
	border: 1.5px solid #e5e7eb;
	border-radius: 50px;
	font-size: 15px;
	outline: none;
	background: #fff;
	transition: border-color .15s;
	width: 100%;
	box-sizing: border-box;
}
.rr-lodging-date-field input[type="date"]:focus {
	border-color: var(--rr-red);
}

/* ── Payment Method Selector (inside dark sidebar) ──────── */
.rr-payment-method-label {
	font-size: 17px;
	font-weight: 800;
	color: #fff;
	margin-bottom: 12px;
}
.rr-payment-method-options {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.rr-pm-option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 14px;
	border: 1.5px solid rgba(255,255,255,0.15);
	border-radius: 10px;
	font-size: 14px;
	font-weight: 700;
	color: rgba(255,255,255,0.75);
	cursor: pointer;
	transition: border-color .15s, background .15s, color .15s;
	user-select: none;
}
.rr-pm-option:has(input:checked) {
	border-color: var(--rr-red);
	border-left: 4px solid var(--rr-red);
	background: rgba(217,57,60,0.12);
	color: #fff;
}
.rr-pm-option input[type="radio"] {
	accent-color: var(--rr-red);
	width: 15px;
	height: 15px;
	margin: 0;
	flex-shrink: 0;
}
