.wp-reservation-form-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wp-reservation-form {
    display: grid;
    gap: 20px;
}

.horizontal-layout .wp-reservation-form {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.vertical-layout .wp-reservation-form {
    grid-template-columns: 1fr;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.form-group.focused {
    transform: translateY(-2px);
}

.form-group.filled input,
.form-group.filled select,
.form-group.filled textarea {
    border-color: #28a745;
}

.date-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.date-input-group {
    position: relative;
}

.date-input-group i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

.guest-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.children-ages {
    grid-column: 1 / -1;
}

.children-ages-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.child-age-group,
.child-age-input {
    display: flex;
    flex-direction: column;
}

.child-age-group label,
.child-age-input label {
    font-size: 12px;
    margin-bottom: 3px;
}

.form-actions {
    grid-column: 1 / -1;
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

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

.btn-primary {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #005a87 0%, #007cba 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
}

.btn-success:hover {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
    transform: translateY(-2px);
}

.search-results {
    margin-top: 30px;
}

.search-results-header {
    margin-bottom: 20px;
    text-align: center;
}

.search-results-header h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.search-summary {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #666;
    font-size: 14px;
}

.search-summary span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.available-rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.room-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e1e5e9;
}

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

.room-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.room-card:hover .room-image img {
    transform: scale(1.05);
}

.room-content {
    padding: 20px;
}

.room-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #333;
}

.room-excerpt {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.room-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: #f8f9fa;
    border-radius: 15px;
    font-size: 12px;
    color: #666;
}

.feature-item i {
    color: #007cba;
}

.room-pricing {
    margin-bottom: 20px;
    text-align: right;
}

.price-display {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.total-price,
.base-price {
    font-size: 24px;
    font-weight: bold;
    color: #007cba;
}

.price-label {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.price-breakdown {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}

.room-actions {
    display: flex;
    gap: 10px;
}

.room-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 10px 15px;
    font-size: 14px;
}

.reservation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.reservation-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.reservation-modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    z-index: 1;
}

.modal-close:hover {
    color: #333;
}

.modal-content h3 {
    margin: 0;
    padding: 20px 20px 15px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.booking-summary {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.booking-summary h4 {
    margin: 0 0 15px 0;
    color: #333;
}

.booking-summary-item,
.summary-room,
.summary-dates,
.summary-guests,
.summary-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.summary-price {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
    font-size: 18px;
}

.price-amount {
    margin-left: auto;
    color: #007cba;
    font-weight: bold;
}

.customer-info {
    padding: 20px;
}

.customer-info h4 {
    margin: 0 0 20px 0;
    color: #333;
}

.customer-info .form-group {
    margin-bottom: 15px;
}

.form-actions {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.room-availability-container {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.availability-header {
    padding: 20px;
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: #fff;
    text-align: center;
}

.availability-header h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
}

.availability-header p {
    margin: 0;
    opacity: 0.9;
}

.quick-booking-form {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.inline-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    align-items: end;
}

.price-calculation {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #28a745;
}

.calculation-result {
    display: flex;
    align-items: center;
    gap: 15px;
}

.calculation-result .total-price {
    font-size: 20px;
    font-weight: bold;
    color: #28a745;
}

.calculation-result .price-breakdown {
    color: #666;
    font-size: 14px;
}

.calculation-result .btn {
    margin-left: auto;
}

.availability-calendar {
    padding: 20px;
}

.month-calendar {
    margin-bottom: 30px;
}

.month-title {
    text-align: center;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    color: #333;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.calendar-table th {
    background: #007cba;
    color: #fff;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
}

.calendar-table td {
    border: 1px solid #e1e5e9;
    padding: 0;
    height: 60px;
    vertical-align: top;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 5px;
    position: relative;
}

.calendar-day.clickable:hover {
    background: #e3f2fd;
    transform: scale(1.05);
}

.calendar-day.status-available {
    background: #d4edda;
    color: #155724;
}

.calendar-day.status-reserved {
    background: #f8d7da;
    color: #721c24;
    cursor: not-allowed;
}

.calendar-day.status-blocked {
    background: #e2e3e5;
    color: #6c757d;
    cursor: not-allowed;
}

.calendar-day.status-past {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.calendar-day.selected-checkin {
    background: #007cba;
    color: #fff;
}

.calendar-day.selected-checkout {
    background: #28a745;
    color: #fff;
}

.calendar-day.selected-range {
    background: #bee5eb;
    color: #0c5460;
}

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

.day-price {
    font-size: 10px;
    margin-top: 2px;
    opacity: 0.8;
}

.empty-day {
    background: #f8f9fa;
}

.availability-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

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

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid #ddd;
}

.legend-color.available {
    background: #d4edda;
}

.legend-color.reserved {
    background: #f8d7da;
}

.legend-color.blocked {
    background: #e2e3e5;
}

.legend-color.selected {
    background: #007cba;
}

.no-rooms-found {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-rooms-found i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ddd;
}

.no-rooms-found h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.loading-container,
.error-container {
    text-align: center;
    padding: 40px 20px;
}

.loading-spinner i,
.error-icon i {
    font-size: 32px;
    margin-bottom: 15px;
}

.loading-spinner i {
    color: #007cba;
}

.error-icon i {
    color: #dc3545;
}

.loading-message,
.error-message {
    color: #666;
    font-size: 16px;
}

.field-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #dc3545;
}

@media (max-width: 768px) {
    .wp-reservation-form-container {
        padding: 15px;
    }
    
    .horizontal-layout .wp-reservation-form {
        grid-template-columns: 1fr;
    }
    
    .date-selection,
    .guest-selection {
        grid-template-columns: 1fr;
    }
    
    .available-rooms-grid {
        grid-template-columns: 1fr;
    }
    
    .room-card {
        margin-bottom: 15px;
    }
    
    .room-actions {
        flex-direction: column;
    }
    
    .search-summary {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .inline-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .calendar-table th,
    .calendar-table td {
        padding: 8px 4px;
    }
    
    .calendar-day {
        height: 50px;
    }
    
    .day-number {
        font-size: 12px;
    }
    
    .day-price {
        font-size: 9px;
    }
    
    .availability-legend {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .room-title {
        font-size: 18px;
    }
    
    .total-price,
    .base-price {
        font-size: 20px;
    }
    
    .calendar-table {
        font-size: 12px;
    }
    
    .calendar-day {
        height: 40px;
    }
    
    .month-title {
        font-size: 16px;
    }
}

.flatpickr-calendar {
    border-radius: 8px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15) !important;
}

.flatpickr-day.selected {
    background: #007cba !important;
    border-color: #007cba !important;
}

.flatpickr-day:hover {
    background: #e3f2fd !important;
}