/* =========================================
   CargoSafe - B2B Cargo Insurance Platform
   Global Styles
   ========================================= */

:root {
    --primary-color: #0b3d91; /* Deep Trustworthy Blue */
    --primary-hover: #082d6c;
    --secondary-color: #f7941d; /* Orange for Action */
    --secondary-hover: #e08316;
    
    --text-dark: #1f2937;
    --text-body: #4b5563;
    --text-light: #9ca3af;
    
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --font-main: 'Noto Sans KR', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-body);
    line-height: 1.6;
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.section-padding { padding: 80px 0; }

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    gap: 8px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-primary-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    border-color: var(--primary-color);
}

/* =========================================
   Header
   ========================================= */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-color);
}

.nav ul {
    display: flex;
    gap: 32px;
}

.nav a {
    font-weight: 500;
    color: var(--text-body);
}

.nav a:hover {
    color: var(--primary-color);
}

/* =========================================
   Hero Section
   ========================================= */
.hero-section {
    position: relative;
    padding: 180px 0 120px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-color: var(--primary-color);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1494412574643-ff11b0a5c1c3?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 61, 145, 0.95) 0%, rgba(11, 61, 145, 0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    max-width: 800px;
}

.hero-content h1 {
    color: white;
    font-size: 48px;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 20px;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.8;
}

/* =========================================
   Process Section (How it Works)
   ========================================= */
.process-section {
    background-color: var(--bg-white);
}

.section-title {
    margin-bottom: 60px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(11, 61, 145, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.section-title p {
    font-size: 18px;
    color: var(--text-body);
}

/* 4 Step Process Grid */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.process-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.3s ease;
    text-align: center;
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(11, 61, 145, 0.3);
}

.process-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background-color: rgba(11, 61, 145, 0.05);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    position: relative;
}

.process-icon i {
    font-size: 32px;
}

.step-num {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--secondary-color);
    color: white;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.process-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

.process-card p {
    font-size: 15px;
    color: var(--text-body);
}

/* Connectors for PC */
@media (min-width: 992px) {
    .process-card:not(:last-child)::after {
        content: '\f105'; /* FontAwesome angle-right */
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        top: 80px;
        right: -24px;
        font-size: 24px;
        color: var(--border-color);
    }
}

/* Dashboard Mockup Placeholder */
.mockup-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

.mockup-window {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.mockup-header {
    background: #f1f5f9;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.mockup-url {
    background: white;
    padding: 4px 16px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-light);
    margin-left: 16px;
    flex-grow: 1;
    text-align: center;
}

.mockup-body {
    display: flex;
    height: 400px;
}

.skeleton-nav {
    width: 200px;
    background: #f8fafc;
    border-right: 1px solid var(--border-color);
}

.skeleton-content {
    flex-grow: 1;
    padding: 30px;
    background: #f8fafc;
}

.skeleton-title {
    height: 24px;
    width: 30%;
    background: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 30px;
}

.skeleton-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.skeleton-cards .card {
    height: 100px;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.skeleton-table {
    height: 150px;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

/* =========================================
   CTA Section
   ========================================= */
.cta-section {
    background-color: var(--primary-color);
    color: white;
}

.cta-section h2 {
    color: white;
    font-size: 36px;
    margin-bottom: 40px;
}

.cta-micro-copy {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.notice-box {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
}

.notice-box i {
    color: var(--secondary-color);
    font-size: 20px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta-main {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(247, 148, 29, 0.4);
}

.cta-main:hover {
    background-color: var(--secondary-hover);
}

.cta-sub {
    color: var(--primary-color);
}

/* Pulse animation for main CTA */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse-animation {
    animation: pulse 2s infinite;
}
.pulse-animation:hover {
    animation: none;
    transform: translateY(-2px);
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background-color: #1e293b;
    color: var(--text-light);
    padding: 60px 0 30px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo a {
    color: white;
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom p {
    font-size: 14px;
    margin-bottom: 8px;
}

.copyright {
    margin-top: 20px;
    font-size: 13px;
    opacity: 0.7;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 36px;
    }
    .hero-content p {
        font-size: 18px;
    }
    
    .nav {
        display: none; /* Hide nav on mobile for simplicity in LP */
    }
    
    .process-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .mockup-body {
        height: 250px;
    }
    
    .skeleton-nav {
        display: none;
    }
    
    .skeleton-cards {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
}

/* =========================================
   Quote Calculator Form
   ========================================= */
.quote-calculator {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    color: var(--text-dark);
    margin-top: 40px;
}

.calculator-step {
    padding: 40px;
}

.calculator-step h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.step-desc {
    color: var(--text-body);
    margin-bottom: 30px;
    font-size: 15px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.amount-row .currency-select {
    flex: 0 0 150px;
}

.amount-row .amount-input {
    flex: 1;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.required {
    color: var(--danger-color);
    margin-left: 4px;
}

.optional {
    color: var(--text-light);
    font-weight: 400;
    font-size: 12px;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
    background-color: var(--bg-light);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.1);
    background-color: var(--bg-white);
}

.form-actions {
    margin-top: 40px;
    text-align: center;
}

/* Result Step */
.result-box {
    background-color: rgba(11, 61, 145, 0.05);
    border: 1px solid rgba(11, 61, 145, 0.1);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    margin-bottom: 40px;
}

.price-display {
    margin: 20px 0;
    color: var(--primary-color);
}

.price-display .currency {
    font-size: 20px;
    font-weight: 600;
    margin-right: 8px;
}

.price-display .price {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1px;
}

.price-display .suffix {
    font-size: 20px;
    font-weight: 600;
    margin-left: 4px;
}

.result-notice {
    font-size: 13px;
    color: var(--text-light);
}

/* File Upload */
.upload-section {
    margin-bottom: 30px;
}

.file-upload-box {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px 20px;
    text-align: center;
    background-color: var(--bg-light);
    cursor: pointer;
    transition: all 0.3s;
}

.file-upload-box:hover,
.file-upload-box.dragover {
    border-color: var(--primary-color);
    background-color: rgba(11, 61, 145, 0.02);
}

.file-upload-box i {
    font-size: 40px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.file-upload-box p {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.file-upload-box p strong {
    color: var(--primary-color);
}

.file-limits {
    font-size: 13px;
    color: var(--text-light);
}

.file-list {
    margin-top: 15px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-info i {
    color: var(--primary-color);
}

.file-remove {
    color: var(--danger-color);
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    .result-actions {
        flex-direction: column;
    }
    .calculator-step {
        padding: 24px;
    }
    .price-display .price {
        font-size: 36px;
    }
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-buttons .btn-secondary {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.hero-buttons .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.hero-buttons .btn-secondary,
.hero-buttons .btn-secondary:hover {
    border: none !important;
    background-color: transparent !important;
}

.hero-bg {
    opacity: 0.4 !important;
}

.hero-section::after {
    background: linear-gradient(135deg, rgba(11, 61, 145, 0.8) 0%, rgba(11, 61, 145, 0.5) 100%) !important;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-primary:hover {
    background-color: transparent !important;
    border: 1px solid white !important;
    color: white !important;
}

.hero-buttons .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-primary:hover {
    border: none !important;
}

/* =========================================
   Tabs
   ========================================= */
.cta-tabs {
    display: inline-flex;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 8px;
    margin-bottom: 30px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.tab-btn.active {
    background-color: var(--bg-white);
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.tab-btn:hover:not(.active) {
    color: white;
}
