* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    padding-top: 80px;
    color: #333;
}

/* 네비게이션 바 */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-logo {
    font-size: 1.6em;
    font-weight: 700;
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: #764ba2;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    padding: 8px 20px;
    text-decoration: none;
    color: #495057;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.nav-link:hover {
    background: #f8f9fa;
    color: #667eea;
}

.nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.nav-link.active:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.nav-apply-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white !important;
    border: none;
    cursor: pointer;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.nav-apply-btn:hover {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    font-weight: 700;
}

header p {
    font-size: 1.1em;
    opacity: 0.9;
}

main {
    padding: 40px;
}

.upload-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.upload-box {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    border: 2px dashed #dee2e6;
    transition: all 0.3s ease;
}

.upload-box:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.upload-box h2 {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: #495057;
}

.upload-area {
    position: relative;
    margin-bottom: 20px;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #dee2e6;
}

.upload-label:hover {
    background: #f8f9fa;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.upload-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.upload-options {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.upload-options .upload-area {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}

.upload-options .upload-label {
    height: 100%;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.btn-webcam {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    border: none;
    padding: 40px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex: 1;
    min-width: 200px;
    min-height: 120px;
    border: 2px solid transparent;
}

.btn-webcam:hover {
    background: linear-gradient(135deg, #138496 0%, #17a2b8 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(23, 162, 184, 0.4);
    border-color: #17a2b8;
}

.upload-label:hover {
    background: #f8f9fa;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

/* 웹캠 모달 스타일 */
.webcam-modal-content {
    max-width: 700px;
}

.webcam-instruction {
    background: #e7f3ff;
    border-left: 4px solid #667eea;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.webcam-container {
    text-align: center;
    margin: 20px 0;
}

.webcam-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

#capturedPreview {
    margin-top: 20px;
}

#capturedImage {
    max-width: 100%;
    max-height: 400px;
    border-radius: 10px;
    border: 3px solid #667eea;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.upload-text {
    font-size: 1.1em;
    color: #667eea;
    font-weight: 600;
}

.preview-canvas {
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
    display: none;
    margin-bottom: 15px;
    border: 2px solid #dee2e6;
}

.preview-canvas.show {
    display: block;
}

.roi-canvas-wrapper {
    position: relative;
}

.roi-canvas-wrapper .preview-canvas {
    margin-bottom: 0;
}

.roi-overlay {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.roi-overlay.roi-selecting {
    cursor: crosshair;
    pointer-events: auto;
}

.roi-controls {
    display: flex;
    gap: 10px;
    margin: 12px 0 8px;
    flex-wrap: wrap;
}

.roi-status {
    font-size: 0.9em;
    color: #6c757d;
    padding: 8px 12px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.roi-status.saved {
    color: #155724;
    background: #d4edda;
    border-color: #c3e6cb;
}

.face-info {
    padding: 15px;
    background: white;
    border-radius: 8px;
    font-size: 0.9em;
    color: #495057;
    min-height: 50px;
    display: none;
}

.face-info.show {
    display: block;
}

.face-info.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.face-info.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.face-info.warning {
    background: #fff3cd;
    color: #856404;
    border: 2px solid #ffc107;
    font-weight: 600;
}

/* 영상 링크 입력 스타일 */
.upload-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: #6c757d;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #667eea;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.video-input-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.video-time-input-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-time-input-section label {
    font-weight: 600;
    color: #495057;
    min-width: 140px;
    font-size: 0.95em;
}

.video-action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.video-action-buttons .btn {
    flex: 1;
    min-width: 150px;
}

.video-url-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.video-url-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.video-preview {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

#videoContainer {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 20px;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

#videoContainer iframe,
#videoContainer video {
    width: 100%;
    height: auto;
    display: block;
    min-height: 400px;
}

.video-time-controls {
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.video-time-controls label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #495057;
}

.time-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.time-input {
    width: 120px;
    max-width: 120px;
    padding: 8px 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.95em;
}

.time-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
}

.video-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.video-controls .btn {
    min-width: 150px;
}

.frame-preview {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #667eea;
    text-align: center;
    display: block !important; /* 강제 표시 */
    visibility: visible !important;
    opacity: 1 !important;
}

.frame-preview[style*="display: none"] {
    display: none !important; /* 명시적으로 숨김 처리된 경우만 숨김 */
}

.extracted-frame-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: block;
    margin-left: auto;
    margin-right: auto;
    background: #fff;
}

#useExtractedFrameBtn {
    margin-top: 10px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
}

.video-thumbnail-preview {
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.action-section {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.btn {
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #28a745;
    color: white;
}

.btn-accent {
    background: #ff6b6b;
    color: white;
}

.btn-accent:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.35);
}

.btn-secondary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.4);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.result-section {
    margin-bottom: 30px;
}

.result-section h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #495057;
}

.result-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 30px;
    border: 2px solid #dee2e6;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #dee2e6;
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-size: 1.2em;
    font-weight: 600;
    color: #495057;
}

.result-value {
    font-size: 1.3em;
    font-weight: 700;
    color: #667eea;
}

.result-value.high {
    color: #28a745;
}

.result-value.medium {
    color: #ffc107;
}

.result-value.low {
    color: #dc3545;
}

.result-description {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    font-size: 1.1em;
    line-height: 1.6;
    color: #495057;
}

.detailed-analysis {
    margin-top: 25px;
    padding: 25px;
    background: white;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.analysis-details h4 {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: #495057;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.analysis-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    flex-wrap: wrap;
    gap: 10px;
}

.analysis-item:last-child {
    border-bottom: none;
}

.analysis-label {
    font-weight: 600;
    color: #495057;
    min-width: 180px;
    font-size: 1em;
}

.analysis-value {
    font-weight: 700;
    font-size: 1.1em;
    color: #667eea;
    margin-left: auto;
}

.analysis-note {
    font-size: 0.85em;
    color: #6c757d;
    font-style: italic;
    width: 100%;
    margin-top: 5px;
}

.region-analysis {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.region-analysis h5 {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #495057;
}

.region-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    gap: 10px;
    flex-wrap: wrap;
}

.region-name {
    font-weight: 600;
    color: #495057;
    min-width: 80px;
}

.region-value {
    font-weight: 700;
    font-size: 1em;
    padding: 4px 12px;
    border-radius: 5px;
    background: #e9ecef;
}

.region-value.high {
    background: #d4edda;
    color: #155724;
}

.region-value.medium {
    background: #fff3cd;
    color: #856404;
}

.region-value.low {
    background: #f8d7da;
    color: #721c24;
}

.region-points {
    font-size: 0.85em;
    color: #6c757d;
    margin-left: auto;
}

.analysis-item.confidence {
    background: #e7f3ff;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border: 2px solid #667eea;
}

.technical-details {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.technical-details h5 {
    font-size: 1em;
    margin-bottom: 10px;
    color: #495057;
}

.detail-item {
    font-size: 0.9em;
    color: #6c757d;
    padding: 5px 0;
    font-family: 'Courier New', monospace;
}

.info-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
}

.info-section h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #495057;
}

.info-section ol {
    margin-left: 20px;
    margin-bottom: 20px;
    line-height: 2;
    color: #495057;
}

.warning {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.warning strong {
    color: #856404;
    display: block;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.warning ul {
    margin-left: 20px;
    color: #856404;
    line-height: 1.8;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 법적 대응 신청 섹션 */
.legal-action-section {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    text-align: center;
}

.btn-legal {
    background: white;
    color: #667eea;
    font-size: 1.2em;
    padding: 18px 50px;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-legal:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
}

.legal-note {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95em;
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #667eea;
}

.modal-content h2 {
    color: #495057;
    margin-bottom: 10px;
    font-size: 2em;
}

.modal-subtitle {
    color: #6c757d;
    margin-bottom: 30px;
    font-size: 1em;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #495057;
    font-weight: 600;
    font-size: 0.95em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.service-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 10px;
}

.service-option {
    cursor: pointer;
    display: block;
}

.service-option input[type="radio"] {
    display: none;
}

.service-card {
    padding: 25px;
    border: 3px solid #dee2e6;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    background: #f8f9fa;
    position: relative;
}

.service-option input[type="radio"]:checked + .service-card {
    border-color: #667eea;
    background: linear-gradient(135deg, #f0f4ff 0%, #e7f0ff 100%);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
}

.service-card h3 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 1.3em;
}

.service-card p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9em;
}

.service-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #667eea;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
}

.service-badge.monthly {
    background: #28a745;
}

.service-price {
    font-size: 1.5em;
    font-weight: 700;
    color: #667eea;
    margin: 10px 0;
}

.price-unit {
    font-size: 0.7em;
    color: #6c757d;
    font-weight: 500;
}

/* 결제 모달 스타일 */
.payment-modal-content {
    max-width: 600px;
}

.payment-summary {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    border: 2px solid #e9ecef;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #dee2e6;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item.total {
    border-top: 2px solid #667eea;
    margin-top: 10px;
    padding-top: 15px;
    font-size: 1.2em;
}

.summary-label {
    font-weight: 600;
    color: #495057;
}

.summary-value {
    font-weight: 700;
    color: #667eea;
    font-size: 1.1em;
}

.summary-item.total .summary-value {
    font-size: 1.3em;
    color: #667eea;
}

.payment-method-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.payment-method-option {
    cursor: pointer;
    display: block;
}

.payment-method-option input[type="radio"] {
    display: none;
}

.payment-method-card {
    padding: 20px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.payment-method-option input[type="radio"]:checked + .payment-method-card {
    border-color: #667eea;
    background: linear-gradient(135deg, #f0f4ff 0%, #e7f0ff 100%);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.payment-icon {
    font-size: 2em;
}

.payment-info-section {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 0.85em;
    color: #6c757d;
}

.payment-notice {
    background: #e7f3ff;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.payment-notice p {
    margin: 5px 0;
    color: #495057;
    font-size: 0.9em;
    line-height: 1.6;
}

.btn-payment {
    background: #28a745;
    color: white;
    font-weight: 700;
}

.btn-payment:hover:not(:disabled) {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

/* 결제 완료 모달 */
.payment-complete-content {
    max-width: 500px;
    text-align: center;
}

.complete-icon {
    font-size: 5em;
    margin-bottom: 20px;
}

.complete-summary {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
    text-align: left;
}

.complete-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

.complete-item:last-child {
    border-bottom: none;
}

.complete-label {
    font-weight: 600;
    color: #495057;
}

.complete-value {
    font-weight: 700;
    color: #667eea;
}

.complete-message {
    color: #495057;
    line-height: 1.8;
}

/* 약관 모달 스타일 */
#termsModal {
    z-index: 3000 !important; /* 다른 모달보다 위에 표시 */
}

.terms-modal-content {
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

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

.modal-header h2 {
    margin: 0;
    font-size: 1.8em;
    color: #667eea;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2em;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #495057;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.terms-content {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

.terms-text {
    line-height: 1.8;
    color: #495057;
}

.terms-text h3 {
    color: #667eea;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.3em;
    font-weight: 700;
}

.terms-text h3:first-child {
    margin-top: 0;
}

.terms-text h4 {
    color: #495057;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.1em;
    font-weight: 600;
}

.terms-text p {
    margin-bottom: 15px;
    text-align: justify;
}

.terms-text ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.terms-text ol li {
    margin-bottom: 10px;
    padding-left: 5px;
}

.modal-footer {
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
    text-align: right;
}

/* 약관 동의 라벨 스타일 */
.terms-label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.terms-detail-btn {
    background: none;
    border: none;
    color: #667eea;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9em;
    padding: 0;
    margin-left: 5px;
    transition: color 0.3s ease;
}

.terms-detail-btn:hover {
    color: #5568d3;
    text-decoration: none;
}

.btn-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    cursor: pointer;
}

/* 약관 모달 스크롤바 스타일 */
.terms-content::-webkit-scrollbar {
    width: 8px;
}

.terms-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.terms-content::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.terms-content::-webkit-scrollbar-thumb:hover {
    background: #5568d3;
}
    margin: 20px 0;
}

.close-payment {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-payment:hover,
.close-payment:focus {
    color: #667eea;
}

.form-group input[type="checkbox"] {
    margin-right: 10px;
    width: auto;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #e9ecef;
}

.form-actions .btn {
    padding: 12px 30px;
    font-size: 1em;
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .nav-container {
        padding: 12px 15px;
    }
    
    .nav-logo {
        font-size: 1.1em;
    }
    
    .nav-links {
        gap: 10px;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 0.85em;
    }
    
    .nav-apply-btn {
        padding: 6px 12px;
        font-size: 0.85em;
    }
    
    .upload-section {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        font-size: 1.8em;
    }
    
    .action-section {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .service-type-selector {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 30px 20px;
        margin: 10% auto;
        width: 95%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .payment-method-selector {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .service-price {
        font-size: 1.2em;
    }
    
    .video-input-section {
        flex-direction: column;
    }
    
    .video-input-section .btn {
        width: 100%;
    }
    
    .video-controls {
        flex-direction: column;
    }
    
    .video-controls .btn {
        width: 100%;
    }
    
    #videoContainer iframe,
    #videoContainer video {
        min-height: 250px;
    }
}

