.trafikskola-wrapper {
    margin: 40px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.trafikskola-no-courses {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #6b7280;
}

.trafikskola-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.trafikskola-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trafikskola-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f3f4f6;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.trafikskola-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 24px;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #111827;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6b7280;
}

.meta-item svg {
    color: #3b82f6;
}

.card-description {
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 20px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.card-price {
    font-size: 24px;
    font-weight: 700;
    color: #059669;
}

.card-button {
    padding: 10px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
}

.trafikskola-lista {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.trafikskola-lista-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 20px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.trafikskola-lista-item:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transform: translateX(4px);
}

.lista-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
}

.lista-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lista-content {
    flex: 1;
}

.lista-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #111827;
}

.lista-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.meta-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #eff6ff;
    border-radius: 6px;
    font-size: 13px;
    color: #1e40af;
}

.meta-badge svg {
    color: #3b82f6;
}

.lista-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

.lista-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 12px;
}

.lista-price {
    font-size: 28px;
    font-weight: 700;
    color: #059669;
}

.lista-button {
    padding: 12px 32px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.lista-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
}

.trafikskola-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.slider-container {
    overflow: hidden;
    border-radius: 12px;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.slider-slide {
    min-width: 100%;
    padding: 10px;
}

.slider-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.slider-image {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: #f3f4f6;
}

.slider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

.slider-price {
    font-size: 36px;
    font-weight: 700;
    color: white;
}

.slider-content {
    padding: 30px;
}

.slider-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #111827;
}

.slider-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.slider-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #6b7280;
}

.slider-meta-item svg {
    color: #3b82f6;
}

.slider-description {
    font-size: 16px;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 24px;
}

.slider-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-nav:hover {
    background: #3b82f6;
    color: white;
}

.slider-nav svg {
    color: inherit;
}

.slider-prev {
    left: -25px;
}

.slider-next {
    right: -25px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #3b82f6;
    width: 30px;
    border-radius: 5px;
}

.trafikskola-tabell-container {
    overflow-x: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.trafikskola-tabell {
    width: 100%;
    border-collapse: collapse;
}

.trafikskola-tabell thead {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.trafikskola-tabell th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trafikskola-tabell tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.2s ease;
}

.trafikskola-tabell tbody tr:hover {
    background: #f9fafb;
}

.trafikskola-tabell td {
    padding: 20px 16px;
    font-size: 14px;
    color: #374151;
}

.tabell-kurs-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tabell-kurs-bild {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.tabell-kurs-titel {
    font-weight: 600;
    font-size: 16px;
    color: #111827;
    margin-bottom: 4px;
}

.tabell-kurs-beskrivning {
    font-size: 13px;
    color: #6b7280;
}

.tabell-datum,
.tabell-langd,
.tabell-platser {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tabell-datum svg,
.tabell-langd svg,
.tabell-platser svg {
    color: #3b82f6;
}

.tabell-pris {
    font-size: 18px;
    font-weight: 700;
    color: #059669;
}

.tabell-button {
    padding: 10px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tabell-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.3);
}

.trafikskola-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
}

.trafikskola-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 2px solid #e5e7eb;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #111827;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: #f3f4f6;
}

.modal-body {
    padding: 30px;
}

.modal-kurs-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 12px;
    margin-bottom: 30px;
}

.modal-kurs-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
}

.modal-kurs-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    margin-bottom: 4px;
}

.modal-kurs-titel {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.form-row {
    margin-bottom: 20px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-group label svg {
    color: #3b82f6;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.form-message.success {
    display: block;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.form-message.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.button-secondary {
    padding: 12px 24px;
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.button-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.button-primary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.button-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 768px) {
    .trafikskola-lista-item {
        grid-template-columns: 1fr;
    }

    .lista-image {
        width: 100%;
        height: 200px;
    }

    .lista-actions {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
    }

    .slider-prev {
        left: 10px;
    }

    .slider-next {
        right: 10px;
    }

    .trafikskola-tabell {
        font-size: 12px;
    }

    .trafikskola-tabell th,
    .trafikskola-tabell td {
        padding: 12px 8px;
    }
}
