*{margin:0;padding:0;box-sizing:border-box}:root{--primary-color: #2563eb;--primary-hover: #1d4ed8;--secondary-color: #64748b;--error-color: #dc2626;--success-color: #16a34a;--border-color: #e2e8f0;--bg-color: #f8fafc;--text-primary: #0f172a;--text-secondary: #475569;--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / .05);--shadow-md: 0 4px 6px -1px rgb(0 0 0 / .1);--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .1)}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,Malgun Gothic,맑은 고딕,sans-serif;line-height:1.6;color:var(--text-primary);background-color:var(--bg-color);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.app-container{display:flex;flex-direction:column;height:100vh;width:100%;background:#f0f0f0;overflow:hidden}.app-header{height:70px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 2rem;box-shadow:0 2px 8px #0000001a;z-index:1000;flex-shrink:0}.app-header h1{margin:0;font-size:1.5rem;font-weight:600}.app-header p{margin:0;font-size:.9rem;opacity:.9}.header-actions{display:flex;gap:.75rem;align-items:center}.header-actions .btn{padding:.5rem 1rem;font-size:.85rem;box-shadow:0 2px 4px #0000001a}.header-actions .btn-secondary{background-color:#fff;color:#333;border:none}.header-actions .btn-primary{background-color:#2563eb;color:#fff;border:none}.header-actions .btn:hover{transform:translateY(-1px);box-shadow:0 4px 6px #00000026}.app-layout{display:flex;flex:1;margin:1.5rem;border:2px solid #667eea;border-radius:12px;overflow:hidden;background:#fff;box-shadow:0 4px 12px #0000001a;min-height:0}.form-section{margin-bottom:3rem;padding-bottom:2rem;border-bottom:2px solid var(--border-color)}.form-section:last-of-type{border-bottom:none}.section-title{font-size:1.5rem;font-weight:700;color:var(--text-primary);margin-bottom:1.5rem;padding-bottom:.75rem;border-bottom:3px solid var(--primary-color)}.subsection{margin-top:2rem;padding:1.5rem;background-color:#f8fafc;border-radius:8px;border-left:4px solid var(--primary-color)}.subsection-title{font-size:1.125rem;font-weight:600;color:var(--text-primary);margin-bottom:1rem}.form-field{margin-bottom:1.5rem}.form-label{display:block;font-size:.875rem;font-weight:600;color:var(--text-primary);margin-bottom:.5rem}.required-indicator{color:var(--error-color);margin-left:.25rem}.help-text{font-size:.75rem;color:var(--text-secondary);margin-top:.25rem}.error-message{font-size:.75rem;color:var(--error-color);margin-top:.25rem;font-weight:500}.form-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem;margin-bottom:1.5rem}.text-input,.date-input{width:100%;padding:.625rem .875rem;font-size:.875rem;border:2px solid var(--border-color);border-radius:6px;transition:all .2s ease;background-color:#fff}.text-input:focus,.date-input:focus{outline:none;border-color:var(--primary-color);box-shadow:0 0 0 3px #2563eb1a}.text-input.error,.date-input.error{border-color:var(--error-color)}.text-input.error:focus,.date-input.error:focus{box-shadow:0 0 0 3px #dc26261a}.select-container{position:relative;width:100%}.select-trigger{width:100%;padding:.625rem 2.5rem .625rem .875rem;font-size:.875rem;border:2px solid var(--border-color);border-radius:6px;background-color:#fff;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:space-between;min-height:42px}.select-trigger:hover{border-color:var(--primary-color)}.select-trigger.open{border-color:var(--primary-color);box-shadow:0 0 0 3px #2563eb1a}.select-trigger.error{border-color:var(--error-color)}.select-value{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select-value .placeholder{color:var(--text-secondary)}.select-icons{display:flex;align-items:center;gap:.25rem;position:absolute;right:.625rem;top:50%;transform:translateY(-50%)}.clear-button{background:none;border:none;padding:.25rem;cursor:pointer;color:var(--text-secondary);display:flex;align-items:center;justify-content:center;border-radius:4px;transition:all .2s ease}.clear-button:hover{background-color:var(--bg-color);color:var(--error-color)}.chevron{transition:transform .2s ease;color:var(--text-secondary)}.chevron.rotate{transform:rotate(180deg)}.app-nav{width:320px;height:100%;background:#fff;border-right:2px solid #e0e0e0;flex-shrink:0;display:flex;flex-direction:column}.app-nav h3{margin:0;padding:1.5rem 2rem;font-size:1.5rem;font-weight:600;color:#333;background:linear-gradient(to right,#f8f9fa,#fff);border-bottom:2px solid #e0e0e0;flex-shrink:0}.nav-list{list-style:none;padding:1.5rem 0;margin:0;flex:1;overflow-y:auto}.nav-item{margin:0;border-bottom:1px solid #e9ecef}.nav-link{display:block;padding:1rem 1.5rem;color:#333;text-decoration:none;transition:all .2s;border-left:3px solid transparent}.nav-link:hover{background:#e9ecef;border-left-color:#667eea}.nav-link.active{background:#e7e9fc;border-left-color:#667eea}.nav-section-title{font-weight:600;font-size:.95rem;color:#333;margin-bottom:.5rem}.nav-section-stats{font-size:.75rem;color:#667eea;margin-bottom:.5rem;font-weight:500}.nav-section-fields{font-size:.75rem;color:#666;line-height:1.5;margin-top:.5rem}.nav-field-item{position:relative;padding-left:.75rem;margin-bottom:.25rem}.nav-field-item:before{content:"•";position:absolute;left:0;color:#999}.nav-link.active .nav-section-title{color:#667eea}.nav-link.active .nav-section-stats{color:#764ba2}.app-content{flex:1;padding:0;background:#fff;display:flex;flex-direction:column}.content-header{padding:1.5rem 2rem;border-bottom:2px solid #e0e0e0;background:linear-gradient(to right,#f8f9fa,#fff);flex-shrink:0;display:flex;justify-content:space-between;align-items:center}.content-header h2{margin:0;font-size:1.5rem;font-weight:600;color:#333}.declaration-form{flex:1;padding:2rem;overflow-y:auto}.app-footer{height:60px;background:#2c3e50;color:#fff;display:flex;align-items:center;justify-content:center;font-size:.9rem;flex-shrink:0}.select-dropdown{position:absolute;top:calc(100% + .25rem);left:0;right:0;background:#fff;border:2px solid var(--primary-color);border-radius:6px;box-shadow:var(--shadow-lg);z-index:1000;max-height:300px;overflow:hidden;display:flex;flex-direction:column}.select-search{padding:.75rem;border:none;border-bottom:2px solid var(--border-color);font-size:.875rem;outline:none}.select-search:focus{border-bottom-color:var(--primary-color)}.select-options{overflow-y:auto;max-height:250px}.select-option{padding:.75rem;cursor:pointer;font-size:.875rem;transition:background-color .15s ease}.select-option:hover{background-color:var(--bg-color)}.select-option.selected{background-color:#2563eb1a;color:var(--primary-color);font-weight:600}.select-option.disabled{cursor:not-allowed;color:var(--text-secondary);font-style:italic}.address-input-group{display:flex;flex-direction:column;gap:1rem}.address-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.form-actions{display:flex;gap:1rem;justify-content:flex-end;margin-top:2rem;padding-top:2rem;border-top:2px solid var(--border-color)}.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.75rem 1.5rem;font-size:.875rem;font-weight:600;border:none;border-radius:6px;cursor:pointer;transition:all .2s ease;box-shadow:var(--shadow-sm)}.btn:hover{transform:translateY(-1px);box-shadow:var(--shadow-md)}.btn:active{transform:translateY(0)}.btn-primary{background-color:var(--primary-color);color:#fff}.btn-primary:hover{background-color:var(--primary-hover)}.btn-secondary{background-color:#fff;color:var(--text-primary);border:2px solid var(--border-color)}.btn-secondary:hover{background-color:var(--bg-color);border-color:var(--secondary-color)}.error-summary{margin-top:2rem;padding:1rem 1.5rem;background-color:#fef2f2;border:2px solid var(--error-color);border-radius:6px;color:var(--error-color)}.error-summary h3{font-size:1rem;font-weight:700;margin-bottom:.5rem}.error-summary p{font-size:.875rem}@media (max-width: 1024px){.app-nav{width:280px}.app-content{margin-left:280px}}@media (max-width: 768px){.app-nav{display:none}.app-content{margin-left:0}.form-grid{grid-template-columns:1fr}.app{padding:1rem .5rem}.form-header{padding:2rem 1rem}.form-title{font-size:1.5rem}.declaration-form{padding:1.5rem 1rem}.form-row,.address-row{grid-template-columns:1fr}.form-actions{flex-direction:column}.btn{width:100%;justify-content:center}}.select-options::-webkit-scrollbar{width:8px}.select-options::-webkit-scrollbar-track{background:var(--bg-color)}.select-options::-webkit-scrollbar-thumb{color:var(--text-primary);margin:0}.section-subtitle{font-size:.875rem;color:var(--text-secondary);margin:.25rem 0 0}.section-accordion{background:#fff;border:1px solid var(--border-color);border-radius:8px;overflow:hidden;margin-bottom:1.5rem;box-shadow:var(--shadow-sm)}.section-accordion-header{padding:1.25rem 1.5rem;background-color:#f8fafc;border-bottom:1px solid var(--border-color);display:flex;justify-content:space-between;align-items:flex-start;cursor:default}.section-accordion-title h3{font-size:1.125rem;font-weight:600;color:var(--text-primary);margin:0}.section-accordion-controls{display:flex;align-items:center;gap:1rem}.section-complete-badge{padding:.25rem .75rem;background-color:var(--success-color);color:#fff;font-size:.75rem;font-weight:600;border-radius:12px}.section-accordion-content{padding:2rem 1.5rem}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem}.repeatable-section{margin-top:1.5rem}.repeatable-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;padding-bottom:.75rem;border-bottom:2px solid var(--border-color)}.repeatable-header h4{font-size:1rem;font-weight:600;color:var(--text-primary);margin:0}.repeatable-items{display:flex;flex-direction:column;gap:1rem}.repeatable-item{border:2px solid var(--border-color);border-radius:8px;padding:1.5rem;background:#fff;transition:border-color .2s ease}.repeatable-item:hover{border-color:var(--primary-color)}.repeatable-item-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;padding-bottom:.75rem;border-bottom:1px solid var(--border-color)}.repeatable-item-number{font-size:.875rem;font-weight:600;color:var(--primary-color);background:#2563eb1a;padding:.25rem .75rem;border-radius:12px}.repeatable-item-content{margin-top:1rem}.btn-sm{padding:.5rem 1rem;font-size:.75rem}.btn-danger{background-color:var(--error-color);color:#fff}.btn-danger:hover{background-color:#b91c1c}@media print{.form-actions{display:none}.form-container{box-shadow:none}.form-section{page-break-inside:avoid}}
