* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f6fb;
    color: #1f2937;
}

.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.card {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    padding: 24px;
}

h1 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 28px;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 24px;
}

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

label {
    font-weight: 600;
    margin-top: 4px;
}

input,
textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #cfd8e3;
    border-radius: 12px;
    font-size: 16px;
    background: #fff;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

button,
.button-link {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 12px;
    background: #2563eb;
    color: #ffffff;
}

.button-link.secondary {
    background: #6b7280;
}

button:hover,
.button-link:hover {
    opacity: 0.95;
}

.footer-links {
    margin-top: 20px;
    text-align: center;
}

.footer-links a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.footer-links a:hover {
    text-decoration: underline;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
}

.qr-card {
    text-align: center;
}

.qr-box {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 12px 0 24px 0;
}

.qr-box img,
.qr-box canvas {
    max-width: 100%;
    height: auto;
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.info-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 14px;
    word-break: break-word;
    text-align: left;
}

.error-list {
    color: #b91c1c;
    padding-left: 20px;
}

.success-card p {
    text-align: center;
    font-size: 18px;
}

.required {
    color: #dc2626; /* red */
    margin-left: 4px;
    font-weight: bold;
}

.success-message {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

@media (max-width: 480px) {
    .card {
        padding: 18px;
        border-radius: 14px;
    }

    h1 {
        font-size: 24px;
    }

    input,
    textarea,
    button,
    .button-link {
        font-size: 16px;
    }
}
