/* ============ Check-In Wizard Styles ============ */

:root {
    --wizard-primary: #C8A348;
    --wizard-primary-dark: #B8923A;
    --wizard-secondary: #4A7C59;
    --wizard-bg: #FFFFFF;
    --wizard-bg-alt: #F8F5EF;
    --wizard-border: #E8E0D2;
    --wizard-text: #23352B;
    --wizard-text-light: #6B7B73;
    --wizard-success: #4A7C59;
    --wizard-warning: #C8A348;
    --wizard-danger: #C75B5B;
}

/* Wizard Overlay */
.checkin-wizard-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Wizard Container */
.checkin-wizard-container {
    width: 900px;
    max-width: 95vw;
    max-height: 90vh;
    background: var(--wizard-bg);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideIn 0.4s ease;
}

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

/* Wizard Header */
.checkin-wizard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    background: linear-gradient(135deg, #23352B 0%, #314438 100%);
    color: white;
    border-bottom: 2px solid var(--wizard-primary);
}

.checkin-wizard-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Entry Screen */
.checkin-entry-screen {
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.entry-card {
    background: var(--wizard-bg-alt);
    border: 2px solid var(--wizard-border);
    border-radius: 12px;
    padding: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.entry-card:hover {
    border-color: var(--wizard-primary);
    box-shadow: 0 8px 24px rgba(200, 163, 72, 0.2);
    transform: translateY(-4px);
}

.entry-card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--wizard-primary) 0%, var(--wizard-primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 24px;
}

.entry-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--wizard-text);
    margin: 0 0 12px 0;
}

.entry-card p {
    font-size: 14px;
    color: var(--wizard-text-light);
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.entry-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--wizard-primary);
    font-weight: 600;
    font-size: 14px;
}

/* Wizard Progress */
.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    background: var(--wizard-bg-alt);
    border-bottom: 1px solid var(--wizard-border);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
}

.progress-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--wizard-border);
    color: var(--wizard-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.progress-step.active .progress-step-number {
    background: var(--wizard-primary);
    color: white;
    box-shadow: 0 0 0 4px rgba(200, 163, 72, 0.2);
}

.progress-step.completed .progress-step-number {
    background: var(--wizard-success);
    color: white;
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: calc(100% - 40px);
    height: 2px;
    background: var(--wizard-border);
    z-index: 0;
}

.progress-step.completed:not(:last-child)::after {
    background: var(--wizard-success);
}

.progress-step-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--wizard-text-light);
    text-align: center;
}

.progress-step.active .progress-step-label {
    color: var(--wizard-primary);
    font-weight: 600;
}

.progress-step.completed .progress-step-label {
    color: var(--wizard-success);
}

/* Wizard Content */
.wizard-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
}

.wizard-step {
    max-width: 100%;
}

.wizard-step h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--wizard-text);
    margin: 0 0 24px 0;
}

.wizard-step h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--wizard-text);
    margin: 24px 0 16px 0;
}

/* Form Grid */
.wizard-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--wizard-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--wizard-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: var(--wizard-text);
    background: white;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--wizard-primary);
    box-shadow: 0 0 0 3px rgba(200, 163, 72, 0.1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23C8A348' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* File Upload */
.file-upload {
    position: relative;
    border: 2px dashed var(--wizard-border);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-upload:hover {
    border-color: var(--wizard-primary);
    background: rgba(200, 163, 72, 0.05);
}

.file-upload input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload span {
    font-size: 14px;
    color: var(--wizard-text-light);
}

/* Info Card */
.info-card {
    background: var(--wizard-bg-alt);
    border: 1px solid var(--wizard-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.info-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--wizard-text);
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-item label {
    font-size: 11px;
    font-weight: 600;
    color: var(--wizard-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item span {
    font-size: 14px;
    color: var(--wizard-text);
}

/* Checkbox Group */
.checkbox-group {
    margin-top: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-label span {
    font-size: 14px;
    color: var(--wizard-text);
}

/* Room Cards */
.room-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.room-card {
    background: white;
    border: 2px solid var(--wizard-border);
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.room-card:hover {
    border-color: var(--wizard-primary);
}

.room-card.selected {
    border-color: var(--wizard-primary);
    background: rgba(200, 163, 72, 0.05);
}

.room-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--wizard-text);
    margin-bottom: 12px;
}

.room-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.room-details span {
    font-size: 13px;
    color: var(--wizard-text-light);
}

.status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status.ready {
    background: rgba(74, 124, 89, 0.1);
    color: var(--wizard-success);
}

.status.cleaning {
    background: rgba(91, 143, 185, 0.1);
    color: #5B8FB9;
}

.status.occupied {
    background: rgba(199, 91, 91, 0.1);
    color: var(--wizard-danger);
}

.status.out_of_order {
    background: rgba(139, 115, 85, 0.1);
    color: #8B7355;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.service-card {
    background: white;
    border: 2px solid var(--wizard-border);
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.service-card:hover {
    border-color: var(--wizard-primary);
}

.service-card.selected {
    border-color: var(--wizard-primary);
    background: rgba(200, 163, 72, 0.05);
}

.service-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--wizard-text);
    margin-bottom: 8px;
}

.service-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--wizard-primary);
}

/* Total Section */
.total-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--wizard-bg-alt);
    border-radius: 8px;
    border: 1px solid var(--wizard-border);
}

.total-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--wizard-text);
}

.total-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--wizard-primary);
}

/* Payment Summary */
.payment-summary {
    background: var(--wizard-bg-alt);
    border: 1px solid var(--wizard-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.payment-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--wizard-text);
}

.payment-row.total {
    border-top: 1px solid var(--wizard-border);
    margin-top: 8px;
    padding-top: 12px;
    font-weight: 700;
    font-size: 16px;
}

.payment-row.balance {
    color: var(--wizard-danger);
    font-weight: 600;
}

/* Payment Status */
.payment-status {
    margin-bottom: 24px;
}

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

.status-badge.full {
    background: rgba(74, 124, 89, 0.1);
    color: var(--wizard-success);
}

.status-badge.partial {
    background: rgba(200, 163, 72, 0.1);
    color: var(--wizard-primary);
}

.status-badge.unpaid {
    background: rgba(199, 91, 91, 0.1);
    color: var(--wizard-danger);
}

/* Payment Methods */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.payment-method-btn {
    padding: 12px 16px;
    border: 2px solid var(--wizard-border);
    border-radius: 8px;
    background: white;
    font-size: 13px;
    font-weight: 600;
    color: var(--wizard-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-method-btn:hover {
    border-color: var(--wizard-primary);
}

.payment-method-btn.active {
    border-color: var(--wizard-primary);
    background: var(--wizard-primary);
    color: white;
}

/* Payment Type Options */
.payment-type-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.payment-type-btn {
    padding: 12px 16px;
    border: 2px solid var(--wizard-border);
    border-radius: 8px;
    background: white;
    font-size: 13px;
    font-weight: 600;
    color: var(--wizard-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-type-btn:hover {
    border-color: var(--wizard-primary);
}

.payment-type-btn.active {
    border-color: var(--wizard-primary);
    background: var(--wizard-primary);
    color: white;
}

/* Assigned Room Display */
.assigned-room-display {
    background: linear-gradient(135deg, var(--wizard-primary) 0%, var(--wizard-primary-dark) 100%);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin-bottom: 24px;
}

.room-number-large {
    font-size: 48px;
    font-weight: 700;
    color: white;
    font-family: 'Playfair Display', serif;
}

/* Key Card Options */
.key-card-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

/* Success Screen */
.success-screen {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--wizard-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto 24px;
}

.success-screen h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--wizard-text);
    margin: 0 0 32px 0;
}

/* Summary Card */
.summary-card {
    background: var(--wizard-bg-alt);
    border: 1px solid var(--wizard-border);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.summary-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--wizard-text);
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary-item label {
    font-size: 11px;
    font-weight: 600;
    color: var(--wizard-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-item span {
    font-size: 14px;
    color: var(--wizard-text);
    font-weight: 600;
}

/* Success Actions */
.success-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

/* Wizard Actions */
.wizard-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 24px 32px;
    background: var(--wizard-bg-alt);
    border-top: 1px solid var(--wizard-border);
}

/* Buttons */
.btn-primary {
    padding: 12px 32px;
    background: var(--wizard-primary);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: var(--wizard-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 163, 72, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-primary.full-width {
    width: 100%;
}

.btn-secondary {
    padding: 12px 32px;
    background: white;
    border: 2px solid var(--wizard-border);
    border-radius: 8px;
    color: var(--wizard-text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    border-color: var(--wizard-primary);
    color: var(--wizard-primary);
}

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

.btn-secondary.full-width {
    width: 100%;
}

/* Filter Bar */
.filter-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

/* Guest Count Grid */
.guest-count-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Calculation Summary */
.calculation-summary {
    background: var(--wizard-bg-alt);
    border: 1px solid var(--wizard-border);
    border-radius: 8px;
    padding: 20px;
    margin-top: 24px;
}

.calc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--wizard-text);
}

.calc-row.subtotal {
    border-top: 1px solid var(--wizard-border);
    margin-top: 8px;
    padding-top: 12px;
    font-weight: 700;
    font-size: 16px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .checkin-wizard-container {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .checkin-entry-screen {
        grid-template-columns: 1fr;
        padding: 24px;
    }
    
    .entry-card {
        padding: 24px;
    }
    
    .wizard-progress {
        padding: 16px 20px;
    }
    
    .progress-step-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .progress-step:not(:last-child)::after {
        top: 16px;
        width: calc(100% - 32px);
    }
    
    .progress-step-label {
        font-size: 10px;
    }
    
    .wizard-content {
        padding: 20px;
    }
    
    .wizard-form-grid {
        grid-template-columns: 1fr;
    }
    
    .room-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .payment-methods {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .payment-type-options {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .success-actions {
        grid-template-columns: 1fr;
    }
    
    .wizard-actions {
        flex-direction: column;
    }
    
    .wizard-actions button {
        width: 100%;
    }
    
    .filter-bar {
        grid-template-columns: 1fr;
    }
    
    .room-number-large {
        font-size: 36px;
    }
}
