
    /* Estilos para la nueva estructura de layout */
    @media (min-width: 1024px) {
        .rd-info-panel {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: flex-start;
        }
        
        .rd-timeslots-container {
            flex: 0 0 60%;
        }
        
        .rd-reservation-form-container {
            flex: 0 0 35%;
        }
        
        .rd-message-container {
            flex: 0 0 100%;
            margin-top: 20px;
        }
    }
    
    /* Estilos para el mensaje debajo del título del formulario */
    #rd-message {
        margin: 15px 0;
        padding: 10px;
        border-radius: 4px;
        text-align: center;
    }
    
    #rd-message .rd-loading {
        background-color: #e9f5ff;
        color: #0073aa;
        padding: 12px;
        border-radius: 4px;
        font-weight: 600;
        box-shadow: 0 2px 6px rgba(0, 115, 170, 0.2);
    }
    
    #rd-message .rd-error {
        padding: 12px 15px;
        background-color: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
        border-radius: 6px;
    }
    
    #rd-message .rd-success {
        padding: 12px 15px;
        background-color: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
        border-radius: 6px;
    }
    


        .rd-container {
            max-width: 1000px;
            margin: 0 auto;
            padding: 20px;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
        }
        
        .rd-container h2 {
            text-align: center;
            color: #333;
            margin-bottom: 30px;
            font-size: 28px;
        }
        
        .rd-container h3 {
            color: #0073aa;
            margin-top: 0;
            margin-bottom: 15px;
            font-size: 20px;
        }
        
        .rd-booking-layout {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
        }
        
        .rd-selection-panel {
            flex: 1;
            min-width: 300px;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        
        .rd-calendar-panel {
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            padding: 20px;
        }
        
        .rd-sport-panel {
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            padding: 20px;
            margin-bottom: 0;
        }
        
        .rd-info-panel {
            flex: 2;
            min-width: 300px;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        
        .rd-panel-section {
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            padding: 20px;
        }
        
        /* Datepicker personalizado */
        .ui-datepicker {
            width: 100%;
            padding: 0;
            border: none;
            border-radius: 8px;
            overflow: hidden;
        }
        
        .ui-datepicker .ui-datepicker-header {
            background: #0073aa;
            color: white;
            border: none;
            border-radius: 0;
            padding: 10px;
        }
        
        .ui-datepicker .ui-datepicker-title {
            font-weight: bold;
        }
        
        .ui-datepicker th {
            background: #f7f7f7;
            color: #333;
            padding: 7px 0;
        }
        
        .ui-datepicker td {
            padding: 0;
            border: 1px solid #f0f0f0;
        }
        
        .ui-datepicker td span, .ui-datepicker td a {
            padding: 8px;
            text-align: center;
        }
        
        .ui-datepicker .ui-state-default {
            background: white;
            border: none;
            color: #333;
        }
        
        .ui-datepicker .ui-state-hover {
            background: #e9f5ff;
        }
        
        .ui-datepicker .ui-state-active {
            background: #0073aa;
            color: white;
        }
        
        /* Días cerrados en el datepicker */
        .ui-datepicker-highlighted .ui-state-default {
            background: #f8d7da !important;
            color: #721c24 !important;
            text-decoration: line-through;
        }
        
        /* Horarios - MODIFICADO PARA 2 COLUMNAS FIJAS */
        .rd-timeslots-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr); /* Siempre 2 columnas fijas */
            gap: 10px;
            padding-right: 5px;
        }
        
        .rd-timeslot {
            text-align: center;
            padding: 10px;
            border-radius: 6px;
            background-color: #e9f5ff;
            border: 1px solid #c5e1ff;
            cursor: pointer;
            transition: all 0.2s ease;
            color: #000;
            font-weight: 600;
        }
        
        .rd-timeslot:hover {
            background: #0073aa;
            color: #fff;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,115,170,0.2);
        }
        
        .rd-timeslot.rd-unavailable {
            background-color: #f8d7da;
            color: #721c24;
            border-color: #f5c6cb;
            cursor: not-allowed;
            opacity: 0.8;
            text-decoration: line-through;
        }
        
        .rd-timeslot.rd-unavailable:hover {
            background-color: #f8d7da;
            color: #721c24;
            transform: none;
            box-shadow: none;
        }
        
        .rd-timeslot.rd-selected {
            background-color: #0073aa;
            color: #fff;
            border-color: #005177;
            font-weight: bold;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,115,170,0.3);
        }
        
        .rd-unavailable-text {
            display: inline-block;
            background-color: #dc3545;
            color: #fff;
            font-weight: bold;
            padding: 2px 5px;
            border-radius: 3px;
            margin-top: 3px;
        }
        
        .rd-day-closed {
            padding: 15px;
            background-color: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
            border-radius: 6px;
            text-align: center;
            font-weight: 600;
        }
        
        /* Estilos para selección de pistas */
        .rd-court-selection-container {
            margin-bottom: 20px;
        }
        
        .rd-court-options {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 10px;
        }
        
        .rd-court-option {
            flex: 1;
            min-width: 120px;
            background-color: #f0f7ff;
            border: 2px solid #d0e3ff;
            border-radius: 8px;
            padding: 12px 15px;
            cursor: pointer;
            text-align: center;
            transition: all 0.2s ease;
        }
        
        .rd-court-option:hover {
            background-color: #e0eeff;
            border-color: #b0d0ff;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,115,170,0.15);
        }
        
        .rd-court-option.selected {
            background-color: #0073aa;
            color: white;
            border-color: #005e8a;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,115,170,0.25);
        }
        
        .rd-court-name {
            font-weight: 600;
            font-size: 16px;
            margin-bottom: 5px;
        }
        
        .rd-court-price {
            font-size: 14px;
            font-weight: 500;
            color: #666;
        }
        
        .rd-court-option.selected .rd-court-price {
            color: rgba(255,255,255,0.9);
        }
        
        .rd-price-info {
            margin-top: 10px;
            font-size: 13px;
            color: #666;
            font-style: italic;
        }
        
        /* Formulario */
        .rd-form-row {
            margin-bottom: 15px;
        }
        
        .rd-form-row label {
            display: block;
            margin-bottom: 5px;
            font-weight: 500;
            color: #444;
        }
        
        .rd-form-row input, 
        .rd-form-row select {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 14px;
        }
        
        .rd-form-row input:focus, 
        .rd-form-row select:focus {
            border-color: #0073aa;
            outline: none;
            box-shadow: 0 0 0 2px rgba(0,115,170,0.2);
        }
        
        .rd-button {
            background-color: #0073aa;
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 16px;
            font-weight: 600;
            transition: all 0.3s ease;
            width: 100%;
        }
        
        .rd-button:hover {
            background-color: #005177;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,115,170,0.3);
        }
        
        /* Estados de carga y mensajes */
        .rd-loading {
            text-align: center;
            padding: 15px;
            color: #666;
        }
        
        .rd-error {
            padding: 12px 15px;
            background-color: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
            border-radius: 6px;
        }
        
        .rd-success {
            padding: 12px 15px;
            background-color: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
            border-radius: 6px;
        }
        
        /* Sport Options */
        .rd-sport-panel {
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            padding: 20px;
            margin-top: 15px;
        }
        
        .rd-sport-options {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .rd-sport-option {
            flex: 1;
            min-width: 90px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 15px 14px;
            background-color: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s ease;
            box-sizing: border-box;
        }
        
        .rd-sport-option:hover {
            background-color: #e9ecef;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
        
        .rd-sport-option.selected {
            background-color: #0073aa;
            color: white;
            border-color: #0073aa;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,115,170,0.2);
        }
        
        .rd-sport-name {
            font-weight: 600;
            font-size: 16px;
            margin-bottom: 5px;
            width: 100%;
            text-align: center;
        }
        
        .rd-sport-duration {
            font-size: 13px;
            color: #6c757d;
            width: 100%;
            text-align: center;
        }
        
        .rd-sport-option.selected .rd-sport-duration {
            color: rgba(255,255,255,0.8);
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .rd-booking-layout {
                flex-direction: column;
            }
            
            .rd-sport-options {
                flex-direction: column;
            }
            
            .rd-sport-option {
                width: 100%;
                min-height: 78px;
            }
            
            /* Mantener 2 columnas en móvil para horarios */
            .rd-timeslots-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        @media (max-width: 480px) {
            /* Para pantallas muy pequeñas, volver a 1 columna */
            .rd-timeslots-grid {
                grid-template-columns: 1fr;
            }
        }
        
        /* Estilos de la reserva */
        .rd-container {
            max-width: 1000px;
            margin: 0 auto;
            padding: 20px;
            font-family: Arial, sans-serif;
        }
        
        /* Estilos para el texto de hora seleccionada */
        #rd-selected-time-display {
            font-weight: normal;
            color: #0056b3;
            font-size: 0.9em;
            display: block;
            margin-top: 5px;
        }
        
        .rd-reservation-detail {
            display: flex;
            align-items: center;
            gap: 10px;
            background-color: #f0f8ff;
            padding: 8px 12px;
            border-radius: 4px;
            font-size: 0.9em;
        }
        
        .rd-reservation-detail i {
            color: #0056b3;
            margin-right: 4px;
        }
        
        .rd-sports-grid {
            display: grid;
        }
        
        .rd-payment-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            width: 100%;
        }
        
        .rd-payment-buttons .rd-button {
            flex: 1;
            min-width: 140px;
        }
        
        #rd-stripe-payment {
            background-color: #6772e5;
            border-color: #6772e5;
        }
        
        #rd-stripe-payment:hover {
            background-color: #5469d4;
            border-color: #5469d4;
        }
        
        #rd-cash-payment {
            background-color: #28a745;
            border-color: #28a745;
        }
        
        #rd-cash-payment:hover {
            background-color: #218838;
            border-color: #1e7e34;
        }
        
        /* Estilos para mensajes en la parte superior */
        #rd-top-message {
            margin: 0 0 20px 0;
            padding: 0;
        }
        
        #rd-top-message .rd-success {
            padding: 15px 20px;
            background-color: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
            border-radius: 6px;
            text-align: center;
            font-size: 16px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        #rd-top-message .rd-error {
            padding: 15px 20px;
            background-color: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
            border-radius: 6px;
            text-align: center;
            font-size: 16px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
    
