﻿* {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.pagebody {
    background: linear-gradient(145deg, #0a1e5e 0%, #1a3a8f 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0;
    padding: 20px;
    overflow-x: hidden;
}

    body.pagebody::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.08"><path fill="white" d="M50,5 L65,35 L95,40 L75,60 L80,90 L50,75 L20,90 L25,60 L5,40 L35,35 Z"/><circle cx="50" cy="50" r="8"/><path d="M50,15 L58,35 L78,38 L63,53 L68,73 L50,62 L32,73 L37,53 L22,38 L42,35 Z"/><rect x="45" y="45" width="10" height="10" rx="2"/></svg>');
        background-repeat: repeat;
        background-size: 60px;
        pointer-events: none;
    }

    /* Ekstra motif - sağlık sembolleri */
    body.pagebody::after {
        content: "🏥 ⚕️ 💊 🩺 🏥";
        position: fixed;
        bottom: 20px;
        right: 20px;
        font-size: 40px;
        opacity: 0.06;
        white-space: pre;
        pointer-events: none;
    }

.wizard-container {
    max-width: 1200px;
    width: 100%;
    margin: 20px auto;
    position: relative;
    z-index: 1;
}

.modern-card {
    border-radius: 32px !important;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(6px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.3), 0 8px 18px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    overflow: hidden;
}

.wizard-header {
    background: linear-gradient(115deg, #ffffff 0%, #f4f9ff 100%);
    padding: 1.4rem 2rem;
    border-bottom: 1px solid #e2edff;
}

/* Logo ve Kurum Bilgileri */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e8f0fe;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #0a5b9e, #1a7bc6);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(10, 91, 158, 0.2);
}

    .logo-icon i {
        font-size: 2rem;
        color: white;
    }

.institution-info h2 {
    color: #0a2540;
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.institution-info p {
    color: #5a6e8a;
    font-size: 0.8rem;
}

.header-buttons {
    display: flex;
    gap: 12px;
}

.btn-outline {
    background: transparent;
    border: 1px solid #c5d9f0;
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #1b4c8c;
}

    .btn-outline:hover {
        background: #eef2ff;
        border-color: #0a5b9e;
    }

.step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
    margin-top: 4px;
}

.step-badge {
    background: #eef4ff;
    color: #1e3a8a;
    border-radius: 60px;
    padding: 6px 18px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .step-badge.active {
        background: #0a5b9e;
        color: white;
        box-shadow: 0 6px 12px rgba(10, 91, 158, 0.25);
    }

    .step-badge.completed {
        background: #1f8a4c;
        color: white;
    }

.step-title {
    font-weight: 700;
    font-size: 1.5rem;
    color: #0a2540;
}

.wizard-body {
    padding: 1.2rem 1.6rem 1.8rem;
    min-height: auto;
    background: linear-gradient(to bottom, rgba(255,255,255,0.95), rgba(255,255,255,0.98));
}

/* Hoşgeldin kartı */
.welcome-card {
    background: linear-gradient(135deg, #eef6fb 0%, #e0edf9 100%);
    border-radius: 20px;
    padding: 10px;
    margin-top:0px;
    margin-bottom: 15px;
    text-align: center;
    border: 1px solid rgba(26, 123, 198, 0.2);
    max-height: 80px;
}

    .welcome-card h4 {
        color: #0a5b9e;
        margin-bottom: 8px;
    }

    .welcome-card p {
        color: #4a627a;
        font-size: 0.9rem;
    }

.form-group {
    margin-bottom: 1.4rem;
}

label {
    font-weight: 600;
    color: #0f3b6f;
    margin-bottom: 6px;
    display: block;
    font-size: 0.9rem;
}

input {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid #cbdff2;
    background: white;
    font-size: 0.95rem;
    outline: none;
    border-radius: 18px;
    transition: all 0.2s;
}

    input:focus {
        border-color: #2a6ebb;
        box-shadow: 0 0 0 3px rgba(42, 110, 187, 0.1);
    }

.hospitals-grid, .doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin: 1rem 0;
}

.branch-card {
    background: #ffffff;
    border: 1px solid #dce9fc;
    border-radius: 24px;
    padding: 16px 10px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    height: 80px;
}

.hospital-card, .doctor-card {
    background: #ffffff;
    border: 1px solid #dce9fc;
    border-radius: 24px;
    padding: 16px 10px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    height: auto;
}

    .hospital-card::before, .branch-card::before, .doctor-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(10, 91, 158, 0.05), transparent);
        transition: left 0.5s;
    }

    .hospital-card:hover::before, .branch-card:hover::before, .doctor-card:hover::before {
        left: 100%;
    }

    .hospital-card:hover, .branch-card:hover, .doctor-card:hover {
        transform: translateY(-3px);
        border-color: #2f7bc0;
        background: #f9fdff;
    }

    .hospital-card.selected, .branch-card.selected, .doctor-card.selected {
        background: #e5f1fe;
        border: 2px solid #0f67b3;
        box-shadow: 0 10px 20px rgba(15, 103, 179, 0.15);
    }
    /*.doctor-card.selected::after {
        content: "✓";
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 24px;
        color: green;
        font-weight: bold;
        background: white;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }*/

.hospital-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 10px;
}

.doctor-name {
    font-weight: 700;
    margin-top: 8px;
    color: #0a2540;
}

.doctor-title {
    font-size: 0.75rem;
    color: #6c7a8e;
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.hour-slot {
    background: #f8fcff;
    border: 1px solid #bed3f0;
    border-radius: 40px;
    padding: 12px 0;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

    .hour-slot:hover:not(.unavailable) {
        background: #0a66b9;
        color: white;
        transform: scale(1.02);
    }
    .hour-slot.selected {
        background: #e5f1fe;
        border: 2px solid #0f67b3;
        box-shadow: 0 10px 20px rgba(15, 103, 179, 0.15);
        color: white;
        border: 2px solid #ffd700;
        position: relative;
        font-weight: bold;
    }
    .hour-slot.available {
        background-color: #28a745; /* Yeşil */
        color: white;
        border: 1px solid #28a745;
    }
        .hour-slot.available:hover {
            background-color: #218838;
            cursor: pointer;
        }
        .hour-slot.available.selected {
            background: #0a5b9e;
            color: white;
            box-shadow: 0 6px 12px rgba(10, 91, 158, 0.25);
        }
    .hour-slot.unavailable {
        background-color: #dc3545; /* Kırmızı */
        color: white;
        border: 1px solid #dc3545;
        cursor: not-allowed;
        opacity: 0.7;
    }

.btn-nav {
    border-radius: 40px;
    padding: 10px 28px;
    font-weight: 600;
    border: none;
    background: #eef2f9;
    color: #1b4c8c;
    cursor: pointer;
    transition: all 0.2s;
}

    .btn-nav:hover {
        background: #e0e8f5;
    }

.btn-nav-primary {
    background: #0f5e9e;
    color: white;
}

    .btn-nav-primary:hover {
        background: #084e83;
        transform: translateY(-1px);
    }

.result-card {
    background: linear-gradient(135deg, #eef6fb 0%, #e5f0fa 100%);
    border-radius: 24px;
    padding: 25px;
    border-left: 8px solid #1a7bc6;
    text-align: center;
}

.info-line {
    margin-top: 20px;
    color: #6c7a8e;
    font-size: 0.85rem;
    text-align: left;
    padding: 10px;
    background: #f8faff;
    border-radius: 16px;
}

.required-star {
    color: #dc3545;
}

.error {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
}

footer {
    text-align: center;
    font-size: 0.75rem;
    color: #cbdbe0;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

/* Animasyonlar */
@@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-body {
    animation: fadeInUp 0.4s ease-out;
}

@@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        text-align: center;
    }

    .logo-area {
        justify-content: center;
    }

    .step-badge span:not(.step-text) {
        display: none;
    }

    .nav-buttons {
        display: flex;
        justify-content: space-between;
        padding: 20px 30px;
        border-top: 1px solid #ecf3fc;
        background: #f8faff;
    }

    .btn-nav {
        border-radius: 40px;
        padding: 10px 28px;
        font-weight: 600;
        border: none;
        background: #eef2f9;
        color: #1b4c8c;
        cursor: pointer;
        transition: all 0.2s;
        font-size: 0.95rem;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

        .btn-nav:hover {
            background: #e0e8f5;
            transform: translateY(-1px);
        }

    .btn-nav-primary {
        background: #0f5e9e;
        color: white;
    }

        .btn-nav-primary:hover {
            background: #084e83;
        }

    .btn-nav:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
    }
}

/*ANİMASYON BLOĞU*/


/* Sadece bu blok için gerekli stiller - dış sayfayı etkilemez */
.two-column-appointment-block {
    font-family: 'Segoe UI', system-ui, -apple-system, 'Roboto', sans-serif;
    max-width: 1300px;
    margin: 0;
    background: transparent;
}

/* 2 sütunlu flex yapı */
.appointment-dual-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: stretch;
}

/* SOL TARAF: form kartı */
.form-side {
    flex: 1.2;
    min-width: 320px;
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: all 0.2s;
}

/* SAĞ TARAF: animasyonlu bilgi kartı */
.info-side {
    flex: 0.9;
    min-width: 280px;
    background: linear-gradient(145deg, #f8fafc 0%, #eef2f7 100%);
    border-radius: 32px;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(0px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.25s ease;
}

    .info-side:hover {
        transform: translateY(-3px);
    }

/* form içi düzenlemeler (mevcut görünümü koru) */
.patient-form {
    padding: 1.8rem 1.8rem 2rem 1.8rem;
}

.card-header-custom {
    background: #0b3b5f;
    padding: 1rem 1.8rem;
    color: white;
    border-bottom: 3px solid #2c9cd4;
}

    .card-header-custom h3 {
        font-size: 1.35rem;
        margin: 0;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.required-star {
    color: #dc3545;
    font-weight: bold;
    margin-left: 2px;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.35rem;
    color: #1e2a3e;
    font-size: 0.85rem;
}

.form-control, .form-select {
    border-radius: 14px;
    border: 1px solid #cfdee9;
    padding: 0.55rem 0.9rem;
    transition: 0.2s;
}

    .form-control:focus, .form-select:focus {
        border-color: #2c9cd4;
        box-shadow: 0 0 0 3px rgba(44,156,212,0.2);
    }

.error {
    color: #dc3545;
    font-size: 0.7rem;
    margin-top: 4px;
}

.alert-warning {
    border-radius: 20px;
    background-color: #fff3cd;
    border-left: 5px solid #ffc107;
    font-size: 0.85rem;
    padding: 0.7rem 1rem;
}

/* Sağ taraf animasyon & içerik */
.hospital-brand {
    background: linear-gradient(115deg, #106a8b 0%, #0a4c66 100%);
    padding: 1.4rem 1.5rem;
    text-align: center;
    color: white;
}

    .hospital-brand i {
        font-size: 2.6rem;
        filter: drop-shadow(2px 4px 8px rgba(0,0,0,0.2));
    }

    .hospital-brand h4 {
        font-weight: 700;
        margin: 10px 0 0;
        letter-spacing: -0.2px;
    }

.info-content {
    padding: 1.5rem 1.5rem 1.8rem;
    flex: 1;
}

.info-highlight {
    background: white;
    border-radius: 24px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 14px rgba(0,0,0,0.03);
    border: 1px solid rgba(44,156,212,0.2);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

    .info-item i {
        width: 36px;
        height: 36px;
        background: #e9f4fb;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 30px;
        color: #106a8b;
        font-size: 1.2rem;
    }

    .info-item div strong {
        display: block;
        font-size: 0.85rem;
        color: #2c3e50;
    }

    .info-item div span {
        font-size: 0.9rem;
        font-weight: 500;
        color: #0b3b5f;
    }

.animation-area {
    margin-top: 20px;
    background: rgba(16,106,139,0.08);
    border-radius: 28px;
    padding: 1rem 0.8rem;
    text-align: center;
    border: 1px dashed #2c9cd4;
}

.animated-icon {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.bounce-icon {
    animation: bounceSoft 2.2s infinite ease-in-out;
    background: white;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 60px;
    box-shadow: 0 5px 12px rgba(0,0,0,0.1);
    font-size: 1.8rem;
    color: #0f6b8c;
}

.pulse-icon {
    animation: pulseOpacity 1.8s infinite;
    background: #ffffffd9;
}

.float-text {
    font-weight: 600;
    color: #13547a;
    margin-top: 10px;
    font-size: 0.85rem;
    display: inline-block;
    background: #ffffffaa;
    padding: 5px 14px;
    border-radius: 40px;
    backdrop-filter: blur(2px);
}

@keyframes bounceSoft {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes pulseOpacity {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
        background-color: #d9eff8;
    }

    100% {
        opacity: 0.7;
        transform: scale(1);
    }
}

.rotate-slow {
    animation: rotateSlow 8s infinite linear;
    display: inline-block;
}

@keyframes rotateSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.appointment-badge {
    background: #0b3b5f20;
    border-radius: 40px;
    padding: 8px 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* responsive: küçük ekranlarda alt alta */
@media (max-width: 780px) {
    .appointment-dual-layout {
        flex-direction: column;
    }
}
/* Error Modal Stilleri */
.error-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.error-modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.error-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .error-modal-header h3 {
        margin: 0;
        color: #dc3545;
        font-size: 18px;
    }

.error-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

    .error-modal-close:hover {
        color: #333;
    }

.error-modal-body {
    padding: 20px;
}

    .error-modal-body p {
        margin: 0;
        color: #333;
        line-height: 1.5;
    }

.error-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e5e5e5;
    text-align: center;
}

.error-modal-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

    .error-modal-btn:hover {
        background-color: #c82333;
    }