/**
 * Stylesheet: Probefahrt-Buchung Block (Rifberg)
 *
 * 2-Step interactive test drive flow matching the Bolt prototype.
 */

.rifberg-probefahrt-booking-wrap {
    width: 100%;
    position: relative;
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #111827;
}

/* Background Colors */
.rifberg-probefahrt-booking-wrap .bg-grey {
    background-color: #f5f5f5;
}
.rifberg-probefahrt-booking-wrap .bg-white {
    background-color: #FFFFFF;
}
.rifberg-probefahrt-booking-wrap .bg-dark {
    background-color: #111827;
    color: #FFFFFF;
}

/* Paddings */
.rifberg-probefahrt-booking-wrap.padding-standard .rifberg-pb-step-1,
.rifberg-probefahrt-booking-wrap.padding-standard .rifberg-pb-step-2 {
    padding: 64px 0;
}
@media (min-width: 1024px) {
    .rifberg-probefahrt-booking-wrap.padding-standard .rifberg-pb-step-1,
    .rifberg-probefahrt-booking-wrap.padding-standard .rifberg-pb-step-2 {
        padding: 96px 0;
    }
}
.rifberg-probefahrt-booking-wrap.padding-compact .rifberg-pb-step-1,
.rifberg-probefahrt-booking-wrap.padding-compact .rifberg-pb-step-2 {
    padding: 40px 0;
}
@media (min-width: 1024px) {
    .rifberg-probefahrt-booking-wrap.padding-compact .rifberg-pb-step-1,
    .rifberg-probefahrt-booking-wrap.padding-compact .rifberg-pb-step-2 {
        padding: 64px 0;
    }
}
.rifberg-probefahrt-booking-wrap.padding-spacious .rifberg-pb-step-1,
.rifberg-probefahrt-booking-wrap.padding-spacious .rifberg-pb-step-2 {
    padding: 80px 0;
}
@media (min-width: 1024px) {
    .rifberg-probefahrt-booking-wrap.padding-spacious .rifberg-pb-step-1,
    .rifberg-probefahrt-booking-wrap.padding-spacious .rifberg-pb-step-2 {
        padding: 120px 0;
    }
}

/* Containers */
.rifberg-pb-container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 32px;
}
.rifberg-pb-container.max-w-1440 {
    max-width: 1440px;
}
.rifberg-pb-container.max-w-720 {
    max-width: 720px;
}

/* Header & Badges */
.rifberg-pb-header {
    margin-bottom: 40px;
}
.rifberg-pb-header-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.rifberg-pb-badge {
	width: 32px;
	height: 32px;
	background-color: #67B0C4;
	color: #FFFFFF;
	font-size: 14px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 1;
	border-radius: 0;
	line-height: 20px;
}
.rifberg-pb-headline {
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
    margin: 0 !important;
    color: #000;
}
@media (min-width: 768px) {
    .rifberg-pb-headline {
        font-size: 24px;
        line-height: 32px;
    }
}
.rifberg-pb-subline {
	font-size: 14px;
	line-height: 20px;
	color: #6b6b6b;
	margin: 0 0 0 44px !important;
}
.rifberg-probefahrt-booking-wrap .bg-dark .rifberg-pb-subline {
    color: #9CA3AF;
}

/* Step 1: Model Cards Grid */
.rifberg-pb-models-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 640px) {
    .rifberg-pb-models-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1200px) {
    .rifberg-pb-models-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Model Card Button */
.rifberg-pb-card {
	background-color: #FFFFFF;
	border: 2px solid transparent;
	padding: 0;
	margin: 0;
	text-align: left;
	display: flex;
	flex-direction: column;
	cursor: pointer;
	transition: .15s;
	position: relative;
	border-radius: 0;
	overflow: hidden;
	outline: none;
	font-family: inherit;
}
.rifberg-pb-card:hover {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
    border-color: #e5e5e5;
    background: #fff;
}
.rifberg-pb-card.is-selected, 
.rifberg-pb-card:focus {
    border-color: #67B0C4;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
    background: #fff;
}

/* Card Media (16:10 ratio) */
.rifberg-pb-card-media {
    aspect-ratio: 16 / 10;
    background-color: #F4F4F4;
    position: relative;
    overflow: hidden;
    width: 100%;
}
.rifberg-pb-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: .15s all linear;
}
.rifberg-pb-card:hover .rifberg-pb-card-img {
    transform: scale(1.03);
}
.rifberg-pb-card-img-placeholder {
    width: 100%;
    height: 100%;
}

/* Brand Badge (Top Left) */
.rifberg-pb-card-brand-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: #000;
	background: #ffffffe6;
	backdrop-filter: blur(4px);
	padding: 4px 10px;
	border-radius: 0;
	pointer-events: none;
	line-height: 1;
}

/* Checkmark Badge (Top Right) */
.rifberg-pb-card-check {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 28px;
	height: 28px;
	background-color: #67B0C4;
	color: #FFFFFF;
	display: none;
	align-items: center;
	justify-content: center;
	border-radius: 0;
	box-shadow: none;
	pointer-events: none;
}
.rifberg-pb-card.is-selected .rifberg-pb-card-check {
    display: flex;
}

/* Card Body */
.rifberg-pb-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.rifberg-pb-card-name {
	font-size: 16px;
	font-weight: 700;
	color: #000;
	margin: 0 0 4px !important;
	line-height: 24px;
}
.rifberg-pb-card-claim {
	font-size: 12px;
	line-height: 16px;
	color: #6b6b6b;
	margin: 0 0 8px !important;
	flex-grow: 1;
}
.rifberg-pb-card-price {
	font-size: 14px;
	font-weight: 600;
	color: #000;
	margin: 0 !important;
	display: flex;
	align-items: baseline;
	gap: 4px;
	line-height: 20px;
}
.rifberg-pb-price-from {
	font-weight: 600;
	color: #000;
}
.rifberg-pb-card-price strong {
	font-weight: 600;
}

/* ========================================== */
/* FLUENT FORMS INTEGRATION & CUSTOM STYLING  */
/* ========================================== */
.rifberg-pb-form-wrap {
    width: 100%;
}

/* Container & Grid Overrides */
.rifberg-pb-form-wrap .fluentform {
    margin: 0 !important;
    padding: 0 !important;
}
.rifberg-pb-form-wrap .ff-t-container {
    margin-bottom: 16px !important;
}
.rifberg-pb-form-wrap .ff-t-cell {
    padding: 0 8px !important;
}
.rifberg-pb-form-wrap .ff-t-container .ff-t-cell:first-child {
    padding-left: 0 !important;
}
.rifberg-pb-form-wrap .ff-t-container .ff-t-cell:last-child {
    padding-right: 0 !important;
}
@media (max-width: 640px) {
    .rifberg-pb-form-wrap .ff-column-container {
        flex-direction: column !important;
    }
    .rifberg-pb-form-wrap .ff-t-cell {
        padding: 0 !important;
        margin-bottom: 0 !important;
        flex-basis: 100% !important;
        max-width: 100% !important;
    }
}

/* Labels */
.rifberg-pb-form-wrap .ff-el-input--label {
    margin-bottom: 6px !important;
}
.rifberg-pb-form-wrap .ff-el-input--label label {
    font-size: 12px !important;
    line-height: 16px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: .05em !important;
    color: #6b6b6b !important;
    display: inline-block !important;
    cursor: default !important;
}
.rifberg-pb-form-wrap .asterisk-right label::after, 
.rifberg-pb-form-wrap .ff-el-is-required label::after {
	color: #ef4444 !important;
	font-weight: 700 !important;
	margin-left: 0 !important;
}

/* Form Inputs (Date, Text, Phone, Email) */
.rifberg-pb-form-wrap input.ff-el-form-control,
.rifberg-pb-form-wrap textarea.ff-el-form-control {
    width: 100% !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 0 !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    line-height: 20px !important;
    color: #111827 !important;
    background-color: #FFFFFF !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    box-shadow: none !important;
}
.rifberg-pb-form-wrap input.ff-el-form-control {
    height: 44px !important;
}
.rifberg-pb-form-wrap textarea.ff-el-form-control {
    min-height: 84px !important;
    resize: none !important;
}
.rifberg-pb-form-wrap input.ff-el-form-control:focus,
.rifberg-pb-form-wrap textarea.ff-el-form-control:focus {
    border-color: #67B0C4 !important;
    outline: none !important;
}

/* Tageszeit Segmented Radio Buttons */
.rifberg-pb-form-wrap .rifberg-tageszeit-wrapper .ff-el-input--content {
	display: flex !important;
	flex-wrap: wrap;
	width: 100% !important;
	column-gap: 12px;
}
.rifberg-pb-form-wrap .rifberg-tageszeit-wrapper .ff-el-form-check {
	flex: 0 0 48% !important;
	margin: 0 !important;
	display: flex !important;
}
.rifberg-pb-form-wrap .rifberg-tageszeit-wrapper .ff-el-form-check-input {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.rifberg-pb-form-wrap .rifberg-tageszeit-wrapper .ff-el-form-check-label {
	flex: 1 !important;
	text-align: center !important;
	padding: 10px 16px !important;
	border: 1px solid #e5e5e5 !important;
	font-weight: 600 !important;
	font-size: 14px !important;
    line-height: 20px;
	color: #6B7280 !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	border-radius: 0 !important;
	user-select: none !important;
	background: #FFFFFF !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 0 !important;
}
.rifberg-pb-form-wrap .rifberg-tageszeit-wrapper .ff-el-form-check-label:hover {
    border-color: #000 !important;
    color: #000 !important;
}
.rifberg-pb-form-wrap .rifberg-tageszeit-wrapper .ff-el-form-check-label:has(.ff-el-form-check-input:checked),
.rifberg-pb-form-wrap .rifberg-tageszeit-wrapper .ff-el-form-check-input:checked + .ff-el-form-check-label,
.rifberg-pb-form-wrap .rifberg-tageszeit-wrapper .ff-el-form-check-label.is-active,
.rifberg-pb-form-wrap .rifberg-tageszeit-wrapper .ff-el-form-check.is-active .ff-el-form-check-label {
    background-color: #000 !important;
    color: #FFFFFF !important;
    border-color: #000 !important; 
}


/* Legal / Terms Note */
.rifberg-form-legal-note {
	font-size: 11px !important;
	line-height: 1.625 !important;
	color: #6b6b6b !important;
	text-align: center !important;
	margin: 24px 0 0 0 !important;
}
.rifberg-form-legal-note a {
    color: #6b6b6b !important;
    text-decoration: underline !important;
}
.rifberg-form-legal-note a:hover {
    color: #6b6b6b !important;
}

/* Submit Button */
.rifberg-pb-form-wrap .rifberg-submit-wrapper {
    margin-top: 24px !important;
    text-align: center !important;
}
.rifberg-pb-form-wrap .ff-btn-submit, .rifberg-pb-form-wrap button[type="submit"] {
	width: 100% !important;
	height: 44px !important;
	background-color: #67B0C4 !important;
	color: #FFFFFF !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.05em !important;
	border: none !important;
	border-radius: 0 !important;
	cursor: pointer !important;
	transition: .15s all linear;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	line-height: 20px;
}
.rifberg-pb-form-wrap .ff-btn-submit:hover,
.rifberg-pb-form-wrap button[type="submit"]:hover {
    filter: brightness(1.1);
    opacity: 1;
    box-shadow: none;
}
.rifberg-pb-form-wrap .ff-btn-submit:disabled,
.rifberg-pb-form-wrap button[type="submit"]:disabled {
    opacity: .4 !important;
}

/* Success Card */
.rifberg-success-box {
    text-align: center;
    padding: 48px 24px;
    background: #FFFFFF;
    border-radius: 4px;
}
.rifberg-success-box svg {
    display: block;
    margin: 0 auto 16px auto;
}
.rifberg-success-box h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #111827;
}
.rifberg-success-box p {
    font-size: 15px;
    color: #6B7280;
    margin: 0 0 28px 0;
}
.rifberg-success-box .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background-color: #67B0C4;
    color: #FFFFFF;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: 2px;
    transition: background-color 0.2s ease;
}
.rifberg-success-box .btn-primary:hover {
    background-color: #5398ab;
}


/* Form css */
.testdrive-form .ff-el-group {
	margin: 0 !important;
}
.testdrive-form #rifberg-input-modell {
	position: absolute;
	top: 0;
	z-index: -1;
	opacity: 0;
	visibility: hidden;
}
.testdrive-form .rifberg-form-row-2col {
	display: grid;
	grid-template-columns: repeat(2,minmax(0,1fr));
	gap: 16px;
	margin: 0 0 24px;
}
.testdrive-form .ff-el-group.rifberg-form-field-full {
	margin: 0 0 24px !important;
}
.testdrive-form .rifberg-form-row-2col .ff-t-cell {
	padding: 0 !important;
}




@media all and (max-width: 767px) {
    .rifberg-pb-container {
        padding: 0 16px;
    }
    .testdrive-form .rifberg-form-row-2col {
        grid-template-columns: repeat(1,minmax(0,1fr));
    }
}