:root {
    /* POSCO Brand Colors */
    --posco-blue: #05507d;
    /* Pantone 302C */
    --posco-light-blue: #00a5e5;
    /* Pantone 299C */
    --posco-dark-gray: #53565A;
    /* Cool Gray 11 */
    --posco-light-gray: #bdbdba;
    /* Cool Gray 4 */
    --posco-gold: #84754e;
    /* Pantone 871C */
    --posco-silver: #8a8d8f;
    /* Pantone 877C */

    /* Theme Mapping */
    --primary-color: var(--posco-blue);
    --primary-hover: #033a5c;
    /* Darker shade of POSCO Blue */
    --accent-color: var(--posco-light-blue);
    --bg-color: #f4f6f9;
    /* Very light blue-gray tint */
    --card-bg: #ffffff;
    --text-color: var(--posco-dark-gray);
    --text-muted: #7f8c8d;
    /* Keeping readable gray for subtitles */
    --border-color: var(--posco-light-gray);

    --border-radius: 16px;
    --shadow: 0 8px 30px rgba(5, 80, 125, 0.1);
    /* Blue-tinted shadow */

    /* Result Colors */
    --status-normal: #2ecc71;
    --status-adjust: var(--posco-gold);
    /* Using Gold for Caution/Adjust */
    --status-exclude: #e74c3c;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    padding: 20px 10px;
    line-height: 1.5;
}

.container {
    background-color: #ffffff;
    /* Explicitly white */
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 30px 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 15px;
}

header h1 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.subtitle {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
}

.section {
    margin-bottom: 35px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
    border-left: 4px solid var(--accent-color);
    padding-left: 10px;
}

.question-group {
    margin-bottom: 25px;
}

.question-group:last-child {
    margin-bottom: 0;
}

.question-title {
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 16px;
    color: #34495e;
}

/* Form Elements */
label {
    cursor: pointer;
}

.large-input {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 18px;
    transition: border-color 0.2s;
}

.large-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Checkbox & Radio Groups */
.checkbox-group,
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.radio-group.vertical {
    flex-direction: column;
}

.checkbox-group label,
.radio-group label {
    display: flex;
    align-items: center;
    background: white;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
    user-select: none;
    flex: 1;
    min-width: 120px;
    justify-content: center;
}

.radio-group.vertical label {
    justify-content: flex-start;
}

.checkbox-group label:hover,
.radio-group label:hover {
    border-color: #bdc3c7;
    background-color: #fdfdfd;
}

.checkbox-group input,
.radio-group input {
    margin-right: 10px;
    transform: scale(1.3);
}

/* Selected state styling could be done via JS or rely on :checked sibling if structured right. 
   Here we keep it simple, but let's add a focus-within for accessibility visuals */

textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    resize: vertical;
}

button[type="submit"] {
    width: 100%;
    padding: 18px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.1s, background-color 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button[type="submit"]:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

button[type="submit"]:active {
    transform: translateY(0);
}

/* Result Card */
.hidden {
    display: none !important;
}

#resultArea {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.result-card {
    background: white;
    width: 100%;
    max-width: 450px;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: popIn 0.3s ease-out;
}

@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

#resultTitle {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 800;
}

#resultDesc {
    font-size: 18px;
    margin-bottom: 30px;
    color: #555;
    line-height: 1.6;
}

.action-items {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    text-align: left;
    font-size: 15px;
}

.secondary-btn {
    background-color: #95a5a6;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
}

.secondary-btn:hover {
    background-color: #7f8c8d;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    opacity: 1;
    transition: opacity 0.3s;
    z-index: 2000;
}

/* Consent Section */
.consent-text {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.consent-text p {
    margin-bottom: 10px;
}

.consent-text p:last-child {
    margin-bottom: 0;
}

.consent-check {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.consent-check label {
    font-weight: 600;
}

.signature-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.signature-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.signature-row input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
}

.signature-row input[readonly] {
    background-color: #eee;
    cursor: default;
}