html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: #fff5f7;
    color: #333;
}

/* Hjärtbakgrund */
.heart-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.heart {
    position: absolute;
    display: block;
    width: 20px;
    height: 20px;
    background: #ffb7c5;
    transform: rotate(45deg);
    opacity: 0.6;
    animation: animate-heart 15s linear infinite;
    bottom: -50px;
}

.heart::before,
.heart::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #ffb7c5;
    border-radius: 50%;
}

.heart::before {
    left: -10px;
}

.heart::after {
    top: -10px;
}

@keyframes animate-heart {
    0% {
        transform: rotate(45deg) translateY(0) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: rotate(45deg) translateY(-110vh) scale(1.2);
        opacity: 0;
    }
}

/* Flytande namn */
.floating-names {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.floating-name {
    position: absolute;
    bottom: -50px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #e91e63;
    opacity: 0.8;
    white-space: nowrap;
    animation: animate-name linear forwards;
}

@keyframes animate-name {
    0% {
        transform: translateY(0) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-110vh) scale(1.1);
        opacity: 0;
    }
}

/* Innehåll */
.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
    padding: 1rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .main-container {
        padding: 0.5rem;
    }
}

.logo-container {
    margin-bottom: 1rem;
}

.hero-logo {
    max-width: 400px;
    height: auto;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
}

.hero-title {
    font-size: clamp(2.5rem, 10vw, 6rem);
    font-weight: 900;
    color: #e91e63;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    line-height: 1.1;
}

h1, .h1 { font-size: clamp(2rem, 8vw, 4rem); }
h2, .h2 { font-size: clamp(1.75rem, 6vw, 3rem); }
h3, .h3 { font-size: clamp(1.5rem, 5vw, 2.5rem); }
h4, .h4 { font-size: clamp(1.25rem, 4vw, 2rem); }
h5, .h5 { font-size: clamp(1.1rem, 3vw, 1.5rem); }
h6, .h6 { font-size: clamp(1rem, 2.5vw, 1.25rem); }

@media (max-width: 768px) {
    .hero-title {
        letter-spacing: 0.1rem;
    }
}

.hero-ingress {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    color: #555;
    max-width: 800px;
    line-height: 1.4;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    position: relative;
    z-index: 10;
}

/* Info Icon and Modal */
.info-icon-container {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding: 5px;
}

.info-icon {
    width: 24px;
    height: 24px;
    color: #e91e63;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.2s;
}

.info-icon-container:hover .info-icon {
    opacity: 1;
    transform: scale(1.1);
}

.info-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

.info-modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease-out;
}

.info-modal-scroll {
    overflow-y: auto;
    padding-right: 10px;
    text-align: left;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
}

.close-modal:hover {
    color: #e91e63;
}

.info-modal-content h5 {
    color: #e91e63;
    margin-bottom: 1.5rem;
    font-weight: 700;
    padding-right: 30px;
}

.info-modal-content h6 {
    color: #d81b60;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.info-modal-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.info-modal-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.2rem;
}

.info-modal-content li {
    margin-bottom: 0.6rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Custom scrollbar for modal */
.info-modal-scroll::-webkit-scrollbar {
    width: 6px;
}

.info-modal-scroll::-webkit-scrollbar-track {
    background: #fff5f7;
    border-radius: 10px;
}

.info-modal-scroll::-webkit-scrollbar-thumb {
    background: #ffb7c5;
    border-radius: 10px;
}

.info-modal-scroll::-webkit-scrollbar-thumb:hover {
    background: #e91e63;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #e91e63;
    border-color: #d81b60;
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #c2185b;
    transform: scale(1.05);
}

.kindness-form {
    width: 100%;
    max-width: 500px;
}

/* Modern Kindness Form Card */
.kindness-form-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    width: 100%;
    max-width: 500px;
    border: 1px solid rgba(255, 183, 197, 0.3);
}

.form-group-modern {
    text-align: left;
}

.form-label-modern {
    font-weight: 600;
    color: #444;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.95rem;
}

.textarea-wrapper {
    position: relative;
}

.form-control-modern {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    background: #fafafa;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: #333;
    outline: none;
}

.form-control-modern:focus {
    border-color: #ffb7c5;
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 183, 197, 0.2);
}

.char-counter {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 0.75rem;
    color: #aaa;
    pointer-events: none;
}

.form-text-subtle {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.4rem;
}

.validation-error {
    font-size: 0.85rem;
    color: #d32f2f;
    margin-top: 0.4rem;
}

.btn-submit-modern {
    background: linear-gradient(135deg, #e91e63 0%, #d81b60 100%);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 1rem 2rem;
    font-weight: 700;
    width: 100%;
    margin-top: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.3);
    color: white;
}

.btn-submit-modern:active {
    transform: translateY(0);
}

.btn-success {
    padding: 0.5rem 1.5rem;
    font-size: 0.95rem;
    border-radius: 12px;
}

.btn-lg.btn-success {
    padding: 0.8rem 2.5rem;
    font-size: 1.15rem;
    border-radius: 14px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: #e91e63;
}

/* Success State Styles */
.submission-success {
    text-align: center;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.link-display-group {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    margin: 1.5rem 0;
    border: 1px dashed #ffb7c5;
}

.link-input {
    width: 100%;
    text-align: center;
    font-family: monospace;
    font-size: 0.9rem;
    color: #e91e63;
    margin-bottom: 1rem;
    cursor: text;
}

.link-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.animate-in {
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.text-danger {
    color: #d32f2f;
    font-weight: 500;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODM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YuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

#blazor-error-ui {
    background: #ffb7c5;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: #333;
}

#blazor-error-ui .reload {
    margin-left: 0.5rem;
    color: #e91e63;
    font-weight: bold;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}