:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 2rem;
    line-height: 1.5;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.5rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

header .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h1 {
    font-size: 1.875rem;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
}

h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: -1rem;
    margin-bottom: 1.5rem;
}

section {
    margin-bottom: 3rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s;
    box-sizing: border-box;
    /* Important for width: 100% */
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Job Row Styling */
.job-row {
    background: #f1f5f9;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    position: relative;
    border: 2px solid transparent;
}

.job-row.primary-selected {
    border-color: var(--primary);
    background: #eff6ff;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--primary);
    cursor: pointer;
}

.contact-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.type-select {
    width: 35%;
}

.btn-secondary {
    background: transparent;
    border: 1px dashed #94a3b8;
    color: #64748b;
    padding: 0.75rem;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #f8fafc;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.btn-primary:active {

    .btn-download {
        background: white;
        border: 1px solid var(--border);
        padding: 0.5rem 1rem;
        border-radius: 6px;
        cursor: pointer;
        font-size: 0.875rem;
        margin-top: 1rem;
    }

    .btn-download:hover {
        background: #f8fafc;
        border-color: #cbd5e1;
    }

    /* Results */
    .hidden {
        display: none;
    }

    .results-section {
        margin-top: 4rem;
        border-top: 2px dashed var(--border);
        padding-top: 2rem;
        animation: fadeIn 0.5s ease;
    }

    .results-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        text-align: center;
    }

    .qr-result img {
        width: 100%;
        max-width: 200px;
        height: auto;
        border: 1px solid var(--border);
        border-radius: 8px;
        object-fit: contain;
    }

    .pdf-icon {
        font-size: 4rem;
        margin-bottom: 1rem;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @media (max-width: 600px) {
        .grid-2 {
            grid-template-columns: 1fr;
        }

        .container {
            padding: 1.5rem;
        }
    }