/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #6366f1;
    --primary-dark: #5856eb;
    --secondary: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
    font-weight: 400;
}

/* Custom Alert Modal */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    
    /* Mobile fixes */
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    width: 100vw;
    overflow: hidden;
}

.custom-alert-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
    .custom-alert-overlay {
        padding: 20px;
        align-items: flex-start;
        padding-top: 25vh; /* Position modal in upper half */
    }
    
    .custom-alert {
        width: 95%;
        padding: 24px;
        margin-top: 0;
    }
    
    .custom-alert-icon {
        font-size: 40px;
        margin-bottom: 12px;
    }
    
    .custom-alert h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .custom-alert p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .custom-alert-buttons {
        flex-direction: column;
    }
    
    .custom-alert-btn {
        width: 100%;
        padding: 14px 24px;
    }
}

.custom-alert {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    
    /* Mobile positioning fixes */
    max-height: 80vh;
    max-height: 80dvh;
    overflow-y: auto;
    position: relative;
    margin: auto;
}

.custom-alert-overlay.show .custom-alert {
    transform: scale(1);
}

.custom-alert-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--error);
}

.custom-alert h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.custom-alert p {
    color: var(--gray-600);
    margin-bottom: 24px;
    line-height: 1.5;
}

.custom-alert-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.custom-alert-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 14px;
}

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

.custom-alert-btn.secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.custom-alert-btn:hover {
    transform: translateY(-1px);
}


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

/* Navigation */
.navbar {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: 16px 0;
}

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

.logo {
    display: inline-block;
    width: 300px;
    height: auto;
    text-decoration: none;
    margin-top:10px!important;
}

.logo svg {
    width: 100%;
    height: auto;
}

.phone-input-container {
    display: flex;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.phone-input-container.focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.country-select {
    background: #f8fafc;
    border: none;
    padding: 16px 12px;
    font-size: 14px;
    min-width: 120px;
    cursor: pointer;
    outline: none;
}

.phone-number {
    border: none !important;
    padding: 16px !important;
    flex: 1;
    font-size: 16px;
    outline: none;
    background: white;
    border-radius: 0 !important;
}

.validation-message {
    font-size: 12px;
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.validation-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.validation-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}


/* Demo Container */
.demo-container {
    min-height: calc(100vh - 122.8px);
    background: linear-gradient(135deg, #e0e7ff 0%, #f8fafc 100%);
    padding: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main Card */
.main-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
    position: relative;
    margin-top:150px;
    margin-bottom:auto;
}

/* Progress Section */
.progress-section {
    background: #f8fafc;
    padding: 24px 40px;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.progress-indicator {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 90%;
}

.progress-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    min-width: 30px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 20%;
}

/* Back Button Top */
.back-button-top {
    position: absolute;
    top: 24px;
    right: 40px;
    background: white;
    border: 1px solid #e5e7eb;
    color: var(--gray-600);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.back-button-top:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Card Content */
.card-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
      grid-template-areas: "left right";

    min-height: 600px;
}


/* Left Side */
.left-side {
    grid-area: left;
    background: #f8fafc;
    padding: 60px 40px;
    display: flex;
    align-items: center;
    position: relative;
}

.demo-step {
    display: none;
    width: 100%;
}

.demo-step.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.demo-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 32px;
}

.demo-subtitle {
    font-size: 18px;
    color: var(--gray-600);
    margin-bottom: 32px;
    line-height: 1.5;
}

.highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.demo-features {
    margin-bottom: 40px;
}

.demo-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.feature-number {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.demo-promise {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(16, 185, 129, 0.1);
    padding: 16px 20px;
    border-radius: 12px;
    color: var(--success);
    font-weight: 500;
}

.promise-icon {
    font-size: 20px;
}

/* Right Side */
.right-side {
    grid-area: right;
    background: white;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.right-content {
    width: 100%;
}

.right-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 32px;
    text-align: center;
}

.step-description {
    color: var(--gray-600);
    margin-bottom: 32px;
    text-align: center;
    line-height: 1.5;
}

/* Input Groups */
.input-group {
    margin-bottom: 24px;
    position: relative;
}

.search-input {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 16px;
    font-size: 16px;
    color: var(--gray-400);
    z-index: 2;
}

.demo-input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: white;
}

.demo-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.demo-input:not(.search-input .demo-input) {
    padding-left: 16px;
}

.input-info {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 8px;
}

.error-message {
    color: var(--error);
    font-size: 12px;
    margin-top: 8px;
}

/* Buttons */
.demo-continue {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 16px;
}

.demo-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.back-button {
    background: none;
    border: none;
    color: var(--gray-500);
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 24px;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.back-button:hover {
    color: var(--primary);
}


/* Training Progress */
.training-progress {
    margin: 32px 0;
}

.training-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.training-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.training-icon.pending {
    background: #e5e7eb;
    color: var(--gray-400);
}

.training-icon.loading {
    background: var(--primary);
    color: white;
    animation: spin 1s linear infinite;
}

.training-icon.completed {
    background: var(--success);
    color: white;
}

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

/* Success States */
.call-status {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
    margin-top: 24px;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 rgba(16, 185, 129, 0); }
}

.cancel-link {
    text-align: center;
    margin-bottom: 32px;
}

.cancel-link a {
    color: var(--gray-500);
    text-decoration: underline;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.cancel-link a:hover {
    color: var(--error);
}

.success-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 24px;
}

/* Action Buttons */
.next-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.action-btn {
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
    border: none;
}

.primary-action {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.primary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.secondary-action {
    background: white;
    color: var(--primary);
    border: 2px solid #e5e7eb;
}

.secondary-action:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.tertiary-action {
    background: #f8fafc;
    color: var(--gray-600);
    border: 1px solid #e5e7eb;
}

.tertiary-action:hover {
    background: #f3f4f6;
}

.error-action {
    background: #fef2f2;
    color: var(--error);
    border: 1px solid #fecaca;
}

.error-action:hover {
    background: #fee2e2;
    border-color: var(--error);
}

.modal-actions {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.modal-cta {
    width: 100%;
    padding: 18px 24px !important;
    font-size: 16px !important;
}
.trust-message {
    font-size: 12px;
    margin-top: 40px !important;
    color: var(--gray-500);
    text-align: left;

    margin-bottom: 0px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

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

.modal-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray-400);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f3f4f6;
    color: var(--gray-600);
}

.fact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
}

.fact-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.fact-text strong {
    color: var(--primary);
    font-weight: 700;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    
    .navbar{
          text-align: center !important;
    }
    
    .nav-container {
  display: inline-block!important;  /* container krimpt om logo */}
    
    
    .logo{width:200px !important; margin: 0 auto;}
    
    #content4 h3{margin-top:30px!important;}
    
    
    .demo-container {
        padding: 40px 0px 40px;
    }

    .main-card {
        margin: 0 16px;
    }

    .card-content {
        grid-template-columns: 1fr;
    grid-template-areas:
      "right"
      "left";
    }

    .left-side,
    .right-side {
        padding: 40px 24px;
    }

    .progress-section {
        padding: 20px 24px;
    }

    .back-button-top {
        top: 20px;
        right: 24px;
    }

    .demo-title {
        font-size: 28px;
    }

    .right-content h3 {
        font-size: 20px;
    }

    .modal-content {
        padding: 24px;
        margin: 20px;
    }
}