/* Hotel Booking Pro Public Styles - Enhanced Color Scheme */
.hotel-booking-pro-public {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

/* Rooms Gallery */
.rooms-gallery {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.rooms-gallery h2 {
    text-align: center;
    color: #ffffff;
    margin-bottom: 40px;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: 300;
}

.rooms-grid-public {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.room-card-public {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.room-card-public:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.room-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.room-card-public:hover .room-image img {
    transform: scale(1.1);
}

.room-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #4cd964, #2ecc71);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(76, 217, 100, 0.3);
}

.room-info {
    padding: 25px;
    color: #2c3e50;
}

.room-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.5em;
    color: #2c3e50;
    font-weight: 600;
}

.room-number {
    font-weight: 600;
    margin: 5px 0;
    color: #667eea;
    font-size: 1.1em;
}

.room-type {
    font-weight: 600;
    margin: 5px 0;
    color: #7f8c8d;
    font-size: 1em;
}

.room-description {
    font-size: 0.95em;
    margin: 15px 0;
    color: #7f8c8d;
    line-height: 1.5;
}

.amenities {
    margin: 20px 0;
}

.amenities strong {
    display: block;
    margin-bottom: 10px;
    color: #2c3e50;
}

.amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.amenity-tag {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 500;
}

.price-info {
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.price-original {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.mrp {
    text-decoration: line-through;
    color: #95a5a6;
    font-size: 1em;
}

.discount-badge {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.8em;
    font-weight: bold;
}

.final-price {
    font-size: 1.8em;
    font-weight: bold;
    color: #2c3e50;
}

.final-price small {
    font-size: 0.6em;
    color: #7f8c8d;
    font-weight: normal;
}

.book-room-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.book-room-btn:hover {
    background: linear-gradient(45deg, #764ba2, #667eea);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

/* No Rooms State */
.no-rooms {
    text-align: center;
    padding: 60px 20px;
    color: white;
}

.no-rooms i {
    margin-bottom: 20px;
    opacity: 0.7;
}

.no-rooms h3 {
    margin: 0 0 10px 0;
    font-size: 1.5em;
}

.no-rooms p {
    margin: 0;
    opacity: 0.8;
}

/* Booking Modal */
.booking-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 2% auto;
    padding: 0;
    border-radius: 25px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    color: white;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

.modal-header {
    background: rgba(0,0,0,0.1);
    padding: 25px 30px;
    border-radius: 25px 25px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8em;
    font-weight: 300;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-modal {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: white;
    transition: color 0.3s ease;
    padding: 5px;
}

.close-modal:hover {
    color: #ff6b6b;
}

/* Form Styles */
#bookingForm {
    padding: 30px;
}

.form-section {
    background: rgba(255,255,255,0.1);
    margin: 25px 0;
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid #4cd964;
    backdrop-filter: blur(10px);
}

.form-section h3 {
    margin-top: 0;
    color: #ffd700;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 15px;
    font-size: 1.3em;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #f8f9fa;
    font-size: 0.95em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    background: rgba(255,255,255,0.9);
    font-size: 15px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    color: #2c3e50;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background: white;
    border-color: #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.readonly-input {
    background: rgba(255,255,255,0.7) !important;
    color: #7f8c8d !important;
    cursor: not-allowed;
}

.form-icon {
    position: absolute;
    left: 15px;
    top: 42px;
    color: #667eea;
    font-size: 1.1em;
}

.textarea-icon {
    top: 40px;
}

/* File Upload Styles */
.file-upload {
    margin-bottom: 15px;
}

.file-upload-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-input {
    position: absolute;
    left: -9999px;
}

.file-upload-display {
    background: rgba(255,255,255,0.9);
    padding: 20px;
    border: 2px dashed rgba(102, 126, 234, 0.5);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #667eea;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.file-upload-display:hover {
    background: white;
    border-color: #667eea;
    transform: translateY(-2px);
}

.file-upload-display i {
    font-size: 1.5em;
}

.file-upload-display.has-file {
    background: rgba(76, 217, 100, 0.1);
    border-color: #4cd964;
    color: #4cd964;
}

/* Signature Container */
.signature-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.3);
}

#signatureCanvas {
    background: white;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    display: block;
    margin: 0 auto;
}

.signature-actions {
    text-align: center;
    margin-top: 15px;
}

.btn-clear {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-clear:hover {
    background: linear-gradient(45deg, #ee5a24, #ff6b6b);
    transform: translateY(-2px);
}

/* Form Actions */
.form-actions {
    text-align: center;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.2);
    display: flex;
    gap: 15px;
    justify-content: center;
}

.submit-booking,
.cancel-booking,
.submit-counter-booking,
.reset-form {
    padding: 18px 35px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    justify-content: center;
}

.submit-booking,
.submit-counter-booking {
    background: linear-gradient(45deg, #4cd964, #2ecc71);
    color: white;
    box-shadow: 0 8px 25px rgba(76, 217, 100, 0.3);
}

.submit-booking:hover,
.submit-counter-booking:hover {
    background: linear-gradient(45deg, #2ecc71, #4cd964);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(76, 217, 100, 0.4);
}

.cancel-booking,
.reset-form {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.cancel-booking:hover,
.reset-form:hover {
    background: linear-gradient(45deg, #ee5a24, #ff6b6b);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.4);
}

/* Booking Message */
.booking-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.booking-message.success {
    background: rgba(76, 217, 100, 0.2);
    color: #4cd964;
    border: 1px solid #4cd964;
}

.booking-message.error {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: 1px solid #ff6b6b;
}

/* Counter Booking Specific Styles */
.hotel-booking-pro-counter {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    border-radius: 25px;
    color: white;
    max-width: 1000px;
    margin: 20px auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.counter-booking-header {
    text-align: center;
    margin-bottom: 40px;
}

.counter-booking-header h2 {
    font-size: 2.2em;
    margin: 0 0 10px 0;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.counter-booking-header p {
    font-size: 1.1em;
    opacity: 0.9;
    margin: 0;
}

.access-denied {
    text-align: center;
    padding: 60px 20px;
    color: white;
}

.access-denied i {
    font-size: 3em;
    margin-bottom: 20px;
    color: #ff6b6b;
}

.access-denied p {
    font-size: 1.2em;
    margin: 0;
}

.room-select {
    background: rgba(255,255,255,0.9) !important;
}

.payment-field {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hotel-booking-pro-public {
        padding: 10px;
    }
    
    .rooms-grid-public {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
        border-radius: 15px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    #signatureCanvas,
    #counterSignatureCanvas {
        width: 100% !important;
        height: 150px !important;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .submit-booking,
    .cancel-booking,
    .submit-counter-booking,
    .reset-form {
        min-width: auto;
        width: 100%;
    }
    
    .hotel-booking-pro-counter {
        padding: 20px;
        margin: 10px;
    }
    
    .counter-booking-header h2 {
        font-size: 1.8em;
        flex-direction: column;
        gap: 10px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 12px 12px 40px;
    }
    
    .form-icon {
        left: 12px;
        top: 38px;
    }
}