/* The Modal (background) */
.qlk-commerce-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 100;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
}

/* Modal Content/Box */
.qlk-commerce-modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 15% auto;
    /* 15% from the top and centered */
    padding: 0;
    border: 1px solid #888;
    max-width: 50rem;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    animation-name: qlkmodalanimatetop;
    animation-duration: 0.4s
    /* Could be more or less, depending on screen size */
}


/* Modal Header */
.qlk-commerce-modal-header {
    padding: 2px 16px;
    background-color: #5cb85c;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Modal Body */
.qlk-commerce-modal-body {
    padding: 40px 0px;
}

.qlk-commerce-modal-body #qlk-commerce-confirm-cancel-order-content{
    padding: 0px 40px;
}

.qlk-commerce-modal-body .tab-content{
    padding: 20px;
}

.qlk-commerce-modal-body .qlk-commerce-loading-text{
    /* text-align: center; */
}

/* Modal Footer */
.qlk-commerce-modal-footer {
    padding: 15px;
    text-align: right;
    border-top: 1px solid #bdc7c4;
}

/* The Close Button */
.qlk-commerce-modal-close {
    color: #aaa;
    font-size: 38px;
    /* font-weight: bold; */
}

.qlk-commerce-modal-close:hover,
.qlk-commerce-modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

@keyframes qlkmodalanimatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

/*form*/
.qlk-commerce-inline-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.qlk-commerce-inline-form div {
    display: flex;
    flex-direction: column;
}

.qlk-commerce-inline-form label {
    margin-bottom: 0.5rem;
}

.qlk-commerce-form-group-counter{
    display: flex;
    margin-bottom: 0.5rem;
}
.qlk-commerce-form-group-counter label{
    width: 120px;
}

.qlk-commerce-form-group-counter .qlk-commerce-form-group-counter-input{
    display: flex;
}
.qlk-commerce-form-group-counter .qlk-commerce-form-group-counter-input input{
    width: 50px;
    padding: 9px 10px;
}

/*calendar*/

.qlk-commerce-calendar-item {
    min-width: max-content;
    max-width: max-content;
    padding: 10px 16px;
    border: 1px solid #e9ecec;
    cursor: pointer;
    height: 100%;
    flex: 1 1 0%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: .625rem;
}

.qlk-commerce-calendar-item-title,
.qlk-commerce-booking-price-label{
    font-size: .702rem;
    line-height: 1.0625rem;
    font-weight: 400;
}
.qlk-commerce-booking-price{    
    font-size: 1.125rem;
    line-height: 1.5rem;
}
.qlk-commerce-booking-no-price{    
    font-size: 1.125rem;
    line-height: 1.5rem;
    color: #eb0578;
}
.qlk-commerce-calendar-item .qlk-commerce-booking-price{
    font-size: 18px;
    line-height: 18px;
}
.qlk-commerce-calendar-item.selected{
    border: 2px solid #00a5d3;
}

.qlk-commerce-modality-container{
    display: flex;
}

.qlk-commerce-modality-item{
    margin-bottom: 10px;
    border-radius: 1.25rem;
    background-color: #ffffff;
    border: 1px solid #eee;
}

.qlk-commerce-modality-item-header{
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #eee;;
}

.qlk-commerce-modality-item-title{
    font-size: 1.125rem;
    line-height: 1.5rem;
}

.qlk-commerce-modality-item-title label{
    cursor: pointer;
}

.qlk-commerce-modality-item.selected .qlk-commerce-modality-item-title{
    font-weight: 700;
}

.qlk-commerce-modality-item-body{
    padding: 10px 24px 20px 24px;
}

.qlk-commerce-modality-item-sessions{
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.qlk-commerce-modality-item-comments{
    margin-top: 10px;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.qlk-commerce-rate-item {
    flex: 1 1 100%;
}

@media (min-width: 768px) {
    .qlk-commerce-rate-item {
        /* flex: 1 1 calc(33.333% - 1rem); */
        flex: 1 1 calc(50% - 1rem);
    }
}

.qlk-commerce-rate-class-nrf,
.qlk-commerce-rate-class-nor{
    margin-bottom: 10px;
}

.qlk-commerce-rate-class-nrf{
    color: #eb0578;
}

.qlk-commerce-rate-class-nor{
    color: #00C45C;
}

.qlk-commerce-booking-step-title{
    font-size: 1.125rem;
    line-height: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 10px;
}
.qlk-commerce-booking-step-title .qlk-commerce-booking-step-badge{

    display: flex;
    height: 1.563rem;
    width: 1.563rem;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    background-color: #00a5d3;
    font-size: .889rem;
    line-height: 1.25rem;
    color: #fff;
}

.qlk-commerce-total-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #bdc7c4;
    padding: 20px 0px;
}

.qlk-commerce-total-item:last-child{
    border-bottom: none;
}

.qlk-commerce-booking-price-container{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.qlk-commerce-total-general {
    border-top: 1px solid #000;
    display: flex;
    justify-content: space-between;
    padding: 20px 0px;
}

.qlk-commerce-total-general .qlk-commerce-booking-price{
    font-size: 2.027rem;
    line-height: 2.6rem;
}

.qlk-commerce-cancelation-policy{
    padding: 0px 20px;
}

/* Loading styles */
.qlk-commerce-loading {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.qlk-commerce-loading-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.qlk-commerce-loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #eb0578;
    border-radius: 50%;
    animation: qlk-commerce-spin 1s linear infinite;
}

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

/* Questions styles */
.qlk-commerce-questions-container {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.qlk-commerce-question-item {
    margin-bottom: 15px;
}

.qlk-commerce-question-item label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.qlk-commerce-question-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.15s ease-in-out;
}

.qlk-commerce-question-input:focus {
    outline: none;
    border-color: #00a5d3;
    box-shadow: 0 0 0 0.2rem rgba(0, 165, 211, 0.25);
}

.qlk-commerce-question-input[required] {
    border-left: 3px solid #00a5d3;
}

/* Error styles */
.qlk-commerce-input-error {
    border-color: #dc3545 !important;
}

.qlk-commerce-error-message {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}


/* Ajustes Rafa */

#step-3 h3 {
    font-size: 18px;
    line-height: 22px;
    margin-top: 0px;
}
#step-3 .box {
    overflow-x: auto;
    display: flex;
    flex-wrap: nowrap;
    padding: 10px 0px; 
    margin-bottom: 20px;
    gap: 10px;
}
#step-3 > div > div:not(#qlk-commerce-questions-container) {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 10px;
}
#step-3 input[type="radio"] {
    vertical-align: middle;
}
#step-3 .qlk-commerce-total-general .qlk-commerce-booking-price {
    font-size: 18px !important;
    line-height: 18px !important;
    font-weight: bold;
}

/* Aramon Product Form Styles */
.qlk-aramon-product-container {
    padding: 20px;
}

.qlk-aramon-product-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #00a5d3;
}

.qlk-aramon-product-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    text-align: left;
    display: block !important;
}

.qlk-aramon-product-container h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.qlk-aramon-product-container select.qlk-aramon-form-input {
    cursor: pointer;
}

.qlk-aramon-product-container .qlk-aramon-form-group {
    margin-bottom: 18px;
}

.qlk-aramon-product-container .qlk-aramon-form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.qlk-aramon-product-container .qlk-aramon-form-label-required::after {
    content: " *";
    color: #dc3545;
}

.qlk-aramon-product-container .qlk-aramon-form-input {
    width: 100%;
    padding: 14px 24px !important;
    font-size: 14px;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-sizing: border-box;
}

.qlk-aramon-product-container .qlk-aramon-form-input:focus {
    outline: none;
    border-color: #00a5d3;
    box-shadow: 0 0 0 0.2rem rgba(0, 165, 211, 0.25);
}

.qlk-aramon-product-container .qlk-aramon-alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.qlk-aramon-product-container .qlk-aramon-alert-success {
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
    color: #0f5132;
}

.qlk-aramon-product-container .qlk-aramon-alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    color: #842029;
}

/* Aramon Sections */
.qlk-aramon-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;
}

.qlk-aramon-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

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

/* Radio Buttons */
.qlk-aramon-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qlk-aramon-radio-label {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid #ced4da;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #fff;
}

.qlk-aramon-radio-label:hover {
    border-color: #00a5d3;
    background-color: #f8f9fa;
}

.qlk-aramon-radio-label input[type="radio"] {
    margin: 0 12px 0 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.qlk-aramon-radio-label input[type="radio"]:checked + span {
    font-weight: 600;
    color: #00a5d3;
}

.qlk-aramon-radio-label span {
    font-size: 14px;
    color: #495057;
}

/* Checkbox */
.qlk-aramon-checkbox-label {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid #ced4da;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #fff;
}

.qlk-aramon-checkbox-label:hover {
    border-color: #00a5d3;
    background-color: #f8f9fa;
}

.qlk-aramon-checkbox-label input[type="checkbox"] {
    margin: 0 12px 0 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.qlk-aramon-checkbox-label span {
    font-size: 14px;
    color: #495057;
}

.qlk-aramon-checkbox-label input[type="checkbox"]:checked ~ span {
    font-weight: 600;
    color: #00a5d3;
}

/* Order Summary */
.qlk-aramon-summary {
    background-color: #f8f9fa;
    border: 2px solid #00a5d3;
    border-radius: 8px;
    padding: 20px;
}

.qlk-aramon-summary-items {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 2px dashed #ced4da;
}

.qlk-aramon-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}

.qlk-aramon-summary-item-name {
    color: #495057;
}

.qlk-aramon-summary-item-price {
    font-weight: 600;
    color: #333;
}

.qlk-aramon-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.qlk-aramon-summary-total strong {
    color: #00a5d3;
    font-size: 24px;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .qlk-aramon-section {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    .qlk-aramon-radio-label,
    .qlk-aramon-checkbox-label {
        padding: 10px 12px;
    }

    .qlk-aramon-summary {
        padding: 16px;
    }

    .qlk-aramon-summary-total {
        font-size: 16px;
    }

    .qlk-aramon-summary-total strong {
        font-size: 20px;
    }
}