/*
 * report-event.css
 * Styling för publikt anmälningsformulär [sshk_hr_report_event]
 */

/* ── Wrapper ────────────────────────────────────────────────────────────── */
.sshk-report {
    max-width: 760px;
    font-family: inherit;
    color: inherit;
}

/* ── Sektioner ──────────────────────────────────────────────────────────── */
.sshk-report__section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e5e5;
}
.sshk-report__section:last-of-type {
    border-bottom: none;
}
.sshk-report__section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1.2rem;
    color: #1a1a1a;
}

/* ── Fält ───────────────────────────────────────────────────────────────── */
.sshk-report__field {
    margin-bottom: 1.2rem;
}
.sshk-report__field--row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 540px) {
    .sshk-report__field--row {
        grid-template-columns: 1fr;
    }
}

/* ── Etiketter ──────────────────────────────────────────────────────────── */
.sshk-report__label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}
.sshk-report__req {
    color: #c0392b;
    margin-left: 2px;
}
.sshk-report__hint {
    font-size: 0.83rem;
    color: #666;
    margin: 0.35rem 0 0;
    line-height: 1.5;
}
.sshk-report__hint-inline {
    font-size: 0.85rem;
    color: #666;
    font-weight: 400;
}

/* ── Inputs ─────────────────────────────────────────────────────────────── */
.sshk-report__input,
.sshk-report__select,
.sshk-report__textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.97rem;
    font-family: inherit;
    background: #fff;
    color: #1a1a1a;
    transition: border-color 0.15s;
}
.sshk-report__input:focus,
.sshk-report__select:focus,
.sshk-report__textarea:focus {
    outline: none;
    border-color: #3a7abf;
    box-shadow: 0 0 0 3px rgba(58,122,191,.15);
}
.sshk-report__input--date {
    max-width: 200px;
}
.sshk-report__textarea {
    resize: vertical;
    min-height: 100px;
}

/* ── Regnr-rad ──────────────────────────────────────────────────────────── */
.sshk-report__regnr-row {
    display: flex;
    gap: 0.6rem;
    align-items: stretch;
}
.sshk-report__regnr-row .sshk-report__input {
    flex: 1;
}

/* ── Lookup status ──────────────────────────────────────────────────────── */
.sshk-report__lookup-status {
    margin-top: 0.4rem;
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
}
.sshk-report__lookup-status--success {
    background: #eafbea;
    color: #1e7e34;
    border: 1px solid #b2dfb2;
}
.sshk-report__lookup-status--error {
    background: #fff0f0;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

/* ── Hundkort ───────────────────────────────────────────────────────────── */
.sshk-report__dog-card {
    background: #f0f6ff;
    border: 1px solid #bdd5f5;
    border-radius: 6px;
    padding: 0.8rem 1rem;
    margin-top: 0.8rem;
}
.sshk-report__dog-card-inner {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.sshk-report__dog-card-icon {
    font-size: 1.8rem;
    line-height: 1;
}
.sshk-report__dog-meta {
    font-size: 0.88rem;
    color: #555;
}

/* ── Checkbox ───────────────────────────────────────────────────────────── */
.sshk-report__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.95rem;
}
.sshk-report__checkbox input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* ── Knappar ────────────────────────────────────────────────────────────── */
.sshk-report__btn {
    display: inline-block;
    padding: 0.55rem 1.3rem;
    border: none;
    border-radius: 4px;
    font-size: 0.97rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
    white-space: nowrap;
}
.sshk-report__btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.sshk-report__btn--primary {
    background: #2271b1;
    color: #fff;
}
.sshk-report__btn--primary:hover:not(:disabled) {
    background: #1a5c8a;
}
.sshk-report__btn--secondary {
    background: #f0f0f0;
    color: #1a1a1a;
    border: 1px solid #ccc;
}
.sshk-report__btn--secondary:hover:not(:disabled) {
    background: #e0e0e0;
}

/* ── Felmeddelande ──────────────────────────────────────────────────────── */
.sshk-report__error {
    background: #fff0f0;
    border: 1px solid #f5c6cb;
    color: #c0392b;
    border-radius: 4px;
    padding: 0.7rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* ── Submit-sektion ─────────────────────────────────────────────────────── */
.sshk-report__submit {
    margin-top: 0.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e5e5;
}

/* ── Tack-box ───────────────────────────────────────────────────────────── */
.sshk-report__thanks {
    background: #eafbea;
    border: 1px solid #b2dfb2;
    border-radius: 6px;
    padding: 2rem;
    text-align: center;
}
.sshk-report__thanks h2 {
    margin-top: 0;
    color: #1e7e34;
}

/* ── Honeypot ───────────────────────────────────────────────────────────── */
/* ── Hjälplänk ───────────────────────────────────────────── */
.sshk-report__help-link {
    font-size: 0.88rem;
    color: #c0392b;
    text-decoration: underline;
    cursor: pointer;
}
.sshk-report__help-link:hover {
    color: #922b21;
}

/* ── Modal ─────────────────────────────────────────────── */
.sshk-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sshk-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.5);
}
.sshk-modal__box {
    position: relative;
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    max-width: 520px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    z-index: 1;
}
.sshk-modal__title {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
}
.sshk-modal__body {
    font-size: 0.97rem;
    line-height: 1.6;
    color: #333;
    margin: 0 0 1.5rem;
}
.sshk-modal__body a {
    color: #2271b1;
}
.sshk-modal__close {
    display: inline-block;
    padding: 0.5rem 1.4rem;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: inherit;
}
.sshk-modal__close:hover {
    background: #1a5c8a;
}

/* ── Filinput ────────────────────────────────────────────── */
.sshk-report__file {
    display: block;
    width: 100%;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
}

/* ── Skydda text mot tematets text-transform ──────────────── */
.sshk-report,
.sshk-report * {
    text-transform: none;
}

.sshk-report__honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    visibility: hidden;
}
