@tailwind base;
@tailwind components;
@tailwind utilities;

[x-cloak] {
    display: none !important;
}

.form-field-error {
    border-color: #d97706 !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22) !important;
}

.form-field-error:focus {
    border-color: #b45309 !important;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.3) !important;
}

.form-error-message {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.5rem;
    border: 1px solid #f59e0b;
    border-left-width: 4px;
    border-radius: 0.5rem;
    background: #fffbeb;
    color: #78350f;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
}

.form-error-message::before {
    content: "!";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.0625rem;
    border-radius: 9999px;
    background: #d97706;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
}

/* CKEditor generates this class; Tailwind cannot be applied from Blade. */
.ck-editor__editable {
    min-height: 220px;
}
