
/* PM Booking Frontend Styles */
.pm-booking-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.pm-booking-container {
    padding: 0;
}

.pm-booking-form {
    display: flex;
    flex-direction: column;
}

/* Main Booking Widget - Horizontal Layout */
.pm-booking-widget-main {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

/* Section Titles */
.pm-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* STAY DATES Section */
.pm-stay-dates-section {
    flex: 1;
    padding: 24px;
    border-right: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.pm-date-inputs {
    display: flex;
    gap: 16px;
}

.pm-date-field {
    flex: 1;
}

.pm-date-field label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 8px;
}

.pm-date-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.pm-date-input-wrapper input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pm-date-input-wrapper input:focus {
    outline: none;
    background: #e5e7eb;
}

.pm-date-dropdown-btn {
    position: absolute;
    right: 8px;
    width: 24px;
    height: 24px;
    background: #fff;
    border: none;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pm-date-dropdown-btn:hover {
    background: #f3f4f6;
}

.pm-icon-chevron-down {
    width: 12px;
    height: 12px;
    border: solid #6b7280;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ROOMS & GUESTS Section */
.pm-rooms-guests-section {
    flex: 1;
    padding: 24px;
    border-right: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.pm-guests-rooms-controls {
    display: flex;
    gap: 20px;
    align-items: flex-end;
}

.pm-counter-group {
    display: flex;
    gap: 16px;
}

.pm-counter {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pm-counter label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.pm-counter-controls {
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.pm-counter-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #fff;
    color: #374151;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pm-counter-btn:hover {
    background: #f3f4f6;
}

.pm-counter-btn:active {
    background: #e5e7eb;
}

.pm-counter-value {
    flex: 1;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    padding: 8px 12px;
    background: #f3f4f6;
    min-width: 40px;
}

/* Rooms Selector */
.pm-rooms-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pm-rooms-selector label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.pm-rooms-dropdown {
    position: relative;
}

.pm-rooms-dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pm-rooms-dropdown-btn:hover {
    background: #e5e7eb;
}

.pm-rooms-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: 4px;
}

.pm-rooms-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #374151;
}

.pm-rooms-option:hover {
    background: #f3f4f6;
}

.pm-rooms-option.selected {
    background: #3b82f6;
    color: #fff;
}

/* BOOK NOW Button */
.pm-book-now-section {
    padding: 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    position: relative;
}

.pm-book-now-btn {
    width: 100%;
    padding: 16px 32px;
    background: transparent;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.pm-book-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.pm-book-now-btn:active {
    transform: translateY(0);
}

.pm-book-now-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Expanded Form */
.pm-expanded-form {
    padding: 30px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

.pm-expanded-form .pm-form-group {
    margin-bottom: 24px;
}

.pm-expanded-form label {
    display: block;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    margin-bottom: 8px;
}

.pm-expanded-form input,
.pm-expanded-form select,
.pm-expanded-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: #fff;
}

.pm-expanded-form input:focus,
.pm-expanded-form select:focus,
.pm-expanded-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Customer Information */
.pm-customer-info h4 {
    margin: 0 0 20px 0;
    color: #111827;
    font-size: 18px;
    font-weight: 600;
}

.pm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.pm-form-col {
    display: flex;
    flex-direction: column;
}

/* Price Summary */
.pm-price-summary {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.pm-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}

.pm-price-row.pm-total {
    border-top: 1px solid #e2e8f0;
    margin-top: 8px;
    padding-top: 12px;
    font-weight: 600;
    font-size: 16px;
    color: #111827;
}

/* Confirm Booking Button */
.pm-confirm-booking-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pm-confirm-booking-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Calendar Container */
.pm-calendar-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: 4px;
    padding: 20px;
}

/* Messages */
.pm-messages {
    margin-top: 16px;
}

.pm-message {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 8px;
}

.pm-message.pm-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.pm-message.pm-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.pm-message.pm-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

/* Loading States */
.pm-loading {
    opacity: 0.6;
    pointer-events: none;
}

.pm-loading .pm-btn-text {
    display: none;
}

.pm-loading .pm-btn-loading {
    display: flex !important;
}

.pm-icon-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .pm-booking-widget-main {
        flex-direction: column;
    }
    
    .pm-stay-dates-section,
    .pm-rooms-guests-section {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .pm-date-inputs {
        flex-direction: column;
        gap: 12px;
    }
    
    .pm-guests-rooms-controls {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .pm-counter-group {
        justify-content: space-between;
    }
    
    .pm-form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .pm-book-now-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .pm-booking-widget {
        margin: 10px;
        border-radius: 8px;
    }
    
    .pm-stay-dates-section,
    .pm-rooms-guests-section {
        padding: 20px;
    }
    
    .pm-counter-controls {
        max-width: 120px;
    }
    
    .pm-counter-value {
        min-width: 30px;
        font-size: 12px;
    }
    
    .pm-book-now-btn {
        padding: 14px 20px;
        font-size: 14px;
    }
}

/* Accessibility */
.pm-counter-btn:focus,
.pm-book-now-btn:focus,
.pm-date-dropdown-btn:focus,
.pm-rooms-dropdown-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .pm-booking-widget-main {
        border: 2px solid #000;
    }
    
    .pm-date-input-wrapper input,
    .pm-counter-controls,
    .pm-rooms-dropdown-btn {
        border: 2px solid #000;
    }
}
