body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f3f4f6;
    margin: 0;
    padding: 0;
}

.kontakt-wrapper {
    max-width: 680px;
    margin: 3rem auto;
    padding: 1.5rem;
}

.kontakt-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.75rem 1.75rem 2rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e7eb;
}

h1 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.6rem;
}

p.description {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #6b7280;
    font-size: 0.95rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
    width: 100%;
}

label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="file"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.6rem 0.7rem;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

.hint {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 0.2rem;
}

.btn-submit {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.35);
}

.status {
    animation: flashIn 0.6s ease;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .form-row {
        flex-direction: column;
    }

    .kontakt-wrapper {
        margin: 2rem auto;
        padding: 1rem;
    }
}

@keyframes flashIn {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.status.error {
    background: #ffe5e5;
    border: 1px solid #e63946;
    color: #8b0000;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.status.success {
    background: #e5ffe9;
    border: 1px solid #2ecc71;
    color: #1b5e20;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.input-error {
    border: 2px solid #e63946 !important;
    background: #ffecec !important;
}

.input-valid {
    border: 2px solid #2ecc71 !important;
    background: #f4fff7 !important;
}

.valid-icon {
    display: none;
    font-size: 1rem;
    color: #2ecc71;
    margin-left: 0.4rem;
    vertical-align: middle;
}

.valid-icon.show {
    display: inline-block;
}

/* Upload overlay */
.upload-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.upload-modal {
    background: #ffffff;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.upload-modal p {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ddd;
    border-top-color: #007bff;
    border-radius: 50%;
    margin: 0 auto 1rem auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar-inner {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #007bff, #00b894);
    transition: width 0.2s ease;
}

.btn-submit[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}
