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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2D3748;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.3);
    overflow: hidden;
}

/* Header */
.header {
    background: linear-gradient(135deg, #123B73 0%, #0F172A 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.logo {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.logo-sub {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 400;
}

.tagline {
    font-size: 16px;
    margin-top: 16px;
    opacity: 0.95;
    font-weight: 500;
}

/* Content Sections */
.content {
    padding: 40px 30px;
}

.section {
    display: none;
}

.section.active {
    display: block;
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section Headers */
.section-header {
    margin-bottom: 32px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #123B73;
    margin-bottom: 8px;
}

.section-desc {
    font-size: 16px;
    color: #64748B;
    line-height: 1.5;
}

/* Question Card */
.question {
    margin-bottom: 28px;
}

.question-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 12px;
}

.question-sub {
    font-size: 13px;
    color: #64748B;
    margin-bottom: 8px;
}

/* Input Styles */
input[type="number"],
input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

input[type="number"]:focus,
input[type="text"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: #38BDF8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-item:hover {
    border-color: #38BDF8;
    background: #F0F9FF;
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #38BDF8;
}

.checkbox-item {
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    flex: 1;
}

/* Range Slider */
input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #E2E8F0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #38BDF8;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.4);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #38BDF8;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.4);
}

.slider-value {
    display: inline-block;
    background: #EFF6FF;
    color: #0284C7;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    margin-top: 8px;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}

.result-card {
    background: linear-gradient(135deg, #EFF6FF 0%, #F0F9FF 100%);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #38BDF8;
}

.result-label {
    font-size: 13px;
    color: #64748B;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.result-value {
    font-size: 32px;
    font-weight: 700;
    color: #0284C7;
}

.result-sub {
    font-size: 12px;
    color: #64748B;
    margin-top: 6px;
}

/* Single Column Result */
.result-full {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%);
    border-left-color: #10B981;
}

.result-full .result-value {
    color: #059669;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

button {
    flex: 1;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(56, 189, 248, 0.4);
}

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

.btn-secondary {
    background: #F1F5F9;
    color: #123B73;
    border: 2px solid #E2E8F0;
}

.btn-secondary:hover {
    background: #E2E8F0;
    border-color: #CBD5E1;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 4px;
    background: #E2E8F0;
    border-radius: 2px;
    margin-bottom: 24px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #38BDF8 0%, #0284C7 100%);
    transition: width 0.3s ease;
}

/* Success Message */
.success-message {
    background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%);
    border-left: 4px solid #10B981;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.success-message .check-icon {
    color: #10B981;
    font-size: 24px;
    margin-bottom: 8px;
}

.success-message h3 {
    color: #047857;
    margin-bottom: 6px;
    font-size: 16px;
}

.success-message p {
    color: #64748B;
    font-size: 14px;
}

/* Email Form */
.email-form {
    margin: 24px 0;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 8px;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #E2E8F0;
    flex-wrap: wrap;
}

.badge {
    font-size: 12px;
    color: #64748B;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.badge-icon {
    color: #10B981;
    font-weight: bold;
}

/* Footer */
.footer {
    background: #F8FAFC;
    padding: 24px 30px;
    text-align: center;
    border-top: 1px solid #E2E8F0;
}

.footer-text {
    font-size: 12px;
    color: #64748B;
    line-height: 1.6;
}

.footer-link {
    color: #0284C7;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
    .content {
        padding: 30px 20px;
    }

    .section-title {
        font-size: 24px;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .result-full {
        grid-column: 1;
    }

    .button-group {
        flex-direction: column;
    }

    .trust-badges {
        flex-direction: column;
        gap: 12px;
    }
}

/* Step Counter */
.step-counter {
    font-size: 13px;
    color: #64748B;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.modal {
  display: none; 
  position: fixed; 
  z-index: 1000; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  border-radius: 8px;
  width: 50%;
  text-align: center;
}

.close,#last-modal-btn{
    padding: 10px 20px;
}

.text-danger{
    color: red;
}
@media print {

    /* Hide everything */
    body * {
        visibility: hidden;
        padding: 0;
        background: none !important; /* remove page gradient */
        max-height: 700px !important;
    }

    /* Show only the print template */
    #print-template,
    #print-template * {
        visibility: visible !important;
    }

    /* Force layout */
    #print-template {
        display: block !important;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 40px;
        font-family: Arial, sans-serif;
        background: #fff;
    }
     #print-template h1,
    #print-template h2,
    #print-template p,
    #print-template ul,
    #print-template ol {
        page-break-inside: avoid;
    }
     html, body {
        background: #fff !important;
    }
}