*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: system-ui, -apple-system, sans-serif;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
    color: #1a1a2e;
    padding: 24px;
}

h1 {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 700;
    margin-bottom: 32px;
    color: #1a1a2e;
    text-align: center;
}

.card {
    background: #fff;
    border-radius: 16px;
    padding: 36px 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 420px;
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    text-align: left;
}

input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s;
    background: #fafafa;
    color: #1a1a2e;
}

input[type="text"]:focus {
    border-color: #CA2A33;
    background: #fff;
}

input[type="text"]::placeholder {
    color: #bbb;
}

button[type="submit"] {
    padding: 13px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: #CA2A33;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

button[type="submit"]:hover {
    background: #a8222a;
}

button[type="submit"]:active {
    transform: scale(0.98);
}

.result-date {
    font-size: 1.15rem;
    color: #666;
    margin-bottom: 20px;
}

.result-date strong {
    color: #1a1a2e;
    font-weight: 700;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 8px;
}

.result-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.result-table tr:last-child {
    border-bottom: none;
}

.result-table th {
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #999;
    padding: 10px 0;
    width: 90px;
}

.result-table td {
    text-align: right;
    font-size: 1.05rem;
    font-weight: 600;
    color: #CA2A33;
    padding: 10px 0;
}

.error {
    color: #e53e3e;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.back-link {
    display: inline-block;
    margin-top: 24px;
    font-size: 0.9rem;
    color: #CA2A33;
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}
