/* Form Centering Styles */
.gform_wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.gf-multi-step-form {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 20px auto;
}

.gform_page {
    text-align: center;
}

.gform_page_fields {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.gform_page_footer {
    text-align: center;
    margin-top: 30px;
}

.custom-calendar-container {
    max-width: 600px;
    margin: 20px auto;
}

.calendar-widget {
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    padding: 1em;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
}

.calendar-header button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.2s;
}

.calendar-header button:hover {
    background: #e9ecef;
}

.month-year {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.day-header {
    padding: 15px 5px;
    text-align: center;
    font-weight: 600;
    color: #666;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
}

.day-cell {
    padding: 4px;
    aspect-ratio: 2;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.2s;
    position: relative;
    border-radius: 5px;
}

.day-cell.empty {
    color: #ccc;
    cursor: default;
}

.day-cell.available {
    background: #AFEDFE;
    color: #000;
    font-weight: 500;
}

.day-cell.available:hover {
    background: #88e5ff;
}

.day-cell.selected {
    background: #FFDDDD !important;
    color: #000 !important;
    font-weight: bold;
    border: 2px solid #FF0000;
}

.day-cell.unavailable {
    background: #fafafa;
    color: #bbb;
    cursor: not-allowed;
}

/* Calendar Legend */
.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.color-dot.green {
    background: #4caf50;
}

.color-dot.red {
    background: #f44336;
}

.color-dot.gray {
    background: #bbb;
}

/* Selected dates display */
.selected-dates-display {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.selected-dates-display h5 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
}

.selected-dates-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.selected-date-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid #bbdefb;
    display: flex;
    align-items: center;
    gap: 5px;
}

.selected-date-tag .remove {
    cursor: pointer;
    color: #f44336;
    font-weight: bold;
}

.no-dates-selected {
    color: #666;
    font-style: italic;
}


/* Payment Step Styles */
.training-pricing-summary {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

.training-pricing-summary h4 {
    margin: 0 0 15px 0;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 8px;
}

.price-breakdown {
    margin-bottom: 15px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.price-item .service {
    font-weight: 600;
    color: #333;
}

.price-item .duration {
    color: #666;
    font-style: italic;
}

.price-item .price {
    font-size: 18px;
    font-weight: bold;
    color: #28a745;
}

.price-total {
    padding: 15px 0;
    border-top: 2px solid #007cba;
    text-align: right;
    font-size: 20px;
    color: #333;
}

.pricing-includes h5 {
    margin: 15px 0 10px 0;
    color: #333;
}

.pricing-includes ul {
    margin: 0;
    padding-left: 20px;
}

.pricing-includes li {
    margin-bottom: 5px;
    color: #666;
}

/* Payment Method Radio Buttons */
.gf-payment-method .gchoice {
    margin-bottom: 15px !important;
    padding: 15px !important;
    border: 2px solid #e9ecef !important;
    border-radius: 8px !important;
    background: #fff !important;
    transition: all 0.3s ease !important;
}

.gf-payment-method .gchoice:hover {
    border-color: #007cba !important;
    background: #f8f9fa !important;
}

.gf-payment-method .gchoice input:checked + label {
    font-weight: bold;
    color: #007cba;
}

.gf-payment-method .gchoice.gchoice_selected {
    border-color: #007cba !important;
    background: #e3f2fd !important;
}

.gf-payment-method label {
    font-size: 16px !important;
    margin-left: 10px !important;
    cursor: pointer !important;
}

/* Payment Info Sections */
.stripe-payment-info, .invoice-payment-info {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

.stripe-payment-info h5 {
    color: #6772e5;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.invoice-payment-info h5 {
    color: #28a745;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-security {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.security-badge {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.invoice-details h6 {
    margin: 15px 0 10px 0;
    color: #333;
}

.invoice-details ul {
    margin: 0;
    padding-left: 20px;
}

.invoice-details li {
    margin-bottom: 8px;
    color: #666;
}

.invoice-details strong {
    color: #333;
}

/* Conditional Fields for Invoice */
.gf-po-number, .gf-billing-address {
    margin-top: 15px;
}

/* Confirmation Page Styles */
.booking-confirmation {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
}

.booking-confirmation h3 {
    color: #155724;
    margin: 0 0 15px 0;
}

.booking-summary {
    background: #fff;
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
    text-align: left;
}

.booking-summary h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.payment-next-steps {
    margin-top: 20px;
    text-align: left;
}

.payment-next-steps h5 {
    color: #333;
    margin: 0 0 10px 0;
}

.stripe-next, .invoice-next {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    border-left: 4px solid #007cba;
}


/* Additional Form Styling */
.gform_heading {
    text-align: center;
    margin-bottom: 30px;
}

.gform_title {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.gform_description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* Step Progress Bar Centering */
.gf_progressbar_wrapper {
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.gform_page_footer .gform_previous_button {
    background: #6c757d !important;
    margin-right: 15px !important;
}

.gform_page_footer .gform_previous_button:hover {
    background: #545b62 !important;
}

.calendar-widget, .selected-dates-display {
    background-color: #FF9EBB;
    border: none;
}

.calendar-widget .prev-month, .calendar-widget .next-month {
    background-color: initial !important;
    box-shadow: none !important;
    color: #000 !important;
    font-size: 20px !important;
}

.calendar-navigation {
    display: flex;
    align-items: center;
}

.month-year {
    display: block;
}

.day-header {
    background-color: initial;
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    .calendar-header {
        justify-content: center;
        padding: 10px 15px;
    }

    .calendar-header-title {
        display: none;
    }

    .calendar-navigation > * {
        color: #fff;
    }
    
    .day-header, .day-cell {
        padding: 10px 5px;
        font-size: 13px;
    }
    
    .calendar-legend {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .price-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .price-item .price {
        align-self: flex-end;
    }
    
    .payment-security {
        flex-direction: column;
        gap: 8px;
    }
    
    .security-badge {
        display: inline-block;
        margin-right: 10px;
    }
    
    .gf-multi-step-form {
        padding: 20px;
        margin: 10px auto;
    }
    
    .gform_page_fields {
        max-width: 100%;
    }

    .calendar-grid {
        display: block;
        background: #FF9EBB;
        padding: 20px 0 30px 0;
        border-radius: 0 0 20px 20px;
    }
    .calendar-list-mobile-cards {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }
    .calendar-mobile-card {
        background: #fff;
        border-radius: 12px;
        padding: 18px 20px 14px 20px;
        display: flex;
        flex-direction: row;
        align-items: center;
        position: relative;
        transition: box-shadow 0.2s;
        justify-content: space-between;
    }

    .calendar-mobile-card.selected {
        box-shadow: 0 4px 16px rgba(255,0,80,0.13);
        border: 2px solid #FF9EBB;
    }

    .calendar-mobile-date-row {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        flex-direction: column;
    }
    .calendar-mobile-date {
        font-size: 20px;
        font-weight: 600;
        color: #222;
    }
    .calendar-mobile-status {
        font-size: 15px;
        color: #444;
        background: none;
        font-weight: 400;
    }
    .calendar-mobile-btn {
        margin-top: 0;
        padding: 7px 22px;
        font-size: 16px !important;
        border-radius: 6px !important;
        border: 2px solid #FF9EBB;
        background-color: #fff ! important;
        color: #FF9EBB ! important;
        font-weight: 600 !important;
        transition: all 0.18s ! important;
        outline: 2px solid #FF9EBB !important;
    }
    .calendar-mobile-btn.selected,
    .calendar-mobile-btn:active {
        background: #FF9EBB !important;
        color: #fff !important;
        border-color: #FF9EBB !important;
    }
    .calendar-mobile-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    .calendar-widget .calendar-legend {
        display: none;
    }

    .calendar-widget .prev-month, .calendar-widget .next-month {
        color: #fff !important;
    }
}
