﻿/* Visa section styles */

:root {
    --business-blue: #1A365D;
    --accent-blue: #2B6CB0;
    --soft-blue: #f0f4f8;
    --border-color: #e2e8f0;
    --text-dark: #2d3748;
    --text-muted: #718096;
}

.info-header {
    text-align: center;
    margin-bottom: 40px;
}

.info-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--business-blue);
    margin: 0;
    line-height: 1.3;
}

.visa-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.table-wrapper {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid var(--border-color);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.visa-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    min-width: 900px;
}

.visa-table th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 700;
    padding: 18px 15px;
    text-align: center;
    border-top: 3px solid #3B82F6;
    border-bottom: 1px solid #E4E4E7;
    white-space: nowrap;
}

.visa-table td {
    padding: 16px 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
    vertical-align: middle;
}

.visa-table tr:last-child td {
    border-bottom: none;
}

.col-group,
.group-row {
    width: 100px;
}

.col-code,
.visa-code {
    width: 100px;
}

.col-type,
.visa-type {
    width: 200px;
}

.col-desc,
.visa-desc {
    width: auto;
}

.group-row {
    background-color: #f8fafc;
    font-weight: 800;
    color: #334155;
    text-align: center;
    font-size: 1.1rem;
    border-right: 1px solid var(--border-color);
}

.visa-code {
    font-weight: 700;
    color: var(--business-blue);
    text-align: center;
    background-color: #fcfdfe;
}

.visa-type {
    font-weight: 600;
}

.visa-desc {
    color: #4a5568;
    line-height: 1.5;
}

.highlight-link {
    display: inline-block;
    background-color: #ff7e00;
    color: #fff !important;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(255, 126, 0, 0.3);
}

.highlight-link:hover {
    background-color: #e67100;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 126, 0, 0.4);
}

@media (max-width: 768px) {
    .visa-container {
        padding: 40px 10px;
    }

    .table-wrapper {
        scrollbar-width: thin;
        scrollbar-color: var(--business-blue) #f1f1f1;
    }

    .table-wrapper::-webkit-scrollbar {
        height: 8px;
        display: block;
    }

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

    .table-wrapper::-webkit-scrollbar-thumb {
        background: var(--business-blue);
        border-radius: 10px;
    }

    .visa-table {
        font-size: 13px;
        min-width: 700px;
    }

    .col-group,
    .group-row {
        width: 80px !important;
        font-size: 0.9rem;
    }

    .col-code,
    .visa-code {
        width: 70px !important;
    }

    .col-type,
    .visa-type {
        width: 120px !important;
    }

    .visa-table td,
    .visa-table th {
        padding: 12px 10px;
    }
}

.visa-table {
    font-size: 14px;
    min-width: 1000px;
}

.col-group,
.group-row {
    width: 90px;
    text-align: center;
}

.col-code,
.visa-code {
    width: 120px;
    text-align: center;
}

.col-type,
.visa-type {
    width: 140px;
}

.col-status,
.visa-status {
    width: 380px;
}

.col-industry,
.visa-industry {
    width: auto;
    font-weight: 500;
}

.group-row {
    font-size: 1rem;
}

.visa-code {
    white-space: nowrap;
}

.visa-status {
    color: #4a5568;
    line-height: 1.5;
}

.visa-industry {
    color: #2b6cb0;
    line-height: 1.6;
}

.highlight-link {
    padding: 3px 10px;
    box-shadow: 0 2px 5px rgba(255, 126, 0, 0.2);
}

.highlight-link:hover {
    box-shadow: 0 4px 8px rgba(255, 126, 0, 0.3);
}

@media (max-width: 768px) {
    .visa-table {
        min-width: 850px;
    }

    .visa-code {
        width: 90px !important;
        white-space: normal;
    }

    .visa-status {
        width: 250px !important;
    }
}

.visa-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    color: var(--text-dark);
    line-height: 1.7;
}

.quote-box {
    background-color: var(--soft-blue);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin-bottom: 50px;
    border: 1px dashed var(--accent-blue);
}

.quote-box p {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 8px;
}

.quote-box p:last-child {
    margin-bottom: 0;
}

.section-box {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--business-blue);
    margin-bottom: 25px;
    border-left: 0 !important;
    padding-left: 0 !important;
}

.section-title::before {
    display: none !important;
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin: 25px 0;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.comparison-table th {
    background-color: #f8f9fa;
    font-weight: 700;
    color: var(--text-dark);
}

.comparison-table .highlight-col {
    background-color: #fff8f0;
    color: var(--business-blue);
    font-weight: 700;
}

.visa-wide-table td {
    text-align: left;
    line-height: 1.6;
    word-break: keep-all;
}

.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #38a169;
    font-weight: 900;
}

.feature-list h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--business-blue);
    margin-bottom: 5px;
}

.feature-list p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.check-list {
    list-style: none;
    padding-left: 0;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 500;
}

.check-list li i {
    color: #3182ce;
    margin-top: 5px;
}

.highlight-text {
    color: #e53e3e;
    font-weight: 700;
}

.footer-actions {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background-color: var(--business-blue);
    color: #fff !important;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none !important;
    transition: transform 0.2s;
}

.btn-back:hover {
    transform: translateX(-5px);
    background-color: #2c5282;
}

@media (max-width: 768px) {
    .visa-detail-container {
        padding: 40px 15px;
    }

    .section-box {
        padding: 25px 20px;
    }
}

.f2r-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    color: var(--text-dark);
    line-height: 1.7;
}

.register-guide-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    color: var(--text-dark);
    line-height: 1.7;
}

.register-guide-hero {
    background: linear-gradient(180deg, #fff6bf 0%, #fff0a8 100%);
    border: 1px solid #f1dd82;
    border-radius: 44px;
    padding: 48px 56px;
    margin-bottom: 42px;
    text-align: center;
    box-shadow: 0 18px 40px rgba(191, 161, 57, 0.12);
}

.register-guide-hero h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--business-blue);
    margin-bottom: 22px;
}

.register-guide-hero p {
    margin-bottom: 10px;
    font-size: 1.08rem;
}

.register-guide-accent {
    color: #1d4ed8;
    font-weight: 800;
}

.register-guide-brand {
    font-style: italic;
    font-weight: 900;
    color: #1447d1;
}

.register-guide-points {
    list-style: none;
    padding: 0;
    margin: 28px 0;
    text-align: left;
    display: inline-block;
}

.register-guide-points li {
    margin-bottom: 10px;
    padding-left: 18px;
    position: relative;
    font-size: 1rem;
}

.register-guide-points li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--business-blue);
    font-weight: 700;
}

.register-guide-summary {
    margin-top: 26px;
    font-size: 1.05rem;
    font-weight: 500;
}

.why-grid {
    display: grid;
    gap: 18px;
}

.why-card {
    background: #f8fbff;
    border: 1px solid #d8e6fb;
    border-radius: 18px;
    padding: 24px 26px;
}

.why-card h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--business-blue);
}

.guide-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 2px solid #60a5fa;
}

.guide-table th,
.guide-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #dbe7f5;
    vertical-align: middle;
}

.guide-table thead th {
    background: #f8fbff;
    color: var(--business-blue);
    font-weight: 800;
    text-align: center;
}

.guide-table tbody th {
    background: #fbfdff;
    color: #1f2937;
    font-weight: 700;
    white-space: nowrap;
}

.guide-table td {
    color: #475569;
}

.guide-table td strong,
.guide-table th strong {
    color: #111827;
}

.guide-subtitle {
    margin-bottom: 18px;
    color: #475569;
}

.guide-heading {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--business-blue);
}

.guide-heading-spaced {
    margin-top: 18px;
    margin-bottom: 14px;
}

.guide-note-list-tight {
    margin-top: 0;
}

.guide-intro-spaced {
    margin-top: 18px;
}

.guide-note-list {
    margin: 20px 0 0;
    padding-left: 18px;
}

.guide-note-list li {
    margin-bottom: 10px;
}

.guide-highlight {
    color: #1d4ed8;
    font-weight: 700;
}

.guide-membership-intro {
    text-align: center;
    margin-bottom: 30px;
}

.guide-membership-intro h3 {
    font-size: 1.8rem;
    color: #1d4ed8;
    font-weight: 800;
    margin-bottom: 14px;
}

.guide-membership-intro p {
    margin-bottom: 8px;
}

.guide-small-note {
    margin-top: 16px;
    color: #64748b;
    font-size: 0.98rem;
}

.f2r-container .section-box {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.f2r-container .section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--business-blue);
    margin-bottom: 25px;
    border-left: 0 !important;
    padding-left: 0 !important;
}

.f2r-container .section-title::before {
    display: none !important;
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.summary-table th,
.summary-table td {
    padding: 15px;
    border: 1px solid var(--border-color);
}

.summary-table th {
    background-color: var(--soft-blue);
    color: var(--business-blue);
    width: 220px;
    font-weight: 700;
    text-align: center;
}

.summary-table td {
    background-color: #fff;
}

.highlight-box {
    background-color: #fff8f1;
    border-left: 4px solid #ff7e00;
    padding: 25px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 25px;
}

.content-list {
    padding-left: 0;
    margin-bottom: 20px;
    list-style: none;
}

.content-list li {
    margin-bottom: 8px;
    position: relative;
}

.sub-section {
    margin-top: 30px;
    padding-left: 10px;
}

.sub-section h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.badge-info-p {
    display: inline-block;
    background-color: var(--soft-blue);
    color: var(--accent-blue);
    padding: 3px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.important-note {
    font-size: 1rem;
    color: #e53e3e;
    background: #fff5f5;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #fed7d7;
    margin-top: 20px;
}

.text-pre {
    white-space: pre-wrap;
    word-break: break-all;
}

@media (max-width: 768px) {
    .info-header {
        margin-bottom: 28px;
    }

    .info-header h2 {
        font-size: 1.7rem;
    }

    .f2r-container {
        padding: 40px 15px;
    }

    .f2r-container .section-box {
        padding: 20px;
    }

    .summary-table th {
        width: 120px;
        font-size: 0.9rem;
    }

    .register-guide-container {
        padding: 40px 15px;
    }

    .register-guide-hero {
        border-radius: 28px;
        padding: 32px 22px;
    }

    .register-guide-hero h2 {
        font-size: 1.7rem;
    }

    .guide-table {
        min-width: 760px;
    }

    .register-guide-container .comparison-table-wrapper {
        margin: 20px -18px 0;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }
}

/* visa/change.php */
.page-title-wrap {
    text-align: center;
    margin-bottom: 50px;
}

.page-title-wrap h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--business-blue, #1A365D);
    margin-bottom: 10px;
}

.nav-pills .nav-link.active {
    color: #fff !important;
}

.form-control-custom {
    border: 2px solid #eef0f5;
    background: #f9faff;
    border-radius: 12px;
    padding: 14px;
    font-size: 15px;
    width: 100%;
    transition: all 0.2s;
    box-sizing: border-box;
    display: block;
}

.form-control-custom:focus {
    border-color: #4A6cf7;
    background: #fff;
    outline: none;
}

textarea.form-control-custom {
    line-height: 1.6;
    resize: vertical;
}

.flowchart-container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    font-family: 'Pretendard', sans-serif;
}

.flow-main {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flow-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.node-box {
    background: #fff;
    border: 2px solid #cbd5e0;
    border-radius: 12px;
    padding: 15px 30px;
    color: #2c5282;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    min-width: 220px;
}

.node-applicant .node-box {
    border-color: #bee3f8;
    background: #ebf8ff;
}

.node-reception .node-box,
.node-screening .node-box {
    border-color: #c3dafe;
    background: #edf2ff;
}

.node-sub {
    font-size: 0.85rem;
    color: #805ad5;
    margin-top: 5px;
    font-weight: 600;
    text-align: center;
}

.flow-arrow {
    font-size: 1.5rem;
    color: #a0aec0;
    margin: 10px 0;
}

.flow-split-arrows {
    display: flex;
    gap: 80px;
    font-size: 1.5rem;
    color: #a0aec0;
    margin: 10px 0;
}

.flow-results {
    display: flex;
    gap: 20px;
    width: 100%;
    justify-content: center;
}

.result-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 240px;
}

.result-permit .node-box,
.result-denial .node-box {
    background: #faf5ff;
    border-color: #e9d8fd;
    color: #6b46c1;
}

.result-list {
    padding: 0;
    margin-top: 10px;
    list-style: none;
    font-size: 0.85rem;
    color: #4a5568;
    line-height: 1.5;
    text-align: left;
}

.result-list li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 5px;
}

.result-list li::before,
.side-list li::before {
    content: '-';
    position: absolute;
    left: 0;
}

.side-box {
    background: #e6fffa;
    border-radius: 15px;
    padding: 20px;
    border: 1px solid #b2f5ea;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
}

.side-title {
    font-weight: 800;
    font-size: 1.2rem;
    color: #2d3748;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 1px solid #b2f5ea;
    padding-bottom: 10px;
}

.side-list {
    padding: 0;
    margin: 0;
    list-style: none;
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.6;
}

.side-list li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;
}

.apply-table td {
    color: #111827 !important;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
}

.apply-table td span:not(.badge) {
    color: #111827 !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
}

.apply-table td .text-primary:not(.badge),
.apply-table td .text-danger:not(.badge),
.apply-table td .text-dark:not(.badge) {
    color: #111827 !important;
}

@media (max-width: 991px) {
    .flowchart-container {
        flex-direction: column;
    }

    .flow-split-arrows {
        gap: 120px;
    }
}

@media (max-width: 768px) {
    .page-title-wrap h2 {
        font-size: 1.55rem;
    }

    #visaTabs {
        flex-direction: column;
        gap: 10px;
        padding: 15px !important;
        margin-bottom: 30px !important;
    }

    #visaTabs .nav-item {
        width: 100%;
        flex: none;
        margin: 0;
    }

    #visaTabs .nav-link {
        width: 100%;
        font-size: 1.1rem !important;
        padding: 15px !important;
        margin: 0;
        display: flex;
        justify-content: center;
    }

    .apply-table,
    .apply-table tbody,
    .apply-table tr,
    .apply-table th,
    .apply-table td {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }

    .apply-table th {
        padding-bottom: 5px !important;
        padding-top: 15px !important;
        border-top: 1px solid #f8f9fa;
    }

    .apply-table td {
        padding-bottom: 15px !important;
        padding-left: 10px !important;
        word-break: break-all;
    }

    .mobile-shrink-text {
        font-size: 1.1rem !important;
    }

    .mobile-shrink-title {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 576px) {
    .node-box {
        min-width: 180px;
        padding: 12px 20px;
        font-size: 1rem;
    }

    .flow-split-arrows {
        gap: 60px;
    }

    .result-item {
        max-width: 160px;
    }

    .result-list {
        font-size: 0.8rem;
    }
}
