/* Invalid field styling */
.form-control.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.15);
}

.form-control.is-invalid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
}

.maintenance-form-container2 a{color: white !important;}
.maintenance-form-container2 a:hover{color: var(--shades01) !important;}

.maintenance-form-container2 .checkbox .checkbox-label:before{content:'';position:absolute;width: 20px;height: 20px;background-color: transparent;border: 1px solid #000;top: -1px;left: -30px; border-radius: 4px;transition: all 0.3s ease;}

.label-km {
    font-size: 14px !important;
    font-weight: 400;
    color: #666;
}

.label-km2 {
    margin-top: 2px;
    border-top: none;
    padding-top: 0;
}

.section-page-header {
    display: none;
}
.timeslot-option {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    text-align: center;
}

.timeslot-option:hover:not(.timeslot-disabled) {
    border-color: #440071;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(68, 0, 113, 0.15);
}

.timeslot-option.timeslot-selected {
    background: #440071;
    border-color: #440071;
}

.timeslot-option.timeslot-selected .timeslot-time {
    color: white;
}

.timeslot-option.timeslot-selected .timeslot-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.timeslot-option.timeslot-disabled {
    background: #f5f5f5;
    border-color: #e0e0e0;
    cursor: not-allowed;
    opacity: 0.6;
}

.timeslot-option.timeslot-afterhours:not(.timeslot-disabled):not(.timeslot-selected) {
    border-color: #f44336;
    background: #ffebee;
}

.timeslot-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.timeslot-start,
.timeslot-end {
    line-height: 1.2;
}

.timeslot-divider {
    width: 60%;
    height: 2px;
    background: #ccc;
    border-radius: 1px;
}

.timeslot-selected .timeslot-divider {
    background: rgba(255, 255, 255, 0.5);
}

.timeslot-badge {
    display: inline-block;
    background: #ff9800;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeslot-badge-afterhours {
    background: #f44336;
}

.timeslot-unavailable {
    color: #999;
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
}

.timeslot-option.timeslot-disabled .timeslot-time {
    color: #999;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.payment-option-grid {
    display: grid;
    /*grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));*/
    gap: 12px;
}

.payment-option {
    background: white;
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 12px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.payment-option:hover {
    border-color: #440071;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(68, 0, 113, 0.1);
}

.payment-option-selected {
    border-color: #440071 !important;
    border-width: 2px !important;
    background: #f4e6ff !important;
    box-shadow: 0 0 0 3px rgba(68, 0, 113, 0.1) !important;
}

@media (max-width: 768px) {
    .payment-option-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 8px;
    }
    .payment-option {
        padding: 12px 8px;
        min-height: 60px;
    }
}

.callout-options {
    display: flex;
    flex-direction: row;
    gap: 16px;
    margin-bottom: 16px;
}
.callout-option {
    display: flex;
    flex-direction: row;
    width: 100%;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
}
.callout-option:hover {
    border-color: #440071;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(68, 0, 113, 0.1);
}
.callout-option input[type="radio"] {
    display: none;
}
.callout-option-selected {
    border-color: #440071 !important;
    border-width: 2px !important;
    background: #f4e6ff !important;
    box-shadow: 0 0 0 3px rgba(68, 0, 113, 0.1) !important;
}

.option-inner {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.calendar-weekday {
    font-size: 14px;
    font-weight: 600;
    color: #440071;
    text-align: center;
    padding: 12px 0;
}

.calendar-day {
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
}

.calendar-day-number {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}


.calendar-day-empty {
    border: none;
    cursor: default;
}

.calendar-day-price {
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
}


/* Calendar wrapper */
.calendar-wrapper {
    position: relative;
}

/* Calendar placeholder message */
.calendar-placeholder {
    background: white;
    border-radius: 6px;
    padding: 30px 20px;
    text-align: center;
    color: #666;
}

.calendar-placeholder p {
    margin: 0;
    font-size: 14px;
}

/* Calendar loading overlay */
.calendar-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.calendar-loading-content {
    text-align: center;
}

.calendar-loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #440071;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.calendar-loading-text {
    margin-top: 10px;
    color: #440071;
    font-weight: 500;
}

/* Timeslot section */
.timeslot-section {
    margin-top: 20px;
}

.timeslot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

/* Additional info section */
.additional-info-section {
    margin-top: 16px;
}

.section-maintenance-instruction .maintenance-form2 {
    padding: 20px;
}

.section-maintenance-instruction .maintenance-form2 .form-header {
    margin: 0;
}

.section-maintenance-instruction .maintenance-form2 textarea.form-control {
    min-height: 60px;
}

.section-maintenance-instruction .maintenance-form2 .form-note {
    color: #333;
}

.section-maintenance-instruction .maintenance-form2 .form-control-file .input-file-icon{
    color: var(--shades02);
}

.section-maintenance-instruction .maintenance-form2 .fieldset {
    margin: 0 0 10px;
}

/* Form labels in maintenance section */
.section-maintenance-instruction .maintenance-form2 .form-label {
    color: #333;
}

/* Form inputs - add visible borders */
.section-maintenance-instruction .maintenance-form2 .form-control,
.section-maintenance-instruction .maintenance-form2 .form-select {
    background: #ffffff;
    border: 1px solid #d0d0d0;
    transition: border-color 0.2s ease;
}

.section-maintenance-instruction .maintenance-form2 .form-control:focus,
.section-maintenance-instruction .maintenance-form2 .form-select:focus {
    border-color: #440071;
    outline: none;
    box-shadow: 0 0 0 2px rgba(68, 0, 113, 0.1);
}

.section-maintenance-instruction .maintenance-form2 .form-control:hover,
.section-maintenance-instruction .maintenance-form2 .form-select:hover {
    border-color: #999;
}

.section-maintenance-instruction .maintenance-form2 .form-checkbox-group .checkbox .checkbox-label{
    color: var(--shades02);
}

.section-maintenance-instruction .maintenance-form2 .form-control-file .input-file-content{
    border: 1px solid var(--shades02);
    height: 50px;
}

.section-maintenance-instruction .maintenance-form2 .form-control-file .input-file-name{
    color: var(--shades02);
}

.section-maintenance-instruction .maintenance-form2 .checkbox .checkbox-label{
    color: var(--shades02);
}

.grouped-section {
    margin-top: 16px;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 8px;
}

.grouped-section h3,
.grouped-section-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #440071;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

/* Payment section */
.payment-section {
    margin-top: 24px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.payment-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #333;
}

.payment-group {
    margin-bottom: 20px;
}

.payment-group h4 {
    color: #666;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-option-logo {
    max-width: 100%;
    max-height: 24px;
    object-fit: contain;
}

.payment-invoice-note {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

/* Order summary */
.order-summary {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-top: 24px;
    margin-bottom: 24px;
    border: 1px solid #e0e0e0;
}

.order-summary-header {
    color: #440071;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.order-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.order-summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-summary-item-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.order-summary-item-value {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

.order-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 0 0;
    margin-top: 12px;
    border-top: 2px solid #f0f0f0;
}

.order-summary-total-label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.order-summary-total-value {
    font-size: 22px;
    font-weight: 700;
    color: #440071;
}

/* Compact order summary - invoice style */
.order-summary-compact {
    padding: 16px;
}

.order-summary-columns {
    display: grid;
    grid-template-columns: 0.5fr 1fr;
    gap: 16px;
    margin-bottom: 4px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e0e0e0;
}

.order-summary-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-summary-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.order-summary-compact .order-summary-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.order-summary-compact .order-summary-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.order-summary-pricing {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.order-summary-pricing .order-summary-total {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    margin: 0;
    border: none;
    /*border-bottom: 1px solid #f0f0f0;*/
}

.order-summary-pricing .order-summary-total:last-child {
    border-bottom: none;
}

.order-summary-pricing .order-summary-total-label {
    font-size: 14px;
    font-weight: 400;
    color: #666;
}

.order-summary-pricing .order-summary-total-value {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    text-align: right;
}

.order-summary-pricing .order-summary-final {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 2px solid #e0e0e0;
    border-bottom: none;
}

.order-summary-pricing .order-summary-final .order-summary-total-label {
    font-size: 17px;
    font-weight: 600;
    color: #333;
}

.order-summary-pricing .order-summary-final .order-summary-total-value {
    font-size: 16px;
    font-weight: 700;
    color: #440071;
}

@media (max-width: 600px) {
    .order-summary-columns {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .col-span-half,
    .col-span-third,
    .col-span-quarter {
        grid-column: span 4 / span 4 !important;
    }
}

@media (max-width: 426px) {
    .section-maintenance-instruction > .container {
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
        margin: 0;
    }
}

/* Form footer - like modal footer */
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 16px;
    /*border-top: 1px solid #e0e0e0;*/
}

.form-footer-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-footer-end {
    justify-content: flex-end;
}

/* Back/Cancel button - outlined/ghost style */
.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    border: 1px solid #ccc;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    height: 48px;
}

.btn-back:hover {
    border-color: #fff;
    color: #FF2E44;
}

.btn-back:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.maintenance-form2 .btn-action:disabled {
    background-color: var(--red);
    border-color: var(--red);
    opacity: 0.6;
    cursor: not-allowed;
}

/* Info box */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.info-box i {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-box p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.info-box-warning {
    background-color: #fff8e6;
    border: 1px solid #f0d78c;
    color: #8a6d00;
}

.info-box-warning i {
    color: #d4a600;
}

/* Form action section */
.form-action-section {
    margin-top: 24px;
}


.calendar {
    border-radius: 12px;
    margin: 20px 0;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-month {
    font-size: 20px;
    font-weight: 600;
    color: #440071;
    text-transform: capitalize;
}

.calendar-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.calendar-nav-btn,
.calendar-today-btn {
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #440071;
}

.calendar-today-btn {
    border-radius: 18px;
    padding: 0 16px;
    width: auto;
    font-size: 14px;
    font-weight: 500;
}

.calendar-nav-btn:hover,
.calendar-today-btn:hover {
    background: #440071;
    color: white;
}

.calendar-legend {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

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

.legend-item input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.calendar-day-green {
    border-color: #00C853;
    background: #f1f8f4;
}

.calendar-day-purple {
    border-color: #440071;
    background: #f5f3ff;
}

.calendar-day-green .calendar-day-price {
    color: #4CAF50;
}

.calendar-day-blue {
    border-color: #2196F3;
    background: #f0f7ff;
}

.calendar-day-blue .calendar-day-price {
    color: #2196F3;
}

.calendar-day-orange {
    border-color: #FF9800;
    background: #fff8f0;
}

.calendar-day-orange .calendar-day-price {
    color: #FF9800;
}

.calendar-day-pink,
.calendar-day-red {
    border-color: #E91E63;
    background: #fff0f5;
}

.calendar-day-pink .calendar-day-price,
.calendar-day-red .calendar-day-price {
    color: #E91E63;
}

.calendar-day-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #d6d6d6;
}

.calendar-day-selected {
    border-color: #440071 !important;
    background: #440071 !important;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(68, 0, 113, 0.3);
}

.calendar-day-selected .calendar-day-number,
.calendar-day-selected .calendar-day-price {
    color: white !important;
}

.calendar-day:not(.calendar-day-disabled):not(.calendar-day-empty):hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.calendar-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    font-size: 12px;
    color: #666;
    text-align: center;
    line-height: 1.5;
}


/* Responsive Calendar */
@media (max-width: 768px) {
    .calendar-day {

    }

    .calendar-day-number {
        font-size: 14px;
    }

    .calendar-day-price {
        font-size: 10px;
    }

    .calendar-month {
        font-size: 16px;
    }

    .calendar-legend {
        gap: 8px;
    }

    .legend-item {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .calendar-grid {
        gap: 4px;
    }

    .calendar-day {
        min-height: 50px;
    }

    .calendar-day-number {
        font-size: 12px;
    }

    .calendar-day-price {
        font-size: 8px;
    }
}

/* Inquiry confirmation modal - compact centered style */
.inquiry-modal-content {
    text-align: center;
    padding: 10px;
}

.inquiry-modal-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: #fff3cd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inquiry-modal-icon i {
    font-size: 28px;
    color: #856404;
}

.inquiry-modal-content h3 {
    color: #333;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.inquiry-modal-content p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.inquiry-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.inquiry-modal-btn {
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.inquiry-modal-btn-cancel {
    background: #f0f0f0;
    color: #666;
    border: 1px solid #ddd;
}

.inquiry-modal-btn-cancel:hover {
    background: #e0e0e0;
    color: #333;
}

.inquiry-modal-btn-secondary {
    background: white;
    color: #440071;
    border: 2px solid #440071;
}

.inquiry-modal-btn-secondary:hover {
    background: #f5f0fa;
}

.inquiry-modal-btn-confirm {
    background: #440071;
    color: white;
}

.inquiry-modal-btn-confirm:hover {
    background: #5a0099;
}

/* Override lemodal styles for inquiry modal to make it compact */
.lemodal-window:has(.inquiry-modal-content) > div {
    position: relative;
    top: auto;
    bottom: auto;
    max-width: 640px;
    height: auto;
    max-height: 90vh;
}

.lemodal-window:has(.inquiry-modal-content) .lemodal-content {
    height: auto;
    overflow: visible;
}

.lemodal-window:has(.inquiry-modal-content) .lemodal-footer {
    display: none;
}

/* Fallback for browsers that don't support :has() */
@supports not selector(:has(*)) {
    .inquiry-modal-content {
        padding-bottom: 0;
    }
}