body.page-template-template-location #main-content-1 {
    margin-bottom: 0;
}
/* CFF Form Styles - Modern SBB Design */
.cff_widget_container {
    max-width: 600px;
    margin: 40px auto;
    background: #f6f6f6;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.cff_widget_wrap {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
}

.cff_header {
    padding: 16px 24px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
}

.the_content img.sbb_logo {
    height: 60px !important;
    width: auto !important;
    max-width: 320px !important;
    object-fit: contain;
}


.cff_form {
    padding: 32px 24px 24px 24px;
    background: #ffffff;
}

/* Form rows for responsive layout */
.form_row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.form_row:last-child {
    margin-bottom: 0;
}

.input_group {
    flex: 1;
    margin-bottom: 0;

    br {
        display: none;
    }
}

.input_group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cff_input {
    width: 100%;
    padding: 16px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
    background: #ffffff;
    box-sizing: border-box;
    transition: all 0.2s ease;
    font-family: inherit;
}

.cff_input:focus {
    outline: none;
    border-color: #eb0000;
    box-shadow: 0 0 0 2px rgba(235, 0, 0, 0.1);
}

.cff_input[readonly] {
    background-color: #f5f5f5;
    color: #333;
    cursor: default;
    border-color: #d0d0d0;
}

.cff_input::placeholder {
    color: #999;
    font-style: normal;
}

/* Date and Time inputs side by side */
.datetime_row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.datetime_row .input_group {
    flex: 1;
}

.radio_group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 24px 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.radio_options {
    display: flex;
    gap: 32px;
    align-items: center;
}

.radio_label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
    color: #333;
    font-size: 15px;
    position: relative;
}

.radio_label input[type="radio"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #eb0000;
    cursor: pointer;
}

.radio_text {
    user-select: none;
}

.cff_search_btn {
    background: #eb0000;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: auto;
    margin: 0;
    display: inline-block;
    min-width: 200px;
    letter-spacing: 0.5px;
    text-transform: capitalize;

    br {
        display: none;
    }
}

.cff_search_btn:hover {
    background: #d40000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(235, 0, 0, 0.3);
}

.cff_search_btn:active {
    background: #c50000;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cff_widget_container {
        margin: 20px 16px;
        border-radius: 8px;
    }

    .form_row {
        flex-direction: column;
        gap: 0;
    }

    .input_group {
        margin-bottom: 20px;
    }

    .datetime_row {
        flex-direction: column;
        gap: 0;
    }

    .datetime_row .input_group {
        margin-bottom: 20px;
    }

    .cff_form {
        padding: 24px 20px 20px 20px;
    }

    .cff_header {
        padding: 16px 20px;
    }

    .widget_title {
        font-size: 15px;
    }

    .radio_group {
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
        margin: 20px 0;
    }

    .radio_options {
        justify-content: flex-start;
    }

    .cff_search_btn {
        width: 100%;
        margin: 0;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .cff_widget_container {
        margin: 16px 12px;
    }

    .cff_form {
        padding: 20px 16px 16px 16px;
    }

    .cff_header {
        padding: 14px 16px;
    }

    .cff_search_btn {
        padding: 14px 24px;
        font-size: 14px;
    }

    .cff_input {
        padding: 14px 12px;
        font-size: 16px;
    }

    .sbb_logo {
        height: 18px;
    }

    .widget_title {
        font-size: 14px;
    }
    .the_content img.sbb_logo {
        max-width: 260px !important;
    }
}

/* Enhanced input states */
.cff_input.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.15);
}

.cff_input.success {
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.15);
}

/* Additional modern touches */
.cff_input:hover:not(:focus):not([readonly]) {
    border-color: #ccc;
}

.cff_widget_container:hover {
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.12);
}

/* Loading state for search button */
.cff_search_btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}