/**
 * NaN Booking Pro - Frontend Styles
 */

.nbp-booking-widget {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    direction: rtl;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, Arial, sans-serif;
    color: #1d2327;
}

.nbp-booking-widget * { box-sizing: border-box; }

.nbp-progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    position: relative;
}

.nbp-progress-steps::before {
    content: '';
    position: absolute;
    top: 22px;
    right: 30px;
    left: 30px;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

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

.nbp-step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #9ca3af;
    transition: all 0.3s;
    font-size: 18px;
}

.nbp-step.active .nbp-step-num {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

.nbp-step.completed .nbp-step-num {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}

.nbp-step-label {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    font-weight: 500;
}

.nbp-step.active .nbp-step-label { color: #2271b1; }

.nbp-step-content {
    display: none;
    animation: nbp-fade-in 0.3s ease-out;
}

.nbp-step-content.active { display: block; }

@keyframes nbp-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.nbp-step-content h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 24px;
    color: #1d2327;
}

.nbp-step-content h2 i {
    color: #2271b1;
    font-size: 26px;
}

.nbp-specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.nbp-specialty-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.nbp-specialty-card:hover {
    border-color: #2271b1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.nbp-specialty-card.selected {
    border-color: #2271b1;
    background: #f0f7ff;
}

.nbp-specialty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.nbp-specialty-name {
    font-size: 14px;
    font-weight: 500;
}

.nbp-doctors-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nbp-doctor-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    gap: 16px;
    align-items: center;
}

.nbp-doctor-card:hover {
    border-color: #2271b1;
}

.nbp-doctor-card.selected {
    border-color: #2271b1;
    background: #f0f7ff;
}

.nbp-doctor-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f0f7ff;
    color: #2271b1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.nbp-doctor-info { flex: 1; }
.nbp-doctor-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}
.nbp-doctor-meta {
    font-size: 13px;
    color: #6b7280;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.nbp-doctor-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nbp-doctor-fee {
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #2271b1;
}

.nbp-form-group {
    margin-bottom: 18px;
}

.nbp-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
}

.nbp-form-group .required { color: #ef4444; }

.nbp-form-group input,
.nbp-form-group select,
.nbp-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.2s;
}

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

.nbp-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
    margin-top: 16px;
}

.nbp-slot {
    padding: 10px;
    text-align: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.nbp-slot:hover {
    border-color: #2271b1;
    color: #2271b1;
}

.nbp-slot.selected {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.nbp-empty {
    text-align: center;
    color: #6b7280;
    padding: 24px;
}

.nbp-actions-bar {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.nbp-back-btn {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #4b5563;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nbp-back-btn:hover {
    background: #f3f4f6;
}

.nbp-summary {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.nbp-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
}

.nbp-summary-item strong { color: #1d2327; }
.nbp-summary-item span { color: #6b7280; }

.nbp-submit-btn {
    width: 100%;
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.nbp-submit-btn:hover { background: #135e96; }
.nbp-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.nbp-success {
    text-align: center;
    padding: 40px 20px;
}

.nbp-success-icon {
    font-size: 80px;
    color: #10b981;
    margin-bottom: 16px;
}

.nbp-success h2 {
    font-size: 24px;
    color: #10b981;
    margin: 0 0 12px;
}

.nbp-confirmation-details {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
    padding: 20px;
    margin: 24px 0;
    text-align: right;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.nbp-confirmation-details div {
    padding: 6px 0;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.nbp-new-booking-btn {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 600px) {
    .nbp-step-label { font-size: 10px; }
    .nbp-step-num { width: 36px; height: 36px; font-size: 14px; }
    .nbp-step-content h2 { font-size: 18px; }
}
