* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background: #f3f4f6;
    min-height: 100vh;
    /* Removed flex centering to prevent scroll jumping on tall content */
    padding: 24px;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    /* Center container horizontally */
}

.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px 24px 32px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

h1 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.6rem;
    color: #111827;
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
}

label[for="surname"],
label[for="birthDate"],
label[for^="name_"],
.bold-label {
    font-weight: 700;
}

input[type="text"],
input[type="date"],
select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
}

input[type="text"]:focus,
input[type="date"]:focus,
select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.25);
}

.radio-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.radio-group label {
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
}

.secondary-button,
.primary-button {
    cursor: pointer;
    border-radius: 6px;
    border: none;
    font-size: 0.95rem;
    padding: 8px 14px;
}

.secondary-button {
    background: #e5e7eb;
    color: #111827;
    margin-top: 8px;
}

.secondary-button:hover {
    background: #d1d5db;
}

.primary-button {
    width: 100%;
    background: #16a34a;
    color: #ffffff;
    font-weight: 600;
    padding: 10px 14px;
}

.primary-button:hover {
    background: #15803d;
}

.extra-name-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.extra-name-row input {
    flex: 1;
}

.remove-btn {
    border: none;
    border-radius: 6px;
    padding: 0 10px;
    background: #ef4444;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
}

.remove-btn:hover {
    background: #b91c1c;
}

.result {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Numerology Report Layout */
.report-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.report-header {
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-header h2 {
    font-size: 1.5rem;
    color: #111827;
    margin: 0;
}

.report-body {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.report-sidebar {
    flex: 1;
    min-width: 250px;
    font-size: 1.1rem;
    color: #374151;
}

.report-item {
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.report-label {
    font-weight: 600;
    color: #000;
}

.report-value {
    font-family: monospace;
    font-size: 1.2rem;
    color: #4b5563;
}

.grid-placeholder {
    flex: 2;
    min-width: 300px;
    border: 1px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    height: 300px;
}

/* Logo Styling */
.card {
    position: relative;
}

.logo-corner {
    position: absolute;
    top: 80px;
    right: 40px;
    width: 120px;
    height: auto;
    object-fit: contain;
    z-index: 10;
    pointer-events: none;
}

@media (max-width: 600px) {
    .logo-corner {
        width: 80px;
        top: 60px;
        right: 10px;
    }
}

#nameInputsContainer {
    margin-bottom: 16px;
}