:root {
    --primary-navy: #0A192F;
    --secondary-navy: #112240;
    --point-gold: #C6A87C;
    --point-gold-light: #D4B991;
    --text-white: #E6F1FF;
    --text-slate: #8892B0;
    --bg-light: #F9F9F7;
    --bg-white: #FFFFFF;
    --container-width: 1280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: all 0.3s;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Redesign */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    /* White background */
    backdrop-filter: blur(10px);
    z-index: 100;
    height: 150px;
    /* Increased height */
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 110px;
    /* Offset for logo margin-left */
}

.logo {
    margin-left: -110px;
    transition: margin-left 0.3s;
}

.logo img {
    height: 90px;
    /* Reduced Logo Size */
    display: block;
}

/* Hero Section Redesign */
.hero {
    padding-top: 150px;
    /* Match header height */
    background-color: var(--primary-navy);
    position: relative;
    overflow: hidden;
}

.hero-wrapper {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    mix-blend-mode: overlay;
    z-index: 1;
}

/* New 3D Abstract Background */
.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('hero_new_v2.png') no-repeat center center;
    background-size: cover;
    z-index: 0;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-white);
    padding-bottom: 120px;
    /* Increased padding to push stats down */
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 28px;
    color: white;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.highlight-underline {
    color: var(--point-gold);
    border-bottom: 4px solid var(--point-gold);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-slate);
    margin-bottom: 40px;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn-primary-gold {
    background-color: var(--point-gold);
    color: var(--primary-navy);
    padding: 18px 36px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(198, 168, 124, 0.4);
}

.btn-primary-gold:hover {
    background-color: var(--point-gold-light);
    transform: translateY(-2px);
}

.btn-outline-gold {
    border: 2px solid var(--point-gold);
    color: var(--point-gold);
    background-color: var(--primary-navy);
    /* Dark background for phone button */
    padding: 18px 36px;
    border-radius: 4px;
    font-weight: 700;
}

.btn-outline-gold:hover {
    background-color: #1a2f4a;
    color: var(--point-gold-light);
    border-color: var(--point-gold-light);
    transform: translateY(-2px);
}

.hero-stats {
    width: 100%;
    position: absolute;
    bottom: -110px;
    /* Moved further down to prevent overlap */
    left: 0;
    z-index: 10;
}

.hero-stats-card {
    background: rgba(10, 25, 47, 0.55);
    /* Even more transparent */
    backdrop-filter: blur(20px);
    /* Increased blur for better readability with higher transparency */
    border: 1px solid rgba(198, 168, 124, 0.3);
    border-radius: 12px;
    padding: 35px 60px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-stats-card .stat-row {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    border-bottom: none !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stats-card .stat-row:last-child {
    border-right: none;
}

.hero-stats-card .stat-label {
    margin-bottom: 12px;
    color: var(--text-slate);
    font-size: 15px;
    font-weight: 500;
}

.hero-stats-card .stat-value {
    color: var(--point-gold);
    font-size: 28px;
    font-weight: 800;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.border-bottom {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-label {
    font-size: 16px;
    color: var(--text-slate);
}

.stat-value {
    font-size: 22px;
    font-weight: 700;
}

.text-gold {
    color: var(--point-gold);
}

/* Sections Common */
.section-title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary-navy);
    text-align: center;
    line-height: 1.3;
}

.section-desc {
    color: #666;
    font-size: 18px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

/* Intro Section */
.section-intro {
    padding: 100px 0;
    background-color: var(--bg-white);
    text-align: center;
}

/* Advantage Section (Cards) */
.section-advantage {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.advantage-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-top: 4px solid transparent;
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.advantage-card:hover {
    transform: translateY(-10px);
    border-color: var(--point-gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.adv-icon-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.adv-text h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-navy);
}

/* Performance Section */
.section-performance {
    background-color: #f4f9ff;
    /* Light blue pastel tone */
    color: var(--primary-navy);
    padding: 100px 0;
}

.section-performance .section-title {
    color: var(--primary-navy);
    margin-bottom: 60px;
}

.performance-wrapper {
    display: flex;
    gap: 50px;
    align-items: center;
}

.perf-image-container {
    flex: 1;
}

.perf-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.perf-table-container {
    flex: 1;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f7;
}

.table-header {
    display: flex;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f4f8;
    color: var(--primary-navy);
    font-weight: 700;
}

.case-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f0f4f8;
    color: #555;
}

.case-amount {
    color: var(--primary-navy);
    font-weight: 700;
}

.page-btn {
    color: #666;
    border-color: #ddd;
    background: white;
}

.page-btn.active {
    font-weight: 800;
    color: var(--primary-navy);
    border-color: transparent;
    background-color: transparent;
}

/* Process Section */
.section-process {
    padding: 100px 0;
    background-color: white;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 60px;
}

.step-item {
    text-align: center;
    position: relative;
}

.step-card {
    background: var(--bg-light);
    border-radius: 50%;
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.step-card img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.step-item:hover .step-card {
    border-color: var(--point-gold);
    background: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.step-num {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--point-gold);
    color: var(--primary-navy);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.step-title {
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-navy);
}

/* Footer */
.footer {
    background-color: var(--bg-light);
    color: #555;
    padding: 80px 0;
    border-top: 1px solid #e0e0e0;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* or flex-start */
    gap: 40px;
}

.footer strong {
    color: var(--point-gold);
}

.footer-logo img {
    height: 120px;
    /* Adjust size as needed */
}

/* Floating Banner & Modal */
/* Radical Redesign: Premium Glass Chat Bubble */
.floating-banner {
    position: fixed;
    right: 40px;
    bottom: 40px;
    z-index: 2000;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.banner-bubble {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--point-gold), #b38d4f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(179, 141, 79, 0.4),
        inset 0 4px 10px rgba(255, 255, 255, 0.3);
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.banner-bubble:after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px solid var(--point-gold);
    opacity: 0.3;
    animation: bubbleWave 2s infinite ease-out;
}

.status-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #00e676;
    border: 3px solid #fff;
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.5);
}

.banner-icon {
    width: 30px;
    height: 30px;
}

.banner-prompt {
    background: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(10px);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid rgba(198, 168, 124, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0.8;
    transform: translateX(10px);
    transition: all 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
}

/* Animations */
@keyframes bubbleWave {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Hover States */
.floating-banner:hover {
    transform: translateY(-5px);
}

.floating-banner:hover .banner-bubble {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(179, 141, 79, 0.6);
}

.floating-banner:hover .banner-prompt {
    opacity: 1;
    transform: translateX(0);
    background: var(--point-gold);
    color: var(--primary-navy);
}

/* Modal Styling */
.chat-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 20px 20px 80px 20px;
}

.chat-modal.hidden {
    display: none !important;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slide-up 0.3s ease-out;
}

@keyframes slide-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: var(--point-gold);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-navy);
}

.modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.modal-content {
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
}

.hidden {
    display: none !important;
}

.step-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.full-width {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.mt-10 {
    margin-top: 10px;
}

.btn-outline-red {
    background: #fff;
    border: 1px solid #ff4d4f;
    color: #ff4d4f;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

/* Chat Styling */
.chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.4;
}

.message.user {
    align-self: flex-end;
    background: var(--point-gold);
    color: var(--primary-navy);
    border-bottom-right-radius: 2px;
}

.message.admin {
    align-self: flex-start;
    background: #fff;
    border: 1px solid #eee;
    color: #333;
    border-bottom-left-radius: 2px;
}

.chat-input-area {
    display: flex !important;
    gap: 10px;
    width: 100%;
}

.chat-input-area input {
    flex: 1;
    min-width: 0;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.chat-input-area input:disabled {
    background: #f0f0f0;
    cursor: not-allowed;
}

.welcome-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 2px solid var(--point-gold);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(198, 168, 124, 0.1);
}

.welcome-logo {
    width: 80px;
    height: auto;
    margin-bottom: 20px;
}

.welcome-text {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    white-space: pre-line;
    margin-bottom: 20px;
}

.welcome-text strong {
    color: #e67e22;
    font-size: 16px;
}

.modal-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 380px;
    position: relative;
}

.chat-banner-container {
    width: 100%;
    margin-top: 15px;
    border-radius: 10px;
    overflow: hidden;
    line-height: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.chat-banner-gif {
    width: 100%;
    height: auto;
    display: block;
}

.chat-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.option-btn {
    width: 100%;
    padding: 12px;
    background: #fffdeb;
    border: 1px solid var(--point-gold);
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    color: #000;
}

.option-btn:hover {
    background: var(--point-gold);
}

.send-btn {
    background: var(--point-gold);
    border: none;
    padding: 0 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    color: var(--primary-navy);
}

/* --- Mobile Response Styles --- */
@media (max-width: 900px) {

    /* Header */
    .header {
        height: 100px;
    }

    .logo img {
        height: 80px;
    }

    .hero {
        padding-top: 100px;
    }

    /* Hero Section */
    .hero-wrapper {
        min-height: auto;
        padding: 60px 20px;
    }

    .hero-content-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-title {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
    }

    .btn-primary-gold,
    .btn-outline-gold {
        width: 100%;
        padding: 14px;
        font-size: 16px;
    }

    /* Hero Stats Mobile */
    .hero-stats {
        bottom: -30px;
    }

    .hero-stats-card {
        width: 95%;
        padding: 20px 10px;
        flex-wrap: nowrap;
        /* Force one line */
        overflow-x: hidden;
        background: rgba(10, 25, 47, 0.9);
    }

    .hero-stats-card .stat-row {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0 5px;
    }

    .stat-label {
        font-size: 11px !important;
        margin-bottom: 5px !important;
    }

    .stat-value {
        font-size: 14px !important;
        white-space: nowrap;
    }

    /* Sections Common */
    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .section-desc {
        font-size: 15px;
        padding: 0 10px;
    }

    .section-intro,
    .section-process,
    .section-advantage,
    .section-performance {
        padding: 60px 0;
    }

    /* Advantage Grid */
    .advantage-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }

    .advantage-card {
        padding: 24px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .adv-icon-img {
        margin-bottom: 16px;
    }

    /* Performance Section */
    .performance-wrapper {
        flex-direction: column-reverse;
        /* Table first (actually image container is reversed) */
        gap: 30px;
    }

    .perf-image-container,
    .perf-table-container {
        width: 100%;
        flex: auto;
    }

    .perf-img {
        height: auto;
        max-height: 400px;
        object-fit: contain;
        background: #000;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Process Section */
    .process-steps {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 40px;
    }

    .step-item {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Footer Mobile */
    .footer .container {
        flex-direction: column-reverse;
        /* Logo on top, Info on bottom */
        text-align: center;
        gap: 30px;
    }

    .footer-logo img {
        height: 80px;
        margin-bottom: 0;
    }
}

/* Admin Dashboard Stats */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.stat-card h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #666;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: #020c1b;
}

.msg-time {
    font-size: 10px;
    color: #aaa;
    margin-top: 4px;
    display: block;
    text-align: right;
}

.message.user .msg-time {
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 480px) {
    .floating-banner {
        right: 20px;
        bottom: 25px;
        gap: 8px;
    }

    .banner-bubble {
        width: 55px;
        height: 55px;
    }

    .banner-prompt {
        padding: 8px 15px;
        font-size: 12px;
    }

    .modal-container {
        max-width: 100%;
        height: 70vh;
        border-radius: 20px 20px 0 0;
    }

    .chat-modal {
        padding: 0;
    }
}

/* Contract Styles */
.contract-paper {
    width: 210mm;
    min-height: 297mm;
    background: white;
    padding: 20mm;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    color: #333;
    font-family: "Batang", serif;
    /* Serif for document look */
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
    /* For stamp */
}

.doc-title {
    text-align: center;
    font-size: 24pt;
    font-weight: bold;
    margin-bottom: 40px;
    text-decoration: underline;
    text-underline-offset: 10px;
}

.doc-preamble {
    margin-bottom: 30px;
    line-height: 1.8;
}

.doc-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.doc-table th,
.doc-table td {
    border: 1px solid #000;
    padding: 10px;
}

.doc-table th {
    background: #f9f9f9;
    width: 15%;
    text-align: center;
    font-weight: bold;
}

.doc-date {
    text-align: center;
    margin: 50px 0;
    font-size: 16pt;
}

.doc-signatures {
    display: flex;
    justify-content: flex-end;
    gap: 50px;
    margin-bottom: 50px;
}

.sig-block {
    position: relative;
    line-height: 1.8;
}

/* Seal (Stamp) */
.seal {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border: 3px solid red;
    border-radius: 50%;
    color: red;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    opacity: 0.8;
    line-height: 1.2;
    z-index: 10;
    font-family: "Gulim", sans-serif;
}

.info-table-container {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.info-box {
    flex: 1;
    border: 1px solid #ccc;
    background: #eee;
    padding: 5px;
}

.info-box-header {
    background: #e0e0e0;
    padding: 5px 10px;
    font-weight: bold;
}

.ib-table {
    width: 100%;
    border-collapse: collapse;
}

.ib-table td {
    border: 1px solid #ddd;
    padding: 8px;
    background: white;
}

.ib-table td:first-child {
    background: #fafafa;
    text-align: center;
    font-weight: bold;
    width: 30%;
}

/* Header Nav Style */
.header-nav {
    position: absolute;
    right: 20%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

#view-info-link {
    font-family: 'Pretendard', sans-serif !important;
    font-size: 18px;
    color: #333;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    margin-top: 10px;
    /* Moved slightly down */
}

#view-info-link:hover {
    color: var(--point-gold);
}

@media (max-width: 900px) {
    .header-nav {
        right: 20px;
    }
}

#view-info-link:active {
    color: var(--point-gold-light);
}

.nav-link:hover {
    color: var(--point-gold);
}

/* Print Overrides */
@media print {
    body * {
        visibility: hidden;
    }

    #contract-doc-modal,
    #contract-doc-modal * {
        visibility: visible;
    }

    #contract-doc-modal {
        position: absolute;
        left: 0;
        top: 0;
        background: white;
        padding: 0;
        z-index: 9999;
    }

    .doc-actions {
        display: none !important;
    }

    .contract-paper {
        box-shadow: none;
        margin: 0;
        width: 100%;
    }

    #info-check-btn {
        padding: 12px !important;
        font-size: 14px !important;
        white-space: nowrap !important;
    }
}

/* Document Action Buttons - Global Styles */
.doc-actions {
    display: flex !important;
    gap: 10px !important;
    justify-content: center !important;
    margin-top: 20px !important;
    padding-bottom: 50px !important;
    width: 100% !important;
    flex-wrap: wrap;
    /* Allow wrap on desktop if needed, but we'll force nowrap on mobile */
}

.doc-actions button {
    padding: 10px 20px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 5px !important;
    white-space: nowrap !important;
    cursor: pointer;
    transition: all 0.3s;
}

#close-doc-btn.btn-dark {
    background: #333 !important;
    color: white !important;
    border: none !important;
}

.step0-notice {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    border: 1px solid #ddd;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.notice-link {
    color: #0088cc;
    font-weight: 800;
    text-decoration: underline !important;
}

.notice-btn {
    display: inline-block;
    margin-top: 10px;
    background: #0088cc;
    color: white !important;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
}

/* Mobile Overrides for Document Buttons */
@media (max-width: 900px) {
    .doc-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        /* STRICTLY NO WRAP */
        gap: 4px !important;
        padding-left: 2px !important;
        padding-right: 2px !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .doc-actions button {
        padding: 10px 2px !important;
        font-size: min(3vw, 13px) !important;
        flex: 1 1 0 !important;
        min-width: 0 !important;
        letter-spacing: -1px;
    }

    .step0-notice {
        font-size: 12px;
        padding: 10px;
        margin-left: 10px;
        margin-right: 10px;
    }
}

/* Even smaller for narrow phones */
@media (max-width: 380px) {
    .doc-actions button {
        font-size: 10px !important;
        padding: 6px 3px !important;
        letter-spacing: -1px;
    }
}

/* Roadmap Styles */
.roadmap-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.roadmap-card {
    background: white;
    padding: 30px 20px;
    border-radius: 20px;
    width: 95%;
    max-width: 900px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    text-align: center;
    color: #333;
}

.roadmap-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 40px;
    color: var(--primary-navy);
}

.roadmap-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin: 60px 0;
}

.roadmap-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 4px;
    background: #eee;
    z-index: 0;
    transform: translateY(-50%);
}

.roadmap-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
}

.step-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ccc;
    margin-bottom: 15px;
    border: 4px solid white;
    box-shadow: 0 0 0 2px #eee;
    transition: all 0.3s;
}

.step-label {
    font-size: 14px;
    font-weight: 700;
    color: #999;
}

/* Status Colors */
.roadmap-step.complete .step-dot {
    background: #007bff;
    /* Blue for Complete */
    box-shadow: 0 0 0 2px #007bff;
}

.roadmap-step.complete .step-label {
    color: #444;
}

.roadmap-step.active .step-dot {
    background: #28a745;
    /* Green for Active */
    box-shadow: 0 0 0 2px #28a745;
    animation: blink-green 1.5s infinite;
}

/* Explicit style for the FINAL step when active/complete */
#step-4.complete .step-dot,
#step-4.active .step-dot {
    background: #007bff !important;
    animation: none !important;
    box-shadow: 0 0 0 2px #007bff !important;
}

#step-4.complete .step-label,
#step-4.active .step-label {
    color: #007bff !important;
}

.roadmap-step.active .step-label {
    color: #28a745;
}

@keyframes blink-green {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.roadmap-close-btn {
    margin-top: 30px;
    padding: 10px 30px;
    background: var(--primary-navy);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 900px) {
    .roadmap-steps {
        flex-direction: column;
        gap: 30px;
        margin: 20px 0;
        align-items: flex-start;
        padding-left: 20%;
    }

    .roadmap-steps::before {
        left: calc(20% + 10px);
        top: 0;
        bottom: 0;
        width: 4px;
        height: auto;
        transform: none;
    }

    .roadmap-step {
        width: auto;
        flex-direction: row;
        gap: 20px;
        justify-content: flex-start;
    }

    .step-dot {
        margin-bottom: 0;
        z-index: 2;
    }

    .step-label {
        text-align: left;
    }
}