/* assets/css/style.css */
body{
    font-size: 15px;
}

#trr-booking-form {

    max-width: 1000px;

    margin: 0 auto;

}

#trr-booking-form label {

    display: block;

    margin-top: 10px;

}

#trr-booking-form input,

#trr-booking-form select {

    width: 100%;

}

.trr-step {

    border: 1px solid #ccc;

    padding: 10px;

    margin-bottom: 10px;





.card-header i {

    font-size: 1.8rem;

}

.form-control-lg {

    /*font-size: 1.1rem;*/

}

.input-group-text {

    font-weight: bold;

}

.collapse.show {

    animation: fadeIn 0.4s ease;

}

@keyframes fadeIn {

    from { opacity: 0; transform: translateY(-10px); }

    to   { opacity: 1; transform: translateY(0); }

}



input:disabled {

    background-color: #f8f9fa;

    opacity: 0.7;

    cursor: not-allowed;

}



input:disabled + .input-group-text {

    background-color: #e9ecef;

    color: #6c757d;

}



/* Make the switch toggles larger and more colorful */

.form-switch .form-check-input {

    width: 3em !important;

    height: 1.5em !important;

    margin-left: 0;

    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");

    background-position: left center;

    transition: background-position 0.15s ease-in-out;

}



.form-switch .form-check-input:checked {

    background-position: right center;

    background-color: #0d6efd; /* Bootstrap primary */

    border-color: #0d6efd;

}



/* Optional: change the color when the checkbox is disabled */

.form-switch .form-check-input:disabled {

    opacity: 0.5;

    cursor: not-allowed;

}



/* Add a visual cue for the required asterisk when the switch is on */

.form-switch .form-check-input:checked + label {

    font-weight: 600;

}

/* Invoice preview styling */

#preview_content.invoice-preview {

    background: white;

    border: 1px solid #dee2e6;

    border-radius: 0.5rem;

    padding: 2rem;

    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);

    margin-top: 1rem;

}



.invoice-header .placeholder {

    background-color: #e9ecef;

    border-radius: 0.25rem;

}



.invoice table th,

.invoice table td {

    vertical-align: middle;

}



.invoice tfoot th {

    font-weight: 600;

}



.invoice-footer {

    border-top: 1px dashed #dee2e6;

    padding-top: 1rem;

    font-size: 0.9rem;

}



/* Improve switch visibility */

.form-switch .form-check-input {

    width: 3em !important;

    height: 1.5em !important;

    margin-left: 0;

    background-color: #e9ecef;        /* light gray when off */

    border: 1px solid #adb5bd;         /* darker border for contrast */

    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");

    background-position: left center;

    transition: background-position 0.15s ease-in-out;

    cursor: pointer;

}



.form-switch .form-check-input:checked {

    background-position: right center;

    background-color: #0d6efd;        /* Bootstrap primary blue */

    border-color: #0d6efd;

}



/* Optional: style the label when checked */

.form-switch .form-check-input:checked + .form-check-label {

    font-weight: 600;

}



/* Ensure disabled switches look greyed out */

.form-switch .form-check-input:disabled {

    background-color: #f8f9fa;

    border-color: #dee2e6;

    opacity: 0.7;

    cursor: not-allowed;

}