/* Matching kropogdigifokus.dk theme - Modern Professional Design */
:root {
    --primary-green: #2E7D32;
    --primary-green-light: #4CAF50;
    --primary-green-dark: #1B5E20;
    --accent-sage: #87A96B;
    --text-primary: #212121;
    --text-secondary: #616161;
    --bg-white: #FFFFFF;
    --bg-light: #FAFAFA;
    --border-light: #E0E0E0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-light);
    padding: 0;
    margin: 0;
    color: var(--text-primary);
}

.container {
    max-width: 100%;
    background: white;
    min-height: 100vh;
}

/* Modern Header */
.header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    color: white;
    padding: 2rem 1.5rem;
    text-align: center;
}

.header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.header p {
    font-size: 0.95rem;
    opacity: 0.95;
    font-weight: 300;
}

/* Modern Stepper with Connecting Lines */
.stepper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    background: transparent;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.step::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #D5E5D7;
    z-index: 0;
}

.step:last-child::after {
    display: none;
}

.step.completed::after {
    background: var(--primary-green-light);
}

.step-number {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #C8E6C9;
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-weight: bold;
    font-size: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    z-index: 1;
}

.step.active .step-number {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
    transform: scale(1.4);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.4);
}

.step.completed .step-number {
    background: var(--primary-green-light);
    transform: scale(1.05);
}

.step-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 0.5rem;
    white-space: nowrap;
}

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

.content {
    padding: 2rem 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.step-content { display: none; }
.step-content.active {
    display: block;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

h2 {
    color: var(--primary-green-dark);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
    text-align: center;
}

/* Modern Treatment Cards */
.treatment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .treatment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .treatment-grid {
        grid-template-columns: 1fr;
    }
}

.treatment-card {
    padding: 2rem 1.5rem;
    border: 2px solid var(--border-light);
    border-radius: 16px;
    background: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.treatment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-green-light));
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.treatment-card:hover {
    border-color: var(--primary-green);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.treatment-card:hover::before {
    transform: scaleX(1);
}

.treatment-card.selected {
    border-color: var(--primary-green);
    background: linear-gradient(135deg, #F1F8F4 0%, #E8F5E9 100%);
    box-shadow: var(--shadow-md);
}

.treatment-card.selected::before {
    transform: scaleX(1);
}

.treatment-card h3 {
    color: var(--primary-green);
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.treatment-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Modern Duration Selection */
.duration-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.duration-btn {
    padding: 2rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: 16px;
    background: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.duration-btn:hover {
    border-color: var(--primary-green);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.duration-btn.selected {
    border-color: var(--primary-green);
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    color: white;
    box-shadow: var(--shadow-lg);
}

.duration-label {
    font-size: 2rem;
    font-weight: bold;
    display: block;
    margin-bottom: 0.25rem;
}

.duration-sublabel {
    font-size: 0.85rem;
    opacity: 0.8;
}

.duration-price {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.75rem;
}

.duration-btn.selected .duration-price {
    opacity: 0.95;
}

/* Form Styling */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Time Slots */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 0.875rem;
    margin-top: 1.5rem;
    padding-top: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.time-slot {
    padding: 1rem;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    background: white;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.time-slot:hover {
    border-color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.time-slot.selected {
    border-color: var(--primary-green);
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

/* Modern Buttons */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--primary-green);
    border: 2px solid var(--border-light);
}

.btn-secondary:hover {
    border-color: var(--primary-green);
    background: var(--bg-light);
}

.btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-group button { flex: 1; }

/* Success Screen */
.success-message {
    text-align: center;
    padding: 3rem 1rem;
}

.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3rem;
    box-shadow: var(--shadow-lg);
    animation: successPop 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-message h2 {
    color: var(--primary-green-dark);
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.success-message p {
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 500px;
    margin: 0 auto;
    font-size: 1rem;
}

/* Loading & Error States */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.error {
    background: #FFEBEE;
    color: #C62828;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    border-left: 4px solid #C62828;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .stepper { padding: 1.5rem 0.5rem; gap: 0.25rem; }
    .step-label { font-size: 0.65rem; }

    h2 { font-size: 1.5rem; }

    .treatment-card {
        padding: 1.5rem;
    }

    .treatment-card h3 { font-size: 1.2rem; }

    .duration-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .time-slots {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 0.75rem;
    }

    .content { padding: 1.5rem 1rem; }
    .btn-group { flex-direction: column; }
}

@media (max-width: 600px) {
    .header {
        padding: 1.5rem 1rem;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .header p {
        font-size: 0.875rem;
    }

    .content {
        padding: 1rem;
    }

    .treatment-grid {
        gap: 1rem;
    }
}
