/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f5f7fa;
    color: #2d3748;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    padding: 0 20px;
}

/* Header */
.header {
    background: white;
    color: #2d3748;
    padding: 40px 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 40px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.header-center {
    flex: 2;
    text-align: center;
}

.header-right {
    flex: 1;
}

/* Start Tour Button in Header */
.start-tour-btn-header {
    background: #0066cc;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 12px 20px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.start-tour-btn-header:hover {
    background: #0052a3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.start-tour-btn-header .tour-icon {
    flex-shrink: 0;
}

/* Logo */
.logo-container {
    margin-bottom: 30px;
}

.logo {
    height: 112px;
    width: auto;
    max-width: 560px;
}

.header h1 {
    font-size: 1.75rem;
    margin-bottom: 12px;
    font-weight: 600;
    color: #000000;
}

.subtitle {
    font-size: 1rem;
    color: #718096;
    margin: 0;
    font-weight: 400;
}

/* Progress Indicator */
.progress-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    border: 1px solid #e2e8f0;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.progress-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a202c;
}

.progress-text {
    font-size: 0.875rem;
    color: #718096;
    font-weight: 500;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #a0aec0;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.step-circle.completed {
    background: #0066cc;
    border-color: #0066cc;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

.step-label {
    font-size: 0.75rem;
    color: #718096;
    text-align: center;
    font-weight: 500;
    line-height: 1.2;
    max-width: 70px;
}

.step-circle.completed + .step-label {
    color: #0066cc;
    font-weight: 600;
}

/* Main Layout */
.main-layout {
    display: flex;
    gap: 0;
    min-height: 500px;
}

.input-column {
    flex: 0 0 400px;
    background: transparent;
    border-right: none;
    padding-bottom: 0;
    padding-right: 20px;
}

.results-column {
    flex: 1;
    background: transparent;
    padding-left: 20px;
}

/* Form Styles */
.calculator-form {
    padding: 0;
}

.form-section {
    background: white;
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.form-section h3 {
    color: #1a202c;
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-bottom: 0;
    border-bottom: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-section h3::before {
    content: counter(section-counter);
    counter-increment: section-counter;
    background: #5ba8db;
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.calculator-form {
    counter-reset: section-counter;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2d3748;
    font-size: 0.875rem;
}

input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: white;
    font-weight: 500;
}

input:focus {
    outline: none;
    border-color: #5ba8db;
    background: white;
    box-shadow: 0 0 0 3px rgba(91, 168, 219, 0.1);
}

input::placeholder {
    color: #8ba2b8;
}

small {
    display: block;
    margin-top: 6px;
    color: #718096;
    font-size: 0.75rem;
    font-weight: 400;
}


/* Readonly Field */
.form-group.readonly {
    margin-top: 20px;
}

.readonly-field {
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2d3748;
    min-height: 52px;
    display: flex;
    align-items: center;
    position: relative;
}

.readonly-field span {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1976d2;
}

/* Calculate Button */
.calculate-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
}

.calculate-btn:active {
    transform: translateY(0);
}

/* Error Message */
.error-message {
    background: #fee;
    color: #c53030;
    padding: 16px;
    border-radius: 8px;
    margin: 20px 30px;
    border-left: 4px solid #c53030;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Results */
.result {
    background: white;
    margin: 0;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
}


.result-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: #1a202c;
}

.result-header h2 {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.result-item {
    background: white;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.result-item.highlight {
    border: 2px solid #5ba8db;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    box-shadow: 0 4px 12px rgba(91, 168, 219, 0.15);
    transform: scale(1.02);
    font-weight: 600;
}

.result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-color: #5ba8db;
}


.result-label {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 5px;
    opacity: 0.8;
}

.result-value {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
}

.result-summary {
    text-align: center;
    padding: 16px;
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.result-summary p {
    font-size: 1.1rem;
    color: #0066cc;
    margin: 0;
}

/* Pipeline Funnel */
.pipeline-funnel {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.pipeline-funnel h3 {
    color: #1a202c;
    margin-bottom: 16px;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
}

.funnel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    max-width: 280px;
    margin: 0 auto;
}

.funnel-step {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f2ff 100%);
    border: 1px solid #cce0ff;
    border-radius: 6px;
    padding: 6px 8px;
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
}

.funnel-step:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.15);
}

.step-1 {
    background: #2196f3;
    border-color: #1976d2;
    width: 45%;
    color: white;
}

.step-2 {
    background: #1976d2;
    border-color: #1565c0;
    width: 55%;
    color: white;
}

.step-3 {
    background: #1565c0;
    border-color: #0d47a1;
    width: 70%;
    color: white;
}

.step-4 {
    background: #0d47a1;
    border-color: #01579b;
    width: 85%;
    color: white;
}

.step-5 {
    background: #01579b;
    border-color: #0d47a1;
    width: 100%;
    color: white;
}

.step-6 {
    background: #2196f3;
    border-color: #1976d2;
    color: white;
    width: 100%;
}

.step-total {
    background: #5ba8db;
    border: 2px solid #4a95c7;
    color: white;
    width: 30%;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(91, 168, 219, 0.4);
}

.step-total:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(91, 168, 219, 0.6);
}

.funnel-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.funnel-number {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}

.funnel-label {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.9;
}

.funnel-value {
    font-size: 0.65rem;
    font-weight: 500;
    opacity: 0.8;
}

.funnel-desc {
    font-size: 0.6rem;
    font-weight: 400;
    opacity: 0.75;
    font-style: italic;
    line-height: 1;
    margin-top: 1px;
}

.funnel-arrow {
    font-size: 1.2rem;
    color: #0066cc;
    font-weight: bold;
    margin: 2px 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}


/* Insights */
.insights {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin: 0;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.insights h3 {
    color: #1a202c;
    margin-bottom: 16px;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: left;
}

.insights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: stretch;
}

.insight-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    min-height: 70px;
    text-align: center;
}

.insight-label {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 8px;
    line-height: 1.2;
}

.insight-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1976d2;
    line-height: 1;
}

/* Export Section */
.export-section {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.export-section h3 {
    color: #1a202c;
    margin-bottom: 16px;
    font-size: 1.25rem;
    font-weight: 600;
}

.export-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.export-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 130px;
    justify-content: center;
}

.pdf-btn {
    background: #1976d2;
    color: white;
}

.pdf-btn:hover {
    background: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.3);
}

.excel-btn {
    background: #0d47a1;
    color: white;
}

.excel-btn:hover {
    background: #01579b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 71, 161, 0.3);
}

/* Integration Section */
.integration-section {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    display: none;
}

.integration-section h3 {
    color: #1a202c;
    margin-bottom: 16px;
    font-size: 1.25rem;
    font-weight: 600;
}



.integration-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.integration-description {
    margin: 0;
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.5;
}

.integration-confirmation {
    display: flex;
    align-items: center;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2d3748;
}

.checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #0066cc;
    cursor: pointer;
}

.checkbox-label {
    cursor: pointer;
}

.integration-action {
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
}

.leads-transfer-info {
    margin: 0;
    font-size: 0.9rem;
    color: #2d3748;
}

.leads-number {
    color: #0066cc;
    font-size: 1.1rem;
    font-weight: 700;
}

.transfer-details {
    margin: 8px 0;
}

.transfer-note {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
    font-style: italic;
    text-align: center;
}

.integration-btn {
    background: #10b981;
    color: white;
}

.button-spacer {
    flex: 1;
    min-width: 130px;
}

.integration-btn:hover {
    background: #059669;
    color: white;
    transform: translateY(-2px);
}

.integration-btn:active {
    transform: translateY(0);
}

.integration-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.integration-btn.secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.2);
}

.integration-btn.secondary:hover {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    box-shadow: 0 6px 20px rgba(100, 116, 139, 0.3);
}

/* Transfer Modal Styles */
.transfer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.transfer-modal-content {
    background: white;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.2s ease-out;
}

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

.transfer-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 12px;
    border-bottom: 1px solid #e5e7eb;
}

.transfer-modal-header h3 {
    margin: 0;
    color: #374151;
    font-size: 1.1rem;
    font-weight: 500;
}

.transfer-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.transfer-modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.transfer-modal-body {
    padding: 16px 20px;
}

.transfer-instruction {
    margin: 0;
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.5;
}

.transfer-instruction strong {
    color: #0ea5e9;
}

.leads-number-display {
    text-align: center;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f7fa 100%);
    border-radius: 8px;
    border: 1px solid #0ea5e9;
}

.leads-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.leads-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0ea5e9;
    margin-bottom: 4px;
}

.leads-label {
    font-size: 0.9rem;
    color: #0369a1;
    font-weight: 500;
}

.instruction-steps h4 {
    margin: 0 0 16px 0;
    color: #374151;
    font-size: 1.1rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

.step-number {
    background: #0ea5e9;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-text {
    flex: 1;
    line-height: 1.5;
    color: #374151;
}

.step-text strong {
    color: #0ea5e9;
    background: #f0f9ff;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.transfer-note {
    margin-top: 20px;
    padding: 12px;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    text-align: center;
    color: #92400e;
    font-size: 0.9rem;
}

.transfer-modal-footer {
    padding: 12px 20px 16px;
    text-align: center;
}

.transfer-modal-btn {
    background: #0ea5e9;
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.transfer-modal-btn:hover {
    background: #0284c7;
}

/* NB Notice Styles */
.nb-notice {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
}

.nb-header {
    margin-bottom: 16px;
    color: #334155;
    font-size: 1.1rem;
}

.nb-instructions {
    margin: 0;
}

.nb-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 12px;
}

.nb-bullet {
    color: #3b82f6;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 1px;
}

.nb-item span:last-child {
    color: #475569;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        border-radius: 0;
    }
    
    .header {
        padding: 24px 20px;
        margin-bottom: 20px;
    }
    
    .progress-container {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .progress-header h3 {
        font-size: 1rem;
    }
    
    .progress-text {
        font-size: 0.8rem;
    }
    
    .progress-steps {
        gap: 4px;
    }
    
    .progress-steps::before {
        left: 12%;
        right: 12%;
    }
    
    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    
    .step-label {
        font-size: 0.65rem;
        max-width: 50px;
    }
    
    .header h1 {
        font-size: 1.875rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    
    .main-layout {
        flex-direction: column;
        gap: 0;
    }
    
    .input-column {
        flex: none;
        border-right: none;
        padding-right: 0;
        margin-bottom: 20px;
    }
    
    .results-column {
        flex: none;
        padding-left: 0;
    }
    
    .form-section,
    .result,
    .improvements,
    .export-section,
    .integration-section,
    .pipeline-funnel {
        padding: 20px;
        margin-bottom: 16px;
    }
    
    .result-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .export-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .export-btn,
    .integration-btn {
        min-width: auto;
        padding: 12px 16px;
    }
    
    .result-item.highlight {
        transform: scale(1);
        border-width: 3px;
    }
    
    .funnel-container {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.6rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .calculator-form,
    .result {
        padding: 12px;
    }
    
    .funnel-container {
        max-width: 220px;
    }
    
}



/* Tour Styles - Fixed Top Left */
.start-tour-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 8px 16px;
    border-radius: 6px;
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: white;
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 102, 204, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    min-width: 80px;
}

.tour-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: white;
}

.start-tour-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.5);
    background: linear-gradient(135deg, #0052a3 0%, #003366 100%);
}

.tour-overlay {
    position: fixed;
    top: 70px;
    left: 20px;
    width: 300px;
    background: transparent;
    z-index: 999;
    pointer-events: auto;
}


.tour-content {
    background: white;
    border-radius: 8px;
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    pointer-events: auto;
}


.tour-header {
    padding: 20px 20px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.tour-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
    line-height: 1.3;
    padding-right: 20px;
}

.tour-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.tour-close:hover {
    background: #f1f5f9;
    color: #1a202c;
}

.tour-body {
    padding: 16px 20px;
}

.tour-body p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #4a5568;
}

.tour-footer {
    padding: 0 20px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tour-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

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

.tour-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.tour-btn-primary {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: white;
}

.tour-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.tour-btn-secondary {
    background: #e2e8f0;
    color: #64748b;
}

.tour-btn-secondary:hover:not(:disabled) {
    background: #cbd5e0;
    color: #2d3748;
}

#tour-progress {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.tour-highlight {
    position: relative;
    z-index: 9999;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.3), 0 0 0 8px rgba(0, 102, 204, 0.1);
    border-radius: 8px !important;
    transition: all 0.3s ease;
    animation: tourPulse 2s infinite;
}

@keyframes tourPulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.3), 0 0 0 8px rgba(0, 102, 204, 0.1);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(0, 102, 204, 0.4), 0 0 0 12px rgba(0, 102, 204, 0.15);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
        padding: 0 15px;
    }
    
    .header-left, .header-right {
        flex: none;
    }
    
    .header-center {
        order: -1;
    }
    
    .start-tour-btn-header {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
    
    .logo {
        height: 80px;
        max-width: 400px;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .start-tour-btn {
        top: 15px;
        left: 15px;
        padding: 6px 12px;
        font-size: 0.75rem;
        min-width: 70px;
        gap: 4px;
    }
    
    .tour-icon {
        width: 14px;
        height: 14px;
    }
    
    .tour-overlay {
        top: 60px;
        left: 15px;
        width: 250px;
    }
    
    .tour-content {
        max-height: 300px;
    }
    
    .tour-header h3 {
        font-size: 0.95rem;
    }
}

/* Animation for form transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result {
    animation: fadeIn 0.6s ease-out;
}

/* Focus styles for accessibility */
button:focus,
input:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    body {
        background: white;
    }
    
    .container {
        box-shadow: none;
        max-width: none;
    }
    
    .export-section {
        display: none;
    }
}

/* BigOcean Footer Styles */
.bigocean-footer {
    margin-top: 60px;
    padding: 30px 0;
    background: #1e293b;
    color: white;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.logo-icon {
    background: #4A90E2;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 24px;
    height: 24px;
}

.footer-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.025em;
}

.footer-text {
    text-align: center;
    color: #a0aec0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.footer-text p {
    margin: 0;
    margin-bottom: 4px;
}

.footer-contact {
    margin-top: 0;
    font-weight: 400;
    color: #cbd5e0;
}

/* Mobile responsiveness for footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-text {
        font-size: 0.85rem;
    }
    
    .footer-brand {
        font-size: 1.3rem;
    }
    
    .logo-icon svg {
        width: 36px;
        height: 36px;
    }
}
