@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --tt-red: #ed1027;
    --tt-blue: #0961a8;
    --tt-blue-dark: #023a70;
    --tt-ink: #07152e;
    --tt-muted: #667085;
    --tt-light-blue: #eaf3f8;
    --tt-soft-pink: #fff3f5;
    --tt-white: #ffffff;
    --tt-shadow: 0 10px 24px rgba(7, 21, 46, 0.10);
    --tt-radius-lg: 18px;
    --tt-radius-md: 14px;
}

.tt-fines-wrap,
.tt-fines-wrap * {
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.tt-fines-wrap {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 8px 10px 40px;
    color: var(--tt-ink);
}

.tt-fines-hero-card {
    background: var(--tt-light-blue);
    border: 1.5px solid var(--tt-blue);
    border-radius: 0 0 var(--tt-radius-lg) var(--tt-radius-lg);
    padding: 24px 18px 22px;
    text-align: center;
    box-shadow: var(--tt-shadow);
    margin-bottom: 28px;
}

.tt-fines-kicker {
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: 12px;
    font-weight: 700;
    color: var(--tt-blue);
}

.tt-fines-hero-card h2 {
    margin: 0;
    font-size: clamp(30px, 8vw, 52px);
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--tt-blue);
    letter-spacing: 0.03em;
}

.tt-fines-hero-card h2 span {
    color: var(--tt-red);
}

.tt-fines-hero-card p:last-child {
    margin: 12px auto 0;
    max-width: 460px;
    font-size: 14px;
    line-height: 1.55;
}

.tt-fines-form-card,
.tt-fines-list-card {
    border-radius: var(--tt-radius-lg);
    padding: 22px;
    box-shadow: var(--tt-shadow);
    margin-bottom: 22px;
}

.tt-fines-form-card {
    background: var(--tt-soft-pink);
    border: 1.5px solid var(--tt-red);
}

.tt-fines-list-card {
    background: var(--tt-white);
    border: 1px solid rgba(9, 97, 168, 0.14);
}

.tt-fines-section-label {
    margin-bottom: 14px;
    color: var(--tt-red);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.tt-fines-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tt-fines-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tt-fines-form label,
.tt-fines-choice-wrap {
    width: 100%;
}

.tt-fines-form label > span,
.tt-fines-choice-wrap p {
    display: block;
    margin: 0 0 6px;
    color: var(--tt-muted);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
}

.tt-fines-form input[type="text"],
.tt-fines-form textarea {
    width: 100%;
    border: 0;
    border-radius: var(--tt-radius-md);
    background: rgba(255, 255, 255, 0.88);
    color: #000000;
    font-size: 15px;
    line-height: 1.4;
    outline: none;
    padding: 14px 14px;
    box-shadow: 0 7px 18px rgba(237, 16, 39, 0.07);
}

.tt-fines-form textarea {
    resize: vertical;
    min-height: 112px;
}

.tt-fines-form input:focus,
.tt-fines-form textarea:focus {
    box-shadow: 0 0 0 2px rgba(9, 97, 168, 0.18), 0 7px 18px rgba(237, 16, 39, 0.07);
}

.tt-fines-choice-wrap {
    margin-top: 2px;
}

.tt-fines-choice-wrap p {
    margin-bottom: 9px;
}

.tt-fines-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(9, 97, 168, 0.11);
    border-radius: var(--tt-radius-md);
    padding: 12px 14px;
    margin-bottom: 9px;
    cursor: pointer;
}

.tt-fines-choice input {
    accent-color: var(--tt-red);
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.tt-fines-choice span {
    margin: 0 !important;
    color: var(--tt-ink) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: none !important;
}

.tt-fines-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: var(--tt-red);
    color: #ffffff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    min-height: 52px;
    padding: 14px 20px;
    text-transform: none;
    box-shadow: 0 8px 18px rgba(237, 16, 39, 0.20);
    transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.tt-fines-submit:hover,
.tt-fines-submit:focus {
    background: var(--tt-blue);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(9, 97, 168, 0.22);
}

.tt-fines-hp {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
}

.tt-fines-alert {
    border-radius: var(--tt-radius-md);
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 16px;
    padding: 13px 15px;
    text-align: center;
}

.tt-fines-alert-success {
    background: #ecfdf3;
    border: 1px solid #abefc6;
    color: #067647;
}

.tt-fines-alert-error {
    background: #fef3f2;
    border: 1px solid #fecdca;
    color: #b42318;
}

.tt-fines-list-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.tt-fines-list-heading h3 {
    margin: -7px 0 0;
    color: var(--tt-blue);
    font-size: clamp(20px, 5.4vw, 28px);
    font-weight: 800;
    line-height: 1.1;
}

.tt-fines-count {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    border-radius: 999px;
    background: var(--tt-light-blue);
    color: var(--tt-blue-dark);
    font-size: 12px;
    font-weight: 800;
    padding: 7px 12px;
}

.tt-fines-filter {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 0 -2px 18px;
    padding: 2px 2px 9px;
    scrollbar-width: thin;
}

.tt-fines-filter-btn {
    border: 1.5px solid rgba(9, 97, 168, 0.18);
    border-radius: 999px;
    background: #ffffff;
    color: var(--tt-blue);
    cursor: pointer;
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    padding: 11px 15px;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.tt-fines-filter-btn:hover,
.tt-fines-filter-btn.is-active {
    background: var(--tt-red);
    border-color: var(--tt-red);
    color: #ffffff;
}

.tt-fines-items {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.tt-fines-item {
    border-radius: var(--tt-radius-lg);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
    border: 1px solid rgba(9, 97, 168, 0.12);
    border-left: 6px solid var(--tt-blue);
    box-shadow: 0 8px 18px rgba(7, 21, 46, 0.06);
    padding: 16px;
}

.tt-fines-item.is-hidden {
    display: none;
}

.tt-fines-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 11px;
}

.tt-fines-small-label {
    display: block;
    color: var(--tt-muted);
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.tt-fines-item h4 {
    margin: 0;
    color: var(--tt-blue);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.15;
}

.tt-fines-badge {
    border-radius: 999px;
    color: #ffffff;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
    max-width: 130px;
    padding: 8px 10px;
    text-align: center;
}

.tt-badge-red {
    background: var(--tt-red);
}

.tt-badge-blue {
    background: var(--tt-blue);
}

.tt-fines-reason {
    margin: 0 0 14px;
    color: #000000;
    font-size: 15px;
    line-height: 1.55;
}

.tt-fines-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid rgba(9, 97, 168, 0.10);
    color: var(--tt-muted);
    font-size: 12px;
    line-height: 1.3;
    padding-top: 12px;
}

.tt-fines-meta strong {
    color: var(--tt-ink);
}

.tt-fines-empty,
.tt-fines-empty-filter {
    background: var(--tt-light-blue);
    border-radius: var(--tt-radius-lg);
    padding: 24px 18px;
    text-align: center;
}

.tt-fines-empty strong,
.tt-fines-empty-filter strong {
    display: block;
    color: var(--tt-blue);
    font-size: 18px;
    margin-bottom: 6px;
}

.tt-fines-empty span,
.tt-fines-empty-filter span {
    color: var(--tt-muted);
    display: block;
    font-size: 14px;
}

.tt-fines-empty-filter.is-hidden {
    display: none;
}

.tt-fines-delete-form {
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px dashed rgba(237, 16, 39, 0.18);
    text-align: right;
}

.tt-fines-delete-btn {
    border: 1.5px solid rgba(237, 16, 39, 0.28);
    border-radius: 999px;
    background: #ffffff;
    color: var(--tt-red);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    padding: 10px 13px;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.tt-fines-delete-btn:hover,
.tt-fines-delete-btn:focus {
    background: var(--tt-red);
    border-color: var(--tt-red);
    color: #ffffff;
    transform: translateY(-1px);
}

@media (max-width: 560px) {
    .tt-fines-wrap {
        padding-left: 7px;
        padding-right: 7px;
    }

    .tt-fines-form-card,
    .tt-fines-list-card {
        padding: 18px 16px;
    }

    .tt-fines-grid {
        grid-template-columns: 1fr;
    }

    .tt-fines-list-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .tt-fines-count {
        align-self: flex-start;
    }

    .tt-fines-item-top {
        flex-direction: column;
    }

    .tt-fines-badge {
        max-width: none;
    }

    .tt-fines-meta {
        align-items: flex-start;
        flex-direction: column;
    }
}
