/* =========================
   NOBTI REPORT PAGE V2
   ========================= */

.report-hero {
    background:
        radial-gradient(circle at top right, rgba(29, 78, 216, 0.18), transparent 32%),
        linear-gradient(135deg, #f8fafc, #eff6ff);
    border-bottom: 1px solid #e2e8f0;
    padding: 48px 0;
}

.report-hero-content {
    max-width: 780px;
    text-align: center;
    margin: 0 auto;
}

.report-kicker {
    display: inline-block;
    color: #1d4ed8;
    background: #dbeafe;
    padding: 7px 14px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 0.82rem;
    margin-bottom: 12px;
}

.report-hero h1 {
    font-size: clamp(34px, 5vw, 58px);
    color: #0f172a;
}

.report-container {
    margin-top: -20px;
    margin-bottom: 60px;
}

.report-message {
    border-radius: 22px;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
}

.report-message-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.report-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 26px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}

.sticky-report-card {
    position: sticky;
    top: 18px;
}

.step-header {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.step-header > span {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: #1d4ed8;
    color: #ffffff;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
}

.step-header h3 {
    font-weight: 900;
    margin-bottom: 4px;
    color: #0f172a;
}

.step-header p {
    margin-bottom: 0;
    color: #64748b;
    line-height: 1.6;
}

/* =========================
   PLACE SEARCH
   ========================= */

.place-search-wrapper {
    position: relative;
}

.place-search-wrapper .form-control {
    border-radius: 16px;
}

.place-search-results {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 900;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    max-height: 360px;
    overflow-y: auto;
}

.place-search-result-item {
    padding: 13px;
    display: flex;
    gap: 12px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: 0.18s ease;
}

.place-search-result-item:last-child {
    border-bottom: none;
}

.place-search-result-item:hover {
    background: #eff6ff;
}

.place-result-icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex: 0 0 42px;
}

.place-result-name {
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 2px;
}

.place-result-meta {
    color: #64748b;
    font-size: 0.88rem;
}

.place-result-status {
    margin-top: 4px;
    font-size: 0.82rem;
    color: #64748b;
}

.place-search-empty {
    padding: 18px;
    text-align: center;
    color: #64748b;
}

/* =========================
   SELECTED PLACE
   ========================= */

.selected-place-card {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 22px;
    padding: 16px;
}

.selected-place-top {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.selected-place-icon {
    width: 50px;
    height: 50px;
    border-radius: 18px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    flex: 0 0 50px;
}

.selected-place-card h4 {
    font-weight: 900;
    color: #0f172a;
}

.selected-place-address {
    color: #334155;
    font-size: 0.94rem;
}

.selected-place-status {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.selected-place-status small {
    color: #64748b;
}

.selected-place-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.no-place-selected {
    background: #fff7ed;
    border: 1px dashed #fed7aa;
    border-radius: 22px;
    padding: 22px;
    text-align: center;
    color: #7c2d12;
}

.no-place-icon {
    width: 60px;
    height: 60px;
    background: #ffedd5;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.no-place-selected p {
    color: #9a3412;
}

.report-side-note {
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    padding: 12px;
    color: #1e3a8a;
    font-size: 0.92rem;
}

/* =========================
   OPTIONS
   ========================= */

.report-section {
    border-top: 1px solid #f1f5f9;
    padding-top: 18px;
}

.report-option-grid {
    display: grid;
    gap: 12px;
}

.crowd-grid {
    grid-template-columns: repeat(4, 1fr);
}

.time-grid {
    grid-template-columns: repeat(5, 1fr);
}

.status-grid {
    grid-template-columns: repeat(3, 1fr);
}

.report-option-card {
    position: relative;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    border-radius: 20px;
    padding: 16px;
    min-height: 100px;
    cursor: pointer;
    transition: 0.2s ease;
}

.report-option-card input {
    position: absolute;
    opacity: 0;
}

.report-option-card:hover {
    border-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.report-option-card:has(input:checked) {
    border-color: #1d4ed8;
    background: #eff6ff;
    box-shadow: 0 10px 28px rgba(29, 78, 216, 0.14);
}

.report-option-card .option-main {
    display: block;
    color: #0f172a;
    font-weight: 900;
    font-size: 1rem;
    margin-bottom: 6px;
}

.report-option-card small {
    color: #64748b;
}

.option-empty:has(input:checked) {
    border-color: #198754;
    background: #ecfdf3;
}

.option-medium:has(input:checked) {
    border-color: #f59e0b;
    background: #fffbeb;
}

.option-crowded:has(input:checked) {
    border-color: #dc3545;
    background: #fff1f2;
}

.option-critical:has(input:checked) {
    border-color: #111827;
    background: #f1f5f9;
}

.report-comment {
    border-radius: 18px;
    padding: 15px;
    resize: vertical;
}

/* =========================
   SUBMIT
   ========================= */

.report-submit-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.submit-summary {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.submit-summary strong {
    color: #0f172a;
}

.submit-summary span {
    color: #64748b;
    font-size: 0.92rem;
}

.report-submit-box .btn {
    border-radius: 16px;
    font-weight: 900;
    min-width: 180px;
}

.report-submit-box .btn.is-loading {
    opacity: 0.75;
    pointer-events: none;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1200px) {
    .crowd-grid,
    .time-grid,
    .status-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .sticky-report-card {
        position: static;
    }
}

@media (max-width: 576px) {
    .report-hero {
        padding: 34px 0;
    }

    .report-card {
        border-radius: 20px;
        padding: 18px;
    }

    .crowd-grid,
    .time-grid,
    .status-grid {
        grid-template-columns: 1fr;
    }

    .report-submit-box {
        align-items: stretch;
    }

    .report-submit-box .btn {
        width: 100%;
    }

    .report-message {
        align-items: stretch;
    }

    .report-message-actions {
        width: 100%;
    }

    .report-message-actions .btn {
        flex: 1;
    }
}