/* Dluhopisy — baseline form styles (fallback when Tailwind CDN unavailable) */

/* Form inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    width: 100%;
    box-sizing: border-box;
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #22c55e;
    outline-offset: -1px;
    border-color: #22c55e;
}

/* Accessible focus ring */
*:focus-visible {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
}

/* Checkbox — don't stretch full width */
input[type="checkbox"] {
    width: auto;
    accent-color: #15803d;
}

/* Validation error state */
input.border-red-500,
textarea.border-red-500,
select.border-red-500 {
    border-color: #ef4444;
}

/* Submit button loading spinner */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}
