/* 기본 설정 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: "Nanum Gothic", "나눔고딕", "Malgun Gothic", "맑은 고딕", sans-serif;
    background: #eef5f8;
    color: #24313d;
}

body.contract-ready {
    padding-bottom: 104px;
}

/* -----------------------
   1. 입력 폼 & 인증 화면 스타일
   ----------------------- */
.input-container, .auth-container {
    max-width: 520px;
    margin: 20px auto;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    font-family: "Malgun Gothic", "맑은 고딕", sans-serif;
}

.input-container {
    max-width: 920px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(31, 96, 135, 0.12);
    box-shadow: 0 24px 70px rgba(20, 55, 85, 0.16);
}

.input-container form {
    padding: 28px 30px 32px;
}

.auth-container { text-align: center; display: none; }
.auth-icon { font-size: 40px; margin-bottom: 10px; }
.auth-title { font-size: 20px; font-weight: bold; margin-bottom: 5px; color: #2c3e50; }
.auth-desc { font-size: 14px; color: #7f8c8d; margin-bottom: 20px; }
.auth-input { width: 100%; padding: 12px; margin-bottom: 10px; border: 1px solid #dfe6e9; border-radius: 6px; font-size: 16px; }
.btn-auth { width: 100%; padding: 12px; background: #27ae60; color: white; border: none; border-radius: 6px; font-size: 16px; font-weight: bold; cursor: pointer; }

.workflow-progress {
    position: relative;
    max-width: 920px;
    margin: 18px auto -2px;
    padding: 22px 42px 18px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    background: white;
    border: 1px solid rgba(31, 96, 135, 0.12);
    border-radius: 14px 14px 0 0;
    box-shadow: 0 10px 30px rgba(20, 55, 85, 0.10);
}

.workflow-track {
    position: absolute;
    left: 13%;
    right: 13%;
    top: 40px;
    height: 3px;
    background: #d8e4ea;
    border-radius: 999px;
}

.workflow-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    color: #8a99a6;
    font-size: 14px;
}

.workflow-number {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #d8e4ea;
    color: white;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(50, 70, 90, 0.14);
}

.workflow-step.is-active,
.workflow-step.is-done {
    color: #1f7a4d;
}

.workflow-step.is-active .workflow-number,
.workflow-step.is-done .workflow-number {
    background: #27ae60;
}

.workflow-progress.step-2 .workflow-track {
    background: linear-gradient(90deg, #27ae60 0 50%, #d8e4ea 50% 100%);
}

.workflow-progress.step-3 .workflow-track {
    background: #27ae60;
}

.header-brand {
    text-align: center;
    margin-bottom: 0;
    color: white;
    padding: 34px 28px 28px;
    background:
        linear-gradient(135deg, rgba(0, 125, 210, 0.92), rgba(39, 174, 96, 0.92)),
        #0b7fc6;
}

.hero-logo-wrap {
    width: min(330px, 76vw);
    margin: 0 auto 18px;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 12px;
    box-shadow: 0 16px 34px rgba(0, 44, 73, 0.18);
}

.hero-logo-wrap img {
    display: block;
    width: 100%;
    height: auto;
}

.hero-eyebrow {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 12px;
}

.header-brand h1 {
    font-size: clamp(27px, 4vw, 38px);
    line-height: 1.15;
    margin-bottom: 10px;
}

.header-brand p {
    max-width: 620px;
    margin: 0 auto 18px;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 18px 0;
}

.trust-badges span {
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.19);
    border: 1px solid rgba(255, 255, 255, 0.26);
    font-size: 13px;
    font-weight: 800;
}

.company-card {
    max-width: 760px;
    margin: 0 auto 14px;
    padding: 14px 18px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.16);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 14px;
    font-size: 14px;
}

.company-card small {
    flex-basis: 100%;
    opacity: 0.9;
}

.admin-links {
    margin-top: 12px;
    font-size: 12px;
    text-align: center;
}

.admin-links button,
.admin-links a {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: white;
    cursor: pointer;
    text-decoration: none;
    border-radius: 999px;
    padding: 7px 11px;
}

.admin-links span {
    margin: 0 6px;
    color: rgba(255, 255, 255, 0.55);
}

.privacy-summary {
    background: #f0f9f5;
    border: 1px solid #bde8cf;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 22px;
    font-size: 13px;
    color: #195f3e;
}

.privacy-summary-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
}

.privacy-summary div:last-child {
    line-height: 1.65;
}

.form-section { margin-bottom: 22px; }
.field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
}
.form-label { display: block; font-size: 15px; font-weight: 800; color: #263a4d; }
.required-mark { color: #e74c3c; margin-left: 3px; }

.field-status {
    white-space: nowrap;
    font-size: 13px;
    font-weight: 800;
    color: #c62828;
    background: #fff1f1;
    border: 1px solid #f3b8b8;
    border-radius: 999px;
    padding: 4px 9px;
}

.field-status.is-valid {
    color: #27ae60;
    background: #edf9f1;
    border-color: #a8e0bb;
}

.field-status.is-valid::before {
    content: "✓ ";
}

.field-hint {
    margin-top: 7px;
    font-size: 12px;
    color: #748494;
}

input[type="text"], input[type="tel"], input[type="date"], select {
    width: 100%; padding: 14px 15px; border: 1px solid #d5e1e8; border-radius: 10px; font-size: 17px; transition: 0.2s; background: white;
}
input:focus, select:focus { border-color: #1688cf; outline: none; box-shadow: 0 0 0 3px rgba(22, 136, 207, 0.14); }
input.input-valid {
    border-color: #27ae60 !important;
    box-shadow: inset 4px 0 0 #27ae60;
}
.korean-name-input {
    ime-mode: active;
    font-family: "Nanum Gothic", "나눔고딕", "Malgun Gothic", "맑은 고딕", sans-serif;
}

/* 유효성 검사 에러 */
input.input-error { border-color: #e74c3c !important; background-color: #fff8f8; }
.error-message { color: #e74c3c; font-size: 12px; margin-top: 5px; display: none; }
.error-message.show { display: block; animation: shake 0.3s ease-in-out; }
@keyframes shake { 0% { transform: translateX(0); } 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-5px); } 100% { transform: translateX(0); } }

.radio-group { display: flex; gap: 10px; flex-direction: column; }
.radio-option { 
    display: flex;
    align-items: flex-start;
    padding: 15px;
    background: #f8f9fa;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.radio-option:hover {
    background: #e8f4f8;
    border-color: #3498db;
}
.radio-option input[type="radio"] {
    margin-right: 12px;
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.radio-option input[type="radio"]:checked ~ .radio-content {
    color: #2980b9;
}
.radio-option input[type="radio"]:checked ~ .radio-content .radio-label {
    font-weight: bold;
}
.radio-content {
    flex: 1;
}
.radio-label { 
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}
.radio-details {
    font-size: 13px;
    color: #7f8c8d;
    line-height: 1.4;
}
.radio-details small {
    font-size: 12px;
    color: #95a5a6;
}
input[type="radio"] { display: inline-block; position: relative; }

.btn-submit { width: 100%; padding: 17px; background: linear-gradient(135deg, #0b7fc6, #27ae60); color: white; border: none; border-radius: 12px; font-size: 18px; font-weight: bold; cursor: pointer; margin-top: 10px; box-shadow: 0 10px 24px rgba(22, 136, 207, 0.23); }
.btn-submit:hover { filter: brightness(0.98); transform: translateY(-1px); }

.consent-card {
    background: #f7fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #d8e5ec;
}

.consent-text {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 10pt;
    line-height: 1.8;
    border: 1px solid #edf2f5;
}

.consent-check {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 11pt;
}

.consent-check input {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
}

.signature-notice {
    background: #edf7ff;
    border: 1px solid #b9dbf5;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #155d91;
    line-height: 1.6;
}

.signature-mode {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.signature-mode label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

/* AI Section */
.ai-section { background: #f0f7ff; border: 1px solid #cce5ff; border-radius: 8px; padding: 15px; margin-bottom: 20px; }
.ai-title { font-size: 14px; font-weight: bold; color: #0056b3; margin-bottom: 10px; display: flex; align-items: center; gap: 5px; }
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.btn-ai { background: linear-gradient(135deg, #6e8efb, #a777e3); color: white; border: none; padding: 10px; border-radius: 12px; font-size: 13px; font-weight: bold; cursor: pointer; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); transition: transform 0.1s; }
.btn-ai:active { transform: scale(0.98); }
.btn-ai.safe { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.btn-ai.easy { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.btn-ai.trans { background: linear-gradient(135deg, #3498db, #2980b9); }
.btn-ai span { font-size: 11px; font-weight: normal; opacity: 0.9; }
.ai-result { margin-top: 10px; font-size: 13px; background: white; padding: 12px; border-radius: 8px; border: 1px solid #e1e4e8; white-space: pre-line; display: none; line-height: 1.6; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.lang-select { width: 100%; padding: 8px; border: 1px solid #dfe6e9; border-radius: 6px; margin-bottom: 5px; font-size: 13px; }

/* -----------------------
   2. 계약서 양식 스타일
   ----------------------- */
.contract-paper {
    display: none;
    width: 210mm;
    margin: 20px auto;
    background: white;
    padding: 9mm 10mm;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: visible;
}

.xlsx-format-notice {
    display: none;
    width: 210mm;
    max-width: calc(100vw - 32px);
    margin: 18px auto -8px;
    padding: 10px 14px;
    border: 1px solid #b7d4ff;
    border-radius: 8px;
    background: #eef6ff;
    color: #174a7c;
    font-size: 13px;
    line-height: 1.45;
    box-shadow: 0 2px 8px rgba(23, 74, 124, 0.08);
}

body.contract-ready .xlsx-format-notice {
    display: block;
}

.contract-doc-header {
    display: grid;
    grid-template-columns: 54mm 1fr 54mm;
    align-items: start;
    min-height: 17mm;
    margin-bottom: 2mm;
}
.contract-heading {
    text-align: center;
}
.contract-logo {
    width: 50mm;
    height: auto;
    justify-self: end;
    margin-top: 1mm;
}
.c-title {
    text-align: center;
    font-size: 20pt;
    font-weight: bold;
    letter-spacing: 8px;
    line-height: 1.05;
    margin: 0;
}
.c-subtitle {
    text-align: center;
    font-size: 10pt;
    line-height: 1.1;
    margin-top: 2mm;
}
.c-body {
    font-family: "Nanum Gothic", "나눔고딕", "Malgun Gothic", "맑은 고딕", sans-serif;
    font-size: 7.6pt;
    line-height: 1.22;
    color: #111;
}
.company-info-box {
    border: 1.5px solid #111;
    padding: 2.5mm 3mm;
    margin-bottom: 2.8mm;
}
.company-info-box p {
    margin: 1mm 0 0;
}
.company-info-title {
    text-align: center;
    font-weight: bold;
    font-size: 8.8pt;
    margin: 0 0 1.4mm !important;
}
.contract-intro {
    margin: 0 0 2.4mm;
    line-height: 1.35;
}
.intro-company {
    display: inline-block;
    min-width: 28mm;
    text-align: center;
}
.intro-company {
    font-weight: bold;
}
.intro-worker {
    display: inline;
    min-width: 0;
    padding: 0 0.8mm;
    text-align: left;
    color: #000080;
    font-weight: 800;
}
.section-heading {
    display: flex;
    align-items: baseline;
    gap: 2.5mm;
    margin-bottom: 1mm;
}
.c-row {
    margin-bottom: 2mm;
}
.c-bold {
    font-weight: bold;
}
.c-note {
    font-size: 7pt;
}
.dynamic-blue {
    color: #000080;
    font-weight: bold;
}
.c-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin: 1.2mm 0 1.5mm;
    font-size: 7.2pt;
}
.c-table th,
.c-table td {
    border: 1px solid #111;
    padding: 1mm 1.2mm;
    text-align: center;
    vertical-align: middle;
    line-height: 1.18;
}
.c-table th {
    background: #f6f6f6;
    font-weight: bold;
}
.info-table th {
    width: 16mm;
}
.info-table td {
    height: 7mm;
    text-align: center;
    word-break: keep-all;
    overflow-wrap: anywhere;
}
.info-table td.dynamic-blue {
    font-family: "Nanum Gothic", "나눔고딕", "Malgun Gothic", "맑은 고딕", sans-serif;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}
.time-table {
    width: 64%;
}
.time-table th,
.time-table td {
    width: 33.333%;
}
.c-indent {
    margin: 0.6mm 0 0.8mm 4mm;
    line-height: 1.25;
}
.contract-clause {
    margin: 1.4mm 0;
    line-height: 1.18;
}
.contract-clause p {
    margin: 0.6mm 0;
}
.wage-table {
    font-size: 6.75pt;
}
.wage-table col:nth-child(1) { width: 16% !important; }
.wage-table col:nth-child(2) { width: 10% !important; }
.wage-table col:nth-child(3) { width: 3% !important; }
.wage-table col:nth-child(4) { width: 3% !important; }
.wage-table col:nth-child(5) { width: 10% !important; }
.wage-table col:nth-child(6) { width: 3% !important; }
.wage-table col:nth-child(7) { width: 19% !important; }
.wage-table col:nth-child(8) { width: 4% !important; }
.wage-table col:nth-child(9) { width: 4% !important; }
.wage-table col:nth-child(10) { width: 4% !important; }
.wage-table col:nth-child(11) { width: 4% !important; }
.wage-table col:nth-child(12) { width: 20% !important; }
.wage-table th,
.wage-table td {
    white-space: normal !important;
    word-break: keep-all;
    overflow-wrap: anywhere;
}
.wage-table .wage-title-cell,
.wage-table .wage-total-cell {
    border-color: #111;
    font-weight: bold;
    line-height: 1.05;
    padding: 0.35mm 0.8mm !important;
    text-align: center;
    white-space: nowrap !important;
}
.wage-table .wage-title-cell {
    background: #f1f1f1;
    border-top-width: 1px;
    letter-spacing: 0;
}
.wage-table .wage-total-cell {
    background: #fff;
    font-size: 6.9pt;
}
.wage-table .wage-total-cell #c_total_wage {
    font-size: 1em;
}
.wage-table .calc-line {
    text-align: center;
    white-space: nowrap !important;
}
.page-break-before {
    page-break-before: auto !important;
    break-before: auto !important;
}
.contract-date-line {
    display: block;
    width: 100%;
    text-align: center;
    margin: 2mm 0 2.5mm;
    font-size: 8.6pt;
}
.contract-date-line #c_today_date {
    display: inline-block;
    min-width: 44mm;
    text-align: center;
}
.contract-signatures {
    margin: 1mm 0 2.5mm auto;
    width: 92mm;
}
.signature-line {
    display: grid;
    grid-template-columns: 42mm 4mm 22mm 24mm;
    align-items: center;
    justify-items: end;
    min-height: 9mm;
    margin-bottom: 1mm;
    font-size: 8.8pt;
}
.signature-party,
.signature-colon,
.signature-name {
    white-space: nowrap;
}
.signature-name {
    min-width: 18mm;
    text-align: center;
}
.owner-stamp-slot,
.worker-sign-slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22mm;
    min-height: 9mm;
    position: relative;
    overflow: visible;
}
.owner-stamp-slot img {
    width: 10mm;
    height: 10mm;
    object-fit: contain;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}
.worker-name-slot {
    border-bottom: 1px solid #111;
    padding: 0 2mm 0.8mm;
}
.worker-sign-slot #c_sign_mark {
    color: #000080;
    font-weight: 800;
    font-size: 10.4pt;
    white-space: nowrap;
    display: block;
    min-width: 20mm;
    text-align: center;
    border: 0;
    background: transparent;
    transform: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 0;
    z-index: 2;
}
.worker-sign-slot #c_sign_mark.has-drawn-signature {
    display: none;
}
.worker-sign-slot #c_sign_image {
    max-height: 7mm;
    max-width: 22mm;
    object-fit: contain;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}
.stamp-label {
    color: #111;
    white-space: nowrap;
}
.owner-stamp-slot .stamp-label,
.worker-sign-slot .stamp-label {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}
.contract-confirm-text {
    font-size: 7.1pt;
    margin: 0.8mm 0;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 6mm;
    }
    html,
    body {
        background: white !important;
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
    }
    .input-container,
    .auth-container,
    .xlsx-format-notice,
    .action-bar,
    .success-message,
    .modal-overlay {
        display: none !important;
    }
    .contract-paper {
        display: block !important;
        width: 198mm !important;
        max-width: 198mm !important;
        margin: 0 auto !important;
        padding: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
    }
    .contract-doc-header {
        min-height: 14mm;
        margin-bottom: 1mm;
    }
    .contract-logo {
        width: 42mm;
    }
    .c-title {
        font-size: 18pt;
    }
    .c-subtitle {
        font-size: 9pt;
        margin-top: 1mm;
    }
    .c-body {
        font-size: 6.45pt;
        line-height: 1.12;
    }
    .company-info-box {
        padding: 1.6mm 2mm;
        margin-bottom: 1.6mm;
    }
    .company-info-title {
        font-size: 7.4pt;
        margin-bottom: 0.6mm !important;
    }
    .c-row {
        margin-bottom: 1.1mm;
    }
    .c-table {
        font-size: 6.25pt;
        margin: 0.6mm 0 0.8mm;
    }
    .c-table th,
    .c-table td {
        padding: 0.55mm 0.8mm;
        line-height: 1.05;
    }
    .wage-table {
        font-size: 5.9pt;
    }
    .contract-clause {
        margin: 0.65mm 0;
        line-height: 1.08;
    }
    .contract-clause p,
    .c-indent {
        margin-top: 0.35mm;
        margin-bottom: 0.35mm;
    }
    .contract-signatures {
        margin-top: 0.8mm;
        margin-bottom: 1mm;
    }
    .signature-line {
        min-height: 7mm;
        font-size: 7.2pt;
        margin-bottom: 0.3mm;
    }
    .owner-stamp-slot img {
        width: 8.5mm;
        height: 8.5mm;
    }
    .contract-confirm-text {
        font-size: 6.2pt;
        margin: 0.35mm 0;
    }
}

/* 계약서 작성 완료 팝업 (모달) */
.success-message {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.success-content {
    max-width: 500px;
    width: 90%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    text-align: center;
    animation: slideUp 0.5s ease-out;
    position: relative;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.success-icon {
    font-size: 50px;
    margin-bottom: 15px;
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.success-message h3 {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: bold;
}

.success-message p {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.95;
    line-height: 1.5;
}

.success-list {
    text-align: left;
    list-style: none;
    margin: 20px auto;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.success-list li {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    align-items: start;
    padding: 13px 0;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.success-list li:last-child {
    border-bottom: none;
}

.success-list strong {
    display: block;
    font-size: 17px;
    margin-bottom: 5px;
}

.success-list-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.16);
    line-height: 1;
}

.success-desc {
    display: block;
    font-size: 14px;
    line-height: 1.45;
    margin-top: 5px;
    opacity: 0.9;
}

.success-note {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 20px;
    font-style: italic;
}

.btn-success-close {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    padding: 12px 40px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 25px;
    transition: all 0.3s ease;
}

.btn-success-close:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* 하단 액션 버튼 */
.action-bar { 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    right: 0;
    display: none; 
    gap: 8px; 
    z-index: 999;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    padding: 12px 16px 14px;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #dfe6e9;
    box-shadow: 0 -8px 22px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(8px);
}

.btn-action { 
    padding: 10px 16px; 
    border-radius: 20px; 
    border: none; 
    font-weight: bold; 
    cursor: pointer; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    font-size: 13px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .action-bar {
        bottom: 0;
        gap: 6px;
        padding: 10px;
    }
    
    .btn-action {
        padding: 10px 14px;
        font-size: 12px;
        border-radius: 18px;
    }
}

/* 아주 작은 화면 대응 */
@media (max-width: 480px) {
    .action-bar {
        bottom: 0;
        gap: 5px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-action {
        padding: 12px 16px;
        font-size: 13px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

.btn-print { background: #27ae60; color: white; }
.btn-print-only { background: #3498db; color: white; }
.btn-back { background: #95a5a6; color: white; }
.btn-save {
    background: linear-gradient(135deg, #0b7fc6, #27ae60);
    color: white;
    min-width: 190px;
}

@media screen and (max-width: 768px) {
    body {
        background: white;
    }

    .workflow-progress,
    .input-container {
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    .workflow-progress {
        padding: 18px 14px 14px;
        gap: 8px;
    }

    .workflow-track {
        left: 17%;
        right: 17%;
        top: 34px;
    }

    .workflow-number {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .workflow-step {
        font-size: 12px;
    }

    .header-brand {
        padding: 26px 18px 24px;
    }

    .header-brand h1 {
        font-size: 28px;
    }

    .hero-logo-wrap {
        width: min(280px, 82vw);
        padding: 14px 18px;
    }

    .input-container form {
        padding: 22px 18px 28px;
    }

    .trust-badges span,
    .company-card {
        font-size: 12px;
    }

    .field-head {
        align-items: flex-start;
    }
}
