/*
 * Plain, self-contained CSS for Danel_CustomForm's storefront forms - no dependency on Luma's
 * _module.less mixins/variables, so this renders sensibly whether the active theme is Luma or
 * Hyvä (which doesn't load Luma's CSS at all). A Hyvä theme can still override any of these
 * classes with its own Tailwind-based styles if desired.
 */

.danel-customform {
    max-width: 640px;
    margin: 0 0 2rem;
}

.danel-customform__title {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    line-height: 1.25;
}

.danel-customform__message {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.danel-customform__message--success {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #a5d6a7;
}

.danel-customform__message--error {
    background: #fdecea;
    color: #611a15;
    border: 1px solid #f5c6cb;
}

.danel-customform__field {
    margin: 0 0 1rem;
}

.danel-customform__label {
    display: block;
    margin: 0 0 0.35rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.danel-customform__control {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.7rem;
    font-size: 1rem;
    line-height: 1.4;
    border: 1px solid #c7c7c7;
    border-radius: 4px;
    background: #fff;
    color: #1a1a1a;
}

textarea.danel-customform__control {
    min-height: 6rem;
    resize: vertical;
}

.danel-customform__radio-group,
.danel-customform__radio-option,
.danel-customform__checkbox-option {
    display: block;
}

.danel-customform__radio-option,
.danel-customform__checkbox-option {
    margin: 0.25rem 0;
    font-size: 0.95rem;
}

.danel-customform__radio-option input,
.danel-customform__checkbox-option input {
    margin-right: 0.4rem;
}

.danel-customform__field-error {
    margin-top: 0.3rem;
    font-size: 0.85rem;
    color: #b00020;
}

.danel-customform__actions {
    margin-top: 1.25rem;
}

.danel-customform__submit {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    background: #1979c3;
    color: #fff;
    cursor: pointer;
}

.danel-customform__submit:hover {
    background: #006bb4;
}

@media (prefers-color-scheme: dark) {
    .danel-customform__control {
        background: #1e1e1e;
        color: #f0f0f0;
        border-color: #444;
    }
}
