/* Estilos personalizados para el formulario de selección de rol */
.custom-checkout-form {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.custom-checkout-form h3 {
    color: #000;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.custom-checkout-form h4 {
    color: #000;
    font-size: 18px;
    margin: 20px 0 15px;
    font-weight: 500;
}

.custom-checkout-form label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    cursor: pointer;
}

.custom-checkout-form input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.custom-checkout-form input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.custom-checkout-form input[type="text"],
.custom-checkout-form input[type="email"],
.custom-checkout-form input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 16px;
}

.custom-checkout-form input[type="text"]:focus,
.custom-checkout-form input[type="email"]:focus,
.custom-checkout-form input[type="number"]:focus {
    border-color: #D72529;
    outline: none;
    box-shadow: 0 0 0 2px rgba(215, 37, 41, 0.2);
}

.custom-checkout-form .option-group {
    margin-bottom: 20px;
}

.custom-checkout-form .option-group label {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.custom-checkout-form .option-group label:hover {
    background-color: #f9f9f9;
}

.custom-checkout-form .option-group input[type="radio"]:checked + label {
    border-color: #D72529;
    background-color: #fff5f5;
}

/* Estilos para las tarjetas de selección de rol */
.role-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.role-card {
    flex: 1;
    min-width: 250px;
    height: 200px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0;
}

.role-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.role-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.role-card-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    background-size: cover;
    background-position: center;
    color: white;
    z-index: 0;
}

.role-card-content:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.role-card-content h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    position: relative;
    z-index: 2;
    color: white !important;
    border: none !important;
    padding: 0 !important;
}

.role-card-content p {
    margin: 5px 0 0;
    font-size: 16px;
    position: relative;
    z-index: 2;
}

.role-card input[type="radio"]:checked + .role-card-content {
    border: 3px solid #D72529;
}

.role-card input[type="radio"]:checked + .role-card-content:after {
    content: '✓';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: #D72529;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    z-index: 2;
}

.paciente-bg {
    background-image: url('https://kyru.gopidev.com/wp-content/uploads/2025/04/65663.jpg') !important;
}

.odontologo-bg {
    background-image: url('https://kyru.gopidev.com/wp-content/uploads/2025/04/1043.jpg') !important;
}

.custom-checkout-button {
    background-color: #D72529 !important;
    color: white !important;
    padding: 15px 25px !important;
    font-size: 16px !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block !important;
    text-align: center !important;
    margin-top: 15px !important;
}

.custom-checkout-button:hover {
    background-color: #c01e22 !important;
}

/* Estilos para el mensaje de carga */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

#loading-overlay div {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-size: 18px;
    color: #333;
    text-align: center;
}

/* Estilos para el carrito vacío */
.cart-empty.woocommerce-info {
    background-color: #f8f8f8;
    border: none;
    color: #333;
    padding: 20px;
    text-align: center;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 16px;
}

.return-to-shop .button.wc-backward {
    background-color: #f8f8f8;
    color: #333;
    border: 1px solid #ddd;
}

/* Estilos para los campos de checkout */
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout #order_review_heading {
    color: #000;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
}

.woocommerce-checkout .form-row label {
    font-weight: 500;
    color: #333;
}

.woocommerce-checkout .form-row .input-text {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.woocommerce-checkout .form-row .input-text:focus {
    border-color: #D72529;
    outline: none;
    box-shadow: 0 0 0 2px rgba(215, 37, 41, 0.2);
}

.woocommerce-checkout #place_order {
    background-color: #D72529;
    color: white;
    padding: 15px 25px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.woocommerce-checkout #place_order:hover {
    background-color: #c01e22;
}

/* Estilos para el resumen del pedido */
.woocommerce-checkout .shop_table {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}

.woocommerce-checkout .shop_table th {
    background-color: #f8f8f8;
    color: #333;
    font-weight: 600;
    padding: 15px;
}

.woocommerce-checkout .shop_table td {
    padding: 15px;
    border-top: 1px solid #e5e5e5;
}

.woocommerce-checkout .order-total th,
.woocommerce-checkout .order-total td {
    font-size: 18px;
    font-weight: 600;
}

/* Estilos para los métodos de pago */
.woocommerce-checkout .payment_methods {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}

.woocommerce-checkout .payment_methods li {
    padding: 15px;
    border-bottom: 1px solid #e5e5e5;
}

.woocommerce-checkout .payment_methods label {
    font-weight: 500;
    color: #333;
    cursor: pointer;
}

.woocommerce-checkout .payment_box {
    background-color: #f8f8f8;
    padding: 15px;
    margin-top: 10px;
    border-radius: 4px;
}

/* Estilos personalizados para el checkout de dos columnas */
.custom-checkout-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.checkout-columns-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
}

.checkout-customer-details {
    flex: 1;
    min-width: 300px;
}

.checkout-order-review {
    width: 40%;
    min-width: 300px;
}

.checkout-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.checkout-card:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Estilos para los títulos de sección en el checkout */
.checkout-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Estilos para la tabla de revisión de pedido */
.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #eee;
}

.woocommerce-checkout-review-order-table thead th {
    background-color: #f8f8f8;
    font-weight: 600;
    color: #333;
}

.woocommerce-checkout-review-order-table .cart-subtotal,
.woocommerce-checkout-review-order-table .order-total {
    font-weight: 600;
}

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
    border-top: 2px solid #ddd;
    border-bottom: none;
    padding-top: 15px;
}

.woocommerce-checkout-review-order-table .order-total .amount {
    color: #D72529;
    font-size: 18px;
}

/* Estilos para los métodos de pago */
#payment {
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

#payment ul.payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    border-bottom: 1px solid #eee;
}

#payment ul.payment_methods li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

#payment ul.payment_methods li:last-child {
    border-bottom: none;
}

#payment ul.payment_methods li input {
    margin-right: 10px;
}

#payment ul.payment_methods li label {
    display: inline;
    font-weight: 500;
}

#payment .payment_box {
    background-color: #fff;
    border-radius: 6px;
    padding: 15px;
    margin-top: 10px;
    border: 1px solid #eee;
}

#payment .place-order {
    margin-top: 20px;
}

#place_order {
    background-color: #D72529;
    color: white;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
}

#place_order:hover {
    background-color: #c01e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(215, 37, 41, 0.3);
}

/* Estilos para dispositivos móviles */
@media (max-width: 768px) {
    .checkout-columns-container {
        flex-direction: column;
    }
    
    .checkout-customer-details,
    .checkout-order-review {
        width: 100%;
    }
}

/* Estilos para las secciones de customer details */
.customer-details-section {
    margin-bottom: 25px;
}

.customer-details-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

/* Estilos para el switch de pago para otra persona */
.payment-for-other-container {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 8px;
    border-left: 4px solid #D72529;
}

.payment-for-other-container h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
}

/* Estilos para el switch */
.switch-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.switch-label {
    margin-right: 10px;
    font-weight: 500;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #D72529;
}

input:focus + .slider {
    box-shadow: 0 0 1px #D72529;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Estilos para los campos del paciente */
.patient-fields {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    display: none; /* Oculto por defecto */
}

.patient-fields h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.patient-fields .form-row {
    margin-bottom: 15px;
}

.patient-fields label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.patient-fields input,
.patient-fields select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.patient-fields input:focus,
.patient-fields select:focus {
    border-color: #D72529;
    outline: none;
    box-shadow: 0 0 0 2px rgba(215, 37, 41, 0.2);
}
