/* Hospital Appointment Booking - Premium Styles */
:root {
    --hap-primary: #2563eb;
    --hap-primary-hover: #1d4ed8;
    --hap-secondary: #64748b;
    --hap-bg: #ffffff;
    --hap-card-bg: #f8fafc;
    --hap-border: #e2e8f0;
    --hap-text: #0f172a;
    --hap-text-light: #64748b;
    --hap-success: #10b981;
    --hap-radius: 12px;
    --hap-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --hap-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.hap-wizard {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: var(--hap-bg);
    border-radius: var(--hap-radius);
    box-shadow: var(--hap-shadow-lg);
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--hap-text);
}

/* Progress Bar */
.hap-progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.hap-progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--hap-border);
    z-index: 1;
}

.hap-step {
    position: relative;
    z-index: 2;
    background: var(--hap-bg);
    padding: 0 10px;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--hap-text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.hap-step span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hap-border);
    border-radius: 50%;
    color: var(--hap-text-light);
    transition: all 0.3s ease;
}

.hap-step.active span {
    background: var(--hap-primary);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.hap-step.completed span {
    background: var(--hap-success);
    color: #fff;
}

.hap-step.active {
    color: var(--hap-primary);
}

/* Step Content */
.hap-wizard-step {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.hap-wizard-step.active {
    display: block;
}

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

.hap-wizard-step h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--hap-text);
}

/* Grids & Cards */
.hap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.hap-card {
    padding: 1.5rem;
    background: var(--hap-card-bg);
    border: 2px solid transparent;
    border-radius: var(--hap-radius);
    transition: all 0.2s ease;
    cursor: pointer;
}

.hap-card:hover {
    background: #fff;
    box-shadow: var(--hap-shadow);
    transform: translateY(-2px);
}

.hap-card.selected {
    border-color: var(--hap-primary);
    background: #eff6ff;
}

.hap-card h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.hap-meta {
    margin: 0;
    font-size: 0.875rem;
    color: var(--hap-text-light);
}

/* Inputs */
.hap-form-group {
    margin-bottom: 1.5rem;
}

.hap-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.hap-form-group input,
.hap-form-group select,
.hap-dropdown {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--hap-border);
    border-radius: var(--hap-radius);
    font-size: 1rem;
    background-color: var(--hap-bg);
    color: var(--hap-text);
    transition: border-color 0.2s ease;
    cursor: pointer;
}

.hap-form-group input:focus,
.hap-form-group select:focus,
.hap-dropdown:focus {
    outline: none;
    border-color: var(--hap-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.hap-date-selector input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--hap-border);
    border-radius: var(--hap-radius);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--hap-text);
    background-color: var(--hap-bg);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%2364748b" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 20px;
    box-sizing: border-box;
    cursor: pointer;
}

.hap-date-selector input::-webkit-calendar-picker-indicator {
    opacity: 0;
    cursor: pointer;
    width: 20px;
    height: 100%;
}

/* Slots */
.hap-slots-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
}

.hap-slot {
    text-align: center;
    padding: 0.75rem;
    font-weight: 500;
    font-size: 0.875rem;
}

/* Navigation */
.hap-wizard-nav {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--hap-border);
}

.hap-btn-primary, .hap-btn-secondary {
    padding: 0.75rem 2rem;
    border-radius: var(--hap-radius);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hap-btn-primary {
    background: var(--hap-primary);
    color: #fff;
    border: none;
}

.hap-btn-primary:hover:not(:disabled) {
    background: var(--hap-primary-hover);
}

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

.hap-btn-secondary {
    background: #fff;
    color: var(--hap-secondary);
    border: 1px solid var(--hap-border);
}

.hap-btn-secondary:hover {
    background: var(--hap-card-bg);
    color: var(--hap-text);
}

/* Summary */
.hap-summary-box {
    background: #f1f5f9;
    padding: 1.5rem;
    border-radius: var(--hap-radius);
}

.hap-summary-box h4 {
    margin-top: 0;
}

.hap-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.hap-summary-label {
    color: var(--hap-text-light);
}

/* Messages */
.hap-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--hap-radius);
    display: none;
}

.hap-message.success {
    display: block;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.hap-message.error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
