/* Hotel Booking Directory - Beautiful Frontend Styles */

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Room Directory Styles */
.hbd-room-directory {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

.hbd-filters {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.hbd-filters h3 {
    color: #2271b1;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    margin-top: 0;
}

.hbd-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.hbd-filter-field {
    display: flex;
    flex-direction: column;
}

.hbd-filter-group {
    display: flex;
    flex-direction: column;
}

.hbd-filter-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2271b1;
    font-size: 14px;
}

.hbd-filter-field input,
.hbd-filter-field select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
    background: #ffffff;
    font-family: inherit;
}

.hbd-filter-field input:focus,
.hbd-filter-field select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.1);
}

.hbd-filter-btn {
    background: #2271b1;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s;
    align-self: flex-end;
}

.hbd-filter-btn:hover {
    background: #135e96;
}

.hbd-clear-filters {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
    transition: background-color 0.3s;
    font-weight: 600;
}

.hbd-clear-filters:hover {
    background: #545b62;
}

/* Room Grid */
.hbd-rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.hbd-rooms-grid.hbd-columns-1 {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 2rem auto 0;
}

.hbd-rooms-grid.hbd-columns-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.hbd-rooms-grid.hbd-columns-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.hbd-rooms-grid.hbd-columns-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Room Card */
.hbd-room-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.hbd-room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-color: #2271b1;
}

.hbd-room-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
}

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

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

.hbd-room-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hbd-room-status {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.hbd-room-status.unavailable {
    background: #dc3545;
}

.hbd-room-content {
    padding: 1.5rem;
    background: white;
}

.hbd-room-title {
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #2271b1;
    line-height: 1.3;
}

.hbd-room-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hbd-room-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem 0;
    border-top: 1px solid #e9ecef;
}

.hbd-room-capacity {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.hbd-icon {
    margin-right: 0.5rem;
    font-size: 16px;
}

.hbd-room-price {
    text-align: right;
}

.hbd-price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2271b1;
    display: block;
    line-height: 1;
}

.hbd-price-period {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    margin-top: 2px;
}

.hbd-book-now-btn {
    width: 100%;
    background: #2271b1;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.hbd-book-now-btn:hover {
    background: #135e96;
}

.hbd-book-now-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.btn {
    display: inline-block;
    background: #2271b1;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn:hover {
    background: #135e96;
}

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

.btn-secondary:hover {
    background: #545b62;
}

/* Booking Form Container */
.hbd-booking-form-container {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hbd-room-summary {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}

.hbd-room-summary h3 {
    margin: 0 0 1rem 0;
    font-size: 1.8rem;
    font-weight: 600;
    color: #2271b1;
}

.hbd-room-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.hbd-capacity, .hbd-price {
    font-size: 16px;
    font-weight: 500;
    color: #666;
}

/* Enhanced form field styling */
.hbd-form-field,
.hbd-form-group {
    margin-bottom: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.hbd-form-group.focused {
    transform: scale(1.02);
}

.hbd-form-field label,
.hbd-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.hbd-form-group.focused label {
    color: #007cba;
}

.hbd-form-field input,
.hbd-form-field select,
.hbd-form-field textarea,
.hbd-form-group input,
.hbd-form-group select,
.hbd-form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    font-family: inherit;
}

.hbd-form-field input:focus,
.hbd-form-field select:focus,
.hbd-form-field textarea:focus,
.hbd-form-group input:focus,
.hbd-form-group select:focus,
.hbd-form-group textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1), 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.hbd-form-field input.valid,
.hbd-form-group input.valid {
    border-color: #28a745;
    background: linear-gradient(135deg, #fff 0%, #f8fff9 100%);
}

.hbd-form-field input.invalid,
.hbd-form-group input.invalid {
    border-color: #dc3545;
    background: linear-gradient(135deg, #fff 0%, #fff8f8 100%);
}

.hbd-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.hbd-form-row .hbd-form-field {
    margin-bottom: 1rem;
}

.hbd-price-summary {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.hbd-price-breakdown {
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 1rem;
}

.hbd-price-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hbd-price-line:hover {
    background: rgba(34, 113, 177, 0.05);
    border-radius: 6px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.hbd-price-line.hbd-total-line {
    border-top: 2px solid #2271b1;
    padding-top: 1rem;
    margin-top: 1rem;
    font-weight: 700;
    font-size: 18px;
    color: #1a5a8a;
    background: linear-gradient(135deg, rgba(34, 113, 177, 0.1) 0%, rgba(74, 158, 255, 0.1) 100%);
    border-radius: 8px;
    padding: 1rem;
}

.hbd-total-price {
    color: #2271b1;
    font-weight: 700;
}

.hbd-submit-booking {
    width: 100%;
    background: #28a745;
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.hbd-submit-booking:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.hbd-submit-booking:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Terms and Conditions */
.hbd-terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
}

.hbd-terms-checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 2px;
}

.hbd-terms-text {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.hbd-terms-text a {
    color: #007cba;
    text-decoration: none;
}

.hbd-terms-text a:hover {
    text-decoration: underline;
}

/* Loading States */
.hbd-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: hbd-spin 1s linear infinite;
    margin-right: 10px;
}

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

@keyframes hbd-gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Messages */
.hbd-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin: 15px 0;
    font-size: 14px;
}

.hbd-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.hbd-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.hbd-message.info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Search Form */
.hbd-search-form {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hbd-search-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.hbd-search-field {
    display: flex;
    flex-direction: column;
}

.hbd-search-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2271b1;
    font-size: 14px;
}

.hbd-search-field input,
.hbd-search-field select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
    background: #ffffff;
    font-family: inherit;
}

.hbd-search-field input:focus,
.hbd-search-field select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.1);
}

.hbd-search-submit {
    align-self: flex-end;
}

.hbd-search-btn {
    background: #2271b1;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.hbd-search-btn:hover {
    background: #135e96;
}

.hbd-search-button {
    background: #007cba;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.hbd-search-button:hover {
    background: #005a87;
}

/* Room Display (Single Room) */
.hbd-single-room {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hbd-single-room-image {
    height: 300px;
    overflow: hidden;
}

.hbd-single-room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hbd-single-room-content {
    padding: 30px;
}

.hbd-single-room-title {
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.hbd-single-room-description {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.hbd-single-room-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

/* Booking Status */
.hbd-booking-status {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hbd-booking-status h3 {
    margin-top: 0;
    text-align: center;
    color: #333;
}

.hbd-status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hbd-status-badge.confirmed {
    background: #d4edda;
    color: #155724;
}

.hbd-status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.hbd-status-badge.cancelled {
    background: #f8d7da;
    color: #721c24;
}

.hbd-booking-details {
    margin-top: 20px;
}

.hbd-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.hbd-detail-row:last-child {
    border-bottom: none;
}

.hbd-detail-label {
    font-weight: 600;
    color: #555;
}

.hbd-detail-value {
    color: #333;
}

/* Available Rooms Count */
.hbd-available-count {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin: 20px 0;
}

.hbd-available-count .count {
    font-size: 36px;
    font-weight: 700;
    color: #007cba;
    display: block;
}

.hbd-available-count .text {
    font-size: 16px;
    color: #666;
    margin-top: 5px;
}

/* No Rooms Message */
.hbd-no-rooms {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin: 2rem 0;
}

.hbd-no-rooms p {
    font-size: 16px;
    color: #666;
    margin: 0;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .hbd-room-directory {
        padding: 10px;
    }
    
    .hbd-filters {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .hbd-filter-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hbd-rooms-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hbd-room-details {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .hbd-room-price {
        text-align: center;
    }
    
    .hbd-booking-form-container {
        margin: 1rem;
        padding: 1rem;
    }
    
    .hbd-form-row {
        grid-template-columns: 1fr;
    }
    
    .hbd-room-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hbd-search-fields {
        grid-template-columns: 1fr;
    }
    
    .hbd-single-room-content {
        padding: 1rem;
    }
}
    
    .hbd-single-room-meta {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .hbd-detail-row {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .hbd-room-directory {
        padding: 15px 10px;
    }
    
    .hbd-filters {
        padding: 15px;
    }
    
    .hbd-room-title {
        font-size: 20px;
    }
    
    .hbd-price-amount {
        font-size: 28px;
    }
    
    .hbd-room-content {
        padding: 20px;
    }
    
    .hbd-book-now-btn {
        padding: 15px 20px;
        font-size: 16px;
    }
    
    .hbd-single-room-title {
        font-size: 24px;
    }
    
    .hbd-booking-form-container {
        margin: 15px 10px;
        padding: 20px;
    }
    
    .hbd-room-summary h3 {
        font-size: 24px;
    }
    
    .hbd-submit-booking {
        padding: 18px 20px;
        font-size: 18px;
    }
}

/* Print Styles */
@media print {
    .hbd-book-now-btn,
    .hbd-submit-booking,
    .hbd-filter-button,
    .hbd-clear-filters,
    .hbd-search-button {
        display: none;
    }
    
    .hbd-room-card,
    .hbd-booking-form,
    .hbd-single-room {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Accessibility */
.hbd-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Enhanced animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Field error styling */
.hbd-field-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    animation: fadeIn 0.3s ease;
    display: block;
}

/* Enhanced form animations */
.hbd-form-field,
.hbd-form-group {
    animation: slideIn 0.5s ease;
}

.hbd-form-field:nth-child(even),
.hbd-form-group:nth-child(even) {
    animation-delay: 0.1s;
}

.hbd-form-field:nth-child(odd),
.hbd-form-group:nth-child(odd) {
    animation-delay: 0.2s;
}

/* Focus styles for better accessibility */
.hbd-book-now-btn:focus,
.hbd-submit-booking:focus,
.hbd-filter-button:focus,
.hbd-search-button:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #007cba;
    outline-offset: 1px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hbd-room-card {
        border: 2px solid #000;
    }
    
    .hbd-book-now-btn,
    .hbd-submit-booking {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .hbd-room-card,
    .hbd-room-image img,
    .hbd-book-now-btn,
    .hbd-submit-booking {
        transition: none;
    }
    
    .hbd-loading {
        animation: none;
    }
}

/* Enhanced Booking Form Styles for Prominence */
.hbd-booking-form {
    max-width: 700px;
    margin: 30px auto;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e3f2fd;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 123, 186, 0.15), 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.hbd-booking-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #007cba, #0056b3, #007cba);
    background-size: 200% 100%;
    animation: hbd-gradient-shift 3s ease-in-out infinite;
}

@keyframes hbd-gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hbd-booking-form h3 {
    margin-top: 0;
    margin-bottom: 30px;
    color: #1a365d;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hbd-price-calculation {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f4fd 100%);
    border: 2px solid #e1e8f0;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 8px 25px rgba(34, 113, 177, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hbd-price-calculation.calculating {
    opacity: 0.7;
    transform: scale(0.98);
}

.hbd-price-calculation.calculating::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer-loading 1.5s ease-in-out infinite;
}

.hbd-price-calculation.updated {
    animation: pulse-update 0.6s ease-in-out;
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.2);
}

.hbd-price-calculation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2271b1, #4a9eff, #2271b1);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

@keyframes shimmer-loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes pulse-update {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.hbd-price-calculation h4 {
    margin: 0 0 1.5rem 0;
    color: #2271b1;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
}

.hbd-price-row.total {
    border-top: 2px solid #1976d2;
    padding-top: 15px;
    font-weight: 800;
    font-size: 22px;
    color: #0d47a1;
    background: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
}

/* Consolidated submit booking styles moved to main section */

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

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

.hbd-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #2c3e50;
    font-size: 16px;
}

/* Room Summary Section - Demo Style */
.room-summary {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 20px;
    align-items: center;
    border: 2px solid rgba(0, 124, 186, 0.1);
}

.room-image {
    width: 120px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.room-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1976d2;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.room-info {
    flex: 1;
}

.room-info h3 {
    margin: 0 0 5px 0;
    color: #1a365d;
    font-size: 1.3rem;
    font-weight: 700;
}

.room-info p {
    margin: 0 0 5px 0;
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.4;
}

.room-price {
    text-align: right;
    color: #0d47a1;
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 1.2;
}

.room-price small {
    font-size: 0.7em;
    font-weight: 500;
    color: #4a5568;
    display: block;
}

/* Enhanced Booking Form Container */
.hbd-booking-form-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Price Calculation - Demo Style */
.hbd-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 16px;
}

.hbd-price-row:last-child {
    border-bottom: none;
}

.hbd-price-row.total {
    border-top: 2px solid #1976d2;
    padding-top: 15px;
    font-weight: 800;
    font-size: 18px;
    color: #0d47a1;
    background: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    border-bottom: none;
}

/* Nights Dropdown Styling */
.hbd-form-group select[name="nights"] {
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 40px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Read-only checkout date styling */
.hbd-form-group input[name="check_out_date"][readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    border-color: #e9ecef;
}

/* Price summary styling */
.hbd-price-calculation .hbd-price-row span {
    font-weight: 600;
}

.hbd-price-calculation .hbd-price-row .price-value {
    color: #007cba;
    font-weight: 700;
}

.hbd-price-calculation .hbd-price-row.total .price-value {
    color: #0d47a1;
    font-size: 1.2em;
}

/* Terms Checkbox */
.hbd-terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.hbd-terms-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    margin-top: 2px;
}

.hbd-terms-text {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.5;
    margin: 0;
}

.hbd-terms-text a {
    color: #007cba;
    text-decoration: none;
    font-weight: 600;
}

.hbd-terms-text a:hover {
    text-decoration: underline;
}

/* Form Field Enhancements */
.hbd-form-group input::placeholder,
.hbd-form-group textarea::placeholder {
    color: #9ca3af;
    font-style: italic;
}

.hbd-form-group textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

/* Submit Button Enhancement */
.hbd-submit-booking {
    width: 100%;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    padding: 18px 24px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
    margin-top: 20px;
}

.hbd-submit-booking:hover {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
}

.hbd-submit-booking:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(72, 187, 120, 0.3);
}

/* Responsive Design for Room Summary */
@media (max-width: 768px) {
    .room-summary {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .room-image {
        width: 100px;
        height: 70px;
        margin: 0 auto;
    }
    
    .room-price {
        text-align: center;
        margin-top: 15px;
    }
    
    .hbd-booking-form-container {
        padding: 15px;
    }
    
    .hbd-booking-form {
        padding: 25px 20px;
    }
    
    .hbd-terms-checkbox {
        flex-direction: column;
        gap: 8px;
    }
    
    .hbd-terms-checkbox input[type="checkbox"] {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .room-summary {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .room-info h3 {
        font-size: 1.1rem;
    }
    
    .room-price {
        font-size: 1.3rem;
    }
    
    .hbd-booking-form {
        padding: 20px 15px;
    }
    
    .hbd-booking-form h3 {
        font-size: 24px;
    }
    
    .hbd-price-calculation {
        padding: 1.5rem;
    }
}

/* End of file */