.pf-step {
    max-width: 928px;
    margin: 0 auto;
    padding: 16px 32px 32px 32px;
    color: #161615;
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
}

.pf-form {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Reduce space below header specifically for Step 1 */
.page-slug-parking-reservation-step-1 main.wp-block-group,
body:has(.pf-step--first) main.wp-block-group {
    margin-top: var(--wp--preset--spacing--50) !important;
}

.pf-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pf-section__title,
.pf-step h1,
.pf-step h2,
.pf-step h3 {
    position: relative;
    margin: 0;
    font-size: 22px;
    line-height: 32px;
    font-weight: 700;
    text-transform: uppercase;
    font-family: 'Roboto', sans-serif !important;
}

/* Offer cards */
.pf-offers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pf-info-text {
    padding: 24px;
    background: #f5f7f8;
    font-size: 15px;
    line-height: 1.5;
    color: #161615;
    text-align: left;
    border-radius: 0;
}

.pf-offer-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 24px;
    min-height: 80px;
    background: #fff;
    border: 2px solid #e5e5e5;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pf-offer-card__title {
    font-size: 18px;
    line-height: 27px;
    font-weight: 400;
}

.pf-offer-card__price {
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
}

.pf-offer-card input[type="radio"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.pf-offer-card:hover {
    border-color: #cfcfcf;
}

.pf-offer-card.selected {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 1px #1a1a1a inset;
    background: #eb4f4f20;
    /* Light blue-ish fallback if I'm wrong, but let's try #ebf4ff */
}

/* Let's actually use a clean light blue */
.pf-offer-card.selected {
    background: #ebf4ff;
}

.pf-offer-card__price {
    display: none;
}

/* Details form */
.pf-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 0.6fr;
    grid-template-areas:
        "title-det title-det title-pri"
        "field-dat field-pla field-pri";
    column-gap: 24px;
    row-gap: 8px;
    align-items: stretch;
}

.pf-details-grid__title-details {
    grid-area: title-det;
}

.pf-details-grid__title-price {
    grid-area: title-pri;
}

.pf-details-grid__field-date {
    grid-area: field-dat;
}

.pf-details-grid__field-plate {
    grid-area: field-pla;
}

.pf-details-grid__field-price {
    grid-area: field-pri;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pf-field {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 16px;
    width: 100%;
}

.pf-field__label {
    font-size: 15px;
    line-height: 24px;
    font-weight: 700;
    text-transform: uppercase;
}

.pf-field__title {
    font-size: 22px;
    line-height: 32px;
    font-weight: 700;
    text-transform: uppercase;
    color: #161615;
    margin: 0;
    display: block;
}

.pf-field__subtext {
    font-size: 16px;
    line-height: 24px;
    color: #1a1a1a;
    margin: 0;
    display: block;
}

.pf-details-grid__field-price {
    gap: 12px;
}

.pf-input-wrap {
    position: relative;
    margin-top: auto;
}

.pf-input {
    width: 100%;
    height: 52px;
    padding: 12px 16px;
    background: #fff;
    border: 2px solid #e5e5e5;
    font-size: 15px;
    line-height: 24px;
    color: #161615;
    border-radius: 0;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
    margin-top: auto;
}

.pf-input:focus,
.pf-input.is-active {
    border: 2px solid #1a1a1a !important;
    box-shadow: none !important;
    background-color: #ffffff !important;
}

/* More robust fix for browser autofill (blue background) */
.pf-input:-webkit-autofill,
.pf-input:-webkit-autofill:hover,
.pf-input:-webkit-autofill:focus,
.pf-input:-webkit-autofill:active {
    border: 2px solid #1a1a1a !important;
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
    box-shadow: 0 0 0 1000px white inset !important;
    -webkit-text-fill-color: #161615 !important;
    transition: background-color 5000s ease-in-out 0s;
}

.pf-input--date {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23161615' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 48px;
}

.pf-button {
    align-self: flex-end;
    min-width: 100px;
    height: 48px;
    padding: 12px 20px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    text-align: center;
    font-size: 16px;
    line-height: 24px;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.pf-button:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.pf-button:active {
    transform: translateY(1px);
}

/* Responsive tweaks */
@media (max-width: 640px) {
    .pf-step {
        padding: 24px 16px;
    }

    .pf-form {
        gap: 32px;
    }

    .pf-section__title {
        font-size: 22px;
    }

    .pf-details-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title-det"
            "field-dat"
            "field-pla"
            "title-pri"
            "field-pri";
        gap: 16px;
    }

    .pf-details-grid__field-price {
        align-self: stretch;
    }
}