:root {
    /* Color Scheme Variables - Nemt at ændre for forskellige partnere */
    --primary-color: #003e52;
    --primary-hover: #002a3a;
    --primary-light: rgba(0, 62, 82, 0.1);
    --primary-shadow: rgba(0, 62, 82, 0.2);
    --accent-color: #003e52;
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --border-color: #e9ecef;
    --text-primary: #000;
    --text-secondary: #666;
    --text-muted: #adb5bd;
    --error-bg: #fff5f5;
    --error-border: #fed7d7;
    --error-color: #e53e3e;
    --success-color: #38a169;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--background-color);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Optimized styles when embedded in iframe */
body.in-iframe {
    background: var(--card-background);
    min-height: auto;
}

body.in-iframe .container {
    max-width: 100%;
    padding: 20px 15px;
}

body.in-iframe .description {
    max-width: 100%;
}

body.in-iframe .disclaimer-content {
    max-width: 100%;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
}

/* Full width for iframe embedding */
@media (max-width: 1000px) {
    .container {
        max-width: 100%;
    }
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 50px;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.logo {
    height: 50px;
    width: auto;
}

header h1 {
    font-size: 2.2rem;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
}

header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Description Styles */
.description {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    width: 100%;
}

.intro {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.6;
}

.intro strong {
    color: var(--primary-color);
    font-weight: 600;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
    margin-top: 25px;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.benefits-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Search Section */
.search-section {
    background: var(--card-background);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--primary-shadow);
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 0;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.input-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--background-color);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--card-background);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.input-group input::placeholder {
    color: var(--text-muted);
}

/* Button Styles */
button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--primary-shadow);
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Result Card Styles */
.result-card {
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--primary-shadow);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.result-header {
    background: var(--primary-color);
    color: white;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.quote-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Funding Offer Styles */
.funding-offer {
    padding: 40px;
}

.offer-summary {
    margin-bottom: 40px;
    padding: 30px;
    background: var(--background-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.summary-item {
    flex: 1;
    text-align: center;
    padding: 20px;
    background: var(--card-background);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    min-width: 0;
}

.summary-item.total {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.summary-item .label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.summary-item.total .label {
    color: rgba(255, 255, 255, 0.9);
}

.summary-item .value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.summary-item.total .value {
    color: white;
}

/* Payment Schedule */
.payment-schedule {
    margin-bottom: 40px;
}

.payment-schedule h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.4rem;
    font-weight: 600;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.payment-item {
    background: var(--background-color);
    padding: 25px 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.payment-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--primary-shadow);
}

.payment-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 500;
}

.payment-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.doc-fee {
    display: block;
    font-size: 0.8rem;
    color: #dc3545;
    font-weight: 600;
    margin-top: 8px;
    opacity: 0.9;
}

/* Offer Footer */
.offer-footer {
    text-align: center;
    padding: 30px;
    background: var(--background-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.offer-footer p {
    margin: 0 0 25px 0;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--card-background);
    color: var(--primary-color);
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* Error Card */
.error-card {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.error-card h3 {
    color: var(--error-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.error-card p {
    color: var(--text-secondary);
    margin: 0;
}

/* Disclaimer Footer */
.disclaimer {
    margin-top: 60px;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    background: var(--background-color);
}

.disclaimer-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.disclaimer-content h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.disclaimer-content p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    .logo-section {
        flex-direction: column;
        gap: 15px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .search-section {
        padding: 30px 20px;
    }
    
    .input-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .result-header {
        padding: 25px 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .funding-offer {
        padding: 25px 20px;
    }
    
    .offer-summary {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .summary-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .summary-item {
        width: 100%;
    }
    
    .payment-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

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

.modal-container {
    background: var(--card-background);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: auto;
    height: auto;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-body {
    padding: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--background-color);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--card-background);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.form-actions .btn-primary,
.form-actions .btn-secondary {
    width: auto;
    padding: 12px 24px;
    font-size: 14px;
}

/* Notification Styles */
.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.notification-overlay.active {
    opacity: 1;
    visibility: visible;
}

.notification-container {
    background: var(--card-background);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s ease;
}

.notification-overlay.active .notification-container {
    transform: scale(1) translateY(0);
}

.notification-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 600;
}

.notification-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: auto;
    height: auto;
    transition: color 0.3s ease;
}

.notification-close:hover {
    color: var(--primary-color);
}

.notification-body {
    padding: 30px;
    text-align: center;
}

.notification-body p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive Modal Styles */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header,
    .modal-body {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn-primary,
    .form-actions .btn-secondary {
        width: 100%;
    }
    
    .notification-container {
        width: 95%;
        margin: 20px;
    }
    
    .notification-header,
    .notification-body {
        padding: 20px;
    }
}