:root {
    --primary-gold: #CAB57C;      
    --secondary-green: #183C37;   
    --bg-sand: #FEF9F0;           
    --light-green: #DFE0DF;       
    --text-dark: #303030;         
    --white: #ffffff;
    
    --font-heading: 'Host Grotesk', sans-serif;
    --font-body: 'Nunito', sans-serif;
    
    --radius-soft: 8px;           
    --shadow: 0 15px 40px rgba(24, 60, 55, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { font-family: var(--font-body); color: var(--text-dark); background-color: #f5f5f5; }

.cta-button {
    background-color: var(--secondary-green); color: var(--white);
    padding: 14px 28px; border: none; border-radius: var(--radius-soft);
    font-family: var(--font-heading); font-weight: 600; font-size: 16px;
    cursor: pointer; transition: transform 0.2s, background 0.2s;
}

.cta-button:hover { background-color: #122d29; transform: translateY(-2px); }

.cta-button.outline { background: transparent; border: 2px solid var(--secondary-green); color: var(--secondary-green); }

.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(26, 43, 60, 0.8); display: flex; justify-content: center; align-items: center;
    z-index: 1000; opacity: 1; transition: opacity 0.3s ease; backdrop-filter: blur(4px); 
}

.hidden { display: none !important; }

.modal-content {
    background: var(--white); width: 95%; max-width: 800px;      
    border-radius: var(--radius-soft); padding: 40px; position: relative;
    box-shadow: var(--shadow); max-height: 95vh; overflow-y: auto;      
    scrollbar-width: thin; scrollbar-color: var(--primary-gold) transparent;
}

.modal-content::-webkit-scrollbar { width: 6px; }
.modal-content::-webkit-scrollbar-track { background: transparent; }
.modal-content::-webkit-scrollbar-thumb { background-color: #ddd; border-radius: 20px; }

.close-btn-fancy {
    position: absolute; top: 20px; right: 35px;            
    background-color: transparent; color: #999; border: none;
    width: 40px; height: 40px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s ease; z-index: 10;
}

.close-btn-fancy:hover { color: var(--secondary-green); background-color: #f0f0f0; transform: rotate(90deg); }

.step-title { font-family: var(--font-heading); font-size: 24px; color: var(--secondary-green); }

.treatment-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }

.treatment-card {
    background: var(--white); border: 1px solid #ddd; padding: 18px 25px;
    border-radius: var(--radius-soft); display: flex; align-items: center; gap: 15px;
    cursor: pointer; transition: all 0.2s; text-align: left; width: 100%;
}
.treatment-card:hover { border-color: var(--primary-gold); background-color: #fafafa; transform: translateX(5px); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.treatment-card .icon { font-size: 24px; }
.treatment-card .text { font-weight: 700; font-size: 16px; color: var(--secondary-green); font-family: var(--font-body); }

/* --- ROLIG & HYGGELIG LOADING ANIMATION --- */
.loading-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.loading-dots div {
    width: 12px;
    height: 12px;
    background-color: var(--primary-gold);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}
.loading-dots div:nth-child(1) { animation-delay: -0.32s; }
.loading-dots div:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

.calendar-wrapper { background: #fff; border: 1px solid #ddd; border-radius: var(--radius-soft); padding: 15px; margin-bottom: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.calendar-header button { background: none; border: none; cursor: pointer; font-size: 18px; color: #666; transition: color 0.2s; }
.calendar-header button:hover { color: var(--secondary-green); }
.calendar-header h4 { margin: 0; font-size: 16px; color: var(--secondary-green); font-family: var(--font-body); font-weight: 700; }
.calendar-grid-header, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; text-align: center; }
.calendar-grid-header span { font-size: 12px; color: #999; font-weight: bold; margin-bottom: 5px; }

.cal-day { width: 35px; height: 35px; margin: 0 auto; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 14px; cursor: default; position: relative; transition: all 0.2s; }
.cal-day.empty { visibility: hidden; }
.cal-day.disabled { color: #ddd; }
.cal-day.available { cursor: pointer; color: var(--text-dark); background: #fdfbf7; font-weight: bold; }
.cal-day.available::after { content: ''; position: absolute; bottom: 4px; width: 4px; height: 4px; background: #3b82f6; border-radius: 50%; } 
.cal-day.selected { background: var(--secondary-green); color: #fff; box-shadow: 0 4px 10px rgba(24, 60, 55, 0.3); }
.cal-day.selected::after { background: #fff; }
.cal-day.available:hover:not(.selected) { border: 1px solid var(--primary-gold); }

.slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }

.slot-btn {
    background: var(--white); border: 1px solid #ddd; padding: 12px;
    border-radius: var(--radius-soft); cursor: pointer; text-align: center;
    transition: all 0.2s; font-family: var(--font-body);
}
.slot-btn:hover { border-color: var(--primary-gold); background-color: #fdfbf7; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.05); }

/* --- NY NUMBERED STEPPER --- */
.progress-stepper { display: flex; align-items: center; justify-content: center; margin-top: 30px; }
.step-circle {
    width: 32px; height: 32px; border-radius: 50%; background: #e0e0e0; color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: bold;
    transition: all 0.3s ease; font-family: var(--font-heading);
}
.step-circle.completed { background: #A8BDB8; }
.step-circle.active { background: var(--secondary-green); transform: scale(1.15); box-shadow: 0 4px 10px rgba(24, 60, 55, 0.2); }
.step-line { width: 40px; height: 3px; background: #e0e0e0; transition: all 0.3s ease; margin: 0 8px; border-radius: 2px; }
.step-line.completed { background: #A8BDB8; }

/* LØSNING: Vi designer select-boksen, så den ligner en rigtig knap! */
.dentist-dropdown {
    appearance: none; 
    width: 100%; 
    padding: 14px 16px; 
    border: 2px solid #e0e0e0; 
    border-radius: var(--radius-soft); 
    font-family: var(--font-body); 
    font-size: 16px; 
    font-weight: 700; 
    color: var(--secondary-green); 
    background-color: #fff;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23183C37' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat; 
    background-position: right 16px center; 
    background-size: 16px; 
    cursor: pointer; 
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.dentist-dropdown:hover {
    border-color: var(--primary-gold);
    background-color: #fdfbf7;
}

input, textarea { 
    font-size: 16px !important; 
    transition: border 0.2s, box-shadow 0.2s; 
}
.dentist-dropdown:focus, input:focus, textarea:focus { border-color: var(--primary-gold) !important; outline: none; box-shadow: 0 0 0 3px rgba(202, 181, 124, 0.15); }

.action-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 600px) {
    .modal-content { padding: 25px 20px; width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
    .close-btn-fancy { top: 10px; right: 20px; }
    div[style*="display: flex; gap: 15px;"] { flex-direction: column; gap: 15px !important; }
    
    .action-buttons {
        flex-direction: column-reverse;
        gap: 20px;
    }
    .action-buttons .cta-button {
        width: 100%;
    }
    .action-buttons .back-link {
        width: 100%;
        padding: 10px;
    }
}