/* Gravity Forms */
.gform_wrapper{
    margin-bottom: 10px;
}
.gform_wrapper .gform_required_legend{
    display: none;
}
.gform_wrapper .gform_validation_errors{
    background: #fff !important;
}
.gform_wrapper .gform_confirmation_message{
    font-size: 18px;
}
.gform_wrapper .gfield_label{
    font-weight: 600 !important;
}
.gform_wrapper .gform-footer,
.gform_wrapper .gform-page-footer{
    display: flex;
    justify-content: flex-end;
}
@media (min-width: 576px){
    .gform-footer .button,
    .gform-page-footer .button{
        min-width: 150px !important;
        padding-block: 15px !important;
    }
}

/* Booking Form */
.booking-page{
    background: #f1f1f1;
}
.booking-page .gform_wrapper{
    --gf-form-gap-y: 24px;
}
.booking-page .gf_progressbar_wrapper{
    margin-bottom: 40px !important;
}
.booking-form .gsection h3{
    font-size: 20px;
    margin-top: 10px;
    margin-bottom: 0;
}
.booking-form .gform-page-footer{
    display: flex;
    justify-content: flex-end;
}
.booking-form .gform-page-footer .gform_previous_button{
    margin-right: auto !important;
}
.booking-form .course-notice{
    color: #084298;
    line-height: 1.6;
    border-radius: 5px;
    padding: 10px 15px;
    background: #eff7ff;
    border: 1px solid #204ce5;
}
.booking-form .course-notice a{
    color: #084298; 
    text-decoration: underline;
}
.booking-form .course-title{
    margin-top: 0;
}
.booking-form .course-info p{
    font-size: 16px;
}
.booking-form .course-info p:last-child{
    margin-bottom: 0;
}
.booking-form .gfield_total{
    display: inline-flex;
    align-items: center;
    background: #f1f1f1;
    margin-block: 10px;
    padding: 8px 15px;
    border-radius: 3px;
    border: 1px dashed var(--gf-ctrl-btn-bg-color-primary);
    gap: 5px;
}
.booking-form .gfield_total *{
    font-size: 18px !important;
    font-weight: bold !important;
}
.booking-form .gfield_total .gfield_label{
    margin-bottom: 0;
}
.booking-form .gfield_radio > div{
    align-items: center;
}
.booking-form .gfield_radio > div > label{
    font-size: 15px;
}
.booking-last-page .gform-body,
.booking-no-course .gform-page-footer,
.gform-page-footer .gform_save_link{
    display: none !important;
}
/* Product field for course */
#field_1_8{
    height: 0;
    opacity: 0;
    position: absolute;
    z-index: -1;
}
.booking-content,
.entry-content > .woocommerce{
    padding: 40px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 1px 1px 10px #ddd;
}
@media (max-width: 576px){
    .booking-content, .entry-content > .woocommerce{
        padding: 40px 20px 15px;
    }
    .woocommerce .woocommerce-info{
        display: block;
    }
    .button[name="apply_coupon"]{
        padding-inline: 15px;
    }
}

/* WooCommerce Checkout */
.btn-back{
    display: inline-block;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #686e77;
    padding: 10px 15px;
    margin-bottom: 20px;
}
.entry-content > .woocommerce::after{
    content: "";
    display: table;
    clear: both;
}
.woocommerce-checkout{
    background: #f1f1f1;
}
form.woocommerce-checkout{
    background: #fff;
}
form.woocommerce-checkout::after{
    content: "";
    display: table;
    clear: both;
}
.woocommerce{
    margin-bottom: 20px;
}
.woocommerce-additional-fields{
    display: none !important;
}
.woocommerce .woocommerce-info{
    min-height: auto;
}
.woocommerce #place_order{
    width: 100%;
}
.woocommerce .select2-container .select2-selection--single{
    height: 42px;
}
.woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered{
    line-height: 40px;
}
.woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow{
    top: 6px;
}
.woocommerce form .form-row .input-text {
    border-color: #686e77 !important;
    box-shadow: 0 1px 4px rgba(18, 25, 97, 0.0779552);
}
/* Hide pay/cancel buttons for invoice payment */
.woocommerce-table--order-details .order-actions--heading,
.woocommerce-table--order-details .order-actions--heading +  td{
    display: none;
}
.woocommerce-terms-and-conditions-wrapper > .woocommerce-terms-and-conditions p{
    font-size: 14px;
    padding: 0 !important;
    margin-bottom: 10px !important;
}
.woocommerce-terms-and-conditions-wrapper > .woocommerce-terms-and-conditions h3{
    font-size: 18px;
    margin-bottom: 15px;
}
.woocommerce-terms-and-conditions-wrapper > .woocommerce-terms-and-conditions ul{
    margin-bottom: 15px;
}

/* WC loading spinner override */
.woocommerce-checkout .blockUI.blockOverlay {
    background: rgba(255, 255, 255, 0.65) !important;
    z-index: 9999;
}
.woocommerce-checkout .blockUI.blockOverlay::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    margin-top: -18px;
    margin-left: -18px;
    border-radius: 50%;
    border: 3px solid rgba(10, 123, 218, 0.25); /* light ring */
    border-top-color: #0a7bda; 
    animation: wc-checkout-spin 0.8s linear infinite;
    background: none !important;
}
.woocommerce-checkout button.loading {
    opacity: 0.7;
    pointer-events: none;
}
.woocommerce-checkout button.loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 10px;
    border-radius: 50%;
    border: 2px solid rgba(10, 123, 218, 0.35);
    border-top-color: #0a7bda;
    animation: wc-checkout-spin 0.6s linear infinite;
}
@keyframes wc-checkout-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Order Received — Booking Details */
.curo-booking-entry {
    margin-top: 30px;
}
.curo-booking-entry-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}
.curo-booking-entry-table th,
.curo-booking-entry-table td {
    padding: 10px 14px;
    vertical-align: top;
    border-bottom: 1px solid #e8e8e8;
    text-align: left;
}
.curo-booking-entry-table th {
    width: 35%;
    font-weight: 600;
    color: #333;
    background: #f9f9f9;
}
.curo-booking-entry-table td {
    color: #444;
}
.curo-booking-entry-table tr:last-child th,
.curo-booking-entry-table tr:last-child td {
    border-bottom: none;
}
/* Attendees list sub-table */
.curo-booking-list-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 0;
}
.curo-booking-list-table th,
.curo-booking-list-table td {
    padding: 6px 10px;
    border: 1px solid #e0e0e0;
    text-align: left;
}
.curo-booking-list-table thead th {
    background: #f1f1f1;
    font-weight: 600;
}

/* Order Received — Cancellation Notice */
.curo-cancellation-notice {
    margin-top: 30px;
    margin-bottom: 30px !important;
}
.curo-cancellation-notice .woocommerce-order-details__title {
    margin-bottom: 12px;
}
.curo-cancellation-notice p {
    font-size: 15px;
    color: #444;
    margin-bottom: 14px;
    line-height: 1.6;
}
.curo-cancellation-notice a {
    color: #204ce5;
    text-decoration: none;
}
.curo-cancellation-notice a:hover {
    text-decoration: underline;
}
.curo-cancellation-disclaimer,
.curo-medical-notice-inner {
    font-size: 14px;
    color: #856404;
    background: #fff3cd;
    border-left: 4px solid #f59e0b;
    padding: 12px 16px;
    line-height: 1.6;
    border-radius: 0 4px 4px 0;
}

/* Order Received — Medical Notice */
.curo-medical-notice-inner a {
    color: #92400e;
    text-decoration: underline;
}
.curo-medical-notice-inner a:hover {
    text-decoration: none;
}