/* ====================================
   NETRAVIX CYBER RESILIENCE ASSESSMENT
   ==================================== */

:root {
    --primary-color: #03a680;
    --primary-hover: #029372;
    --bg-dark: #0f141a;
    --bg-card: #121922;
    --border-color: #1f2a36;
    --text-primary: #fff;
    --text-secondary: #aaa;
    --text-muted: #999;
}

/* Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

#netravixModal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(6, 10, 14, 0.95);
    backdrop-filter: blur(8px);
    z-index: 999999;
    overflow: auto;
}

.netravix-container {
    width: 720px;
    max-width: 95%;
    margin: 60px auto;
    background: var(--bg-dark);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    color: var(--text-primary);
    font-family: 'Poppins', system-ui, sans-serif;
    animation: fadeIn 0.4s ease;
    line-height: 1.6;
}

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

/* Header & Progress */
.netravix-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.netravix-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 34px;
    cursor: pointer;
    line-height: 1;
    padding: 0 !important;           /* Removed default padding */
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.netravix-close:hover { 
    color: #fff; 
}

/* Progress */
.progress {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 20px;
    margin-top: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--primary-color);
    transition: width 0.4s ease;
}

/* Steps */
.step { display: none; }
.step.active { display: block; }

.step h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    line-height: 1.4;
    color: #ffffff !important;     /* Force white color as requested */
}

/* Answers */
.answers {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.answer {
    padding: 18px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-card);
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-primary);
}

.answer:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(3, 166, 128, 0.1);
}

.answer.selected {
    border-color: var(--primary-color);
    background: rgba(3, 166, 128, 0.08);
    box-shadow: 0 0 20px rgba(3, 166, 128, 0.2);
}

/* Navigation Buttons */
.nav {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

#back, #next {
    padding: 13px 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    flex: 1;
}

#back {
    background: var(--border-color);
    color: var(--text-secondary);
}

#back:hover:not(:disabled) {
    background: #253340;
    color: var(--text-primary);
}

#next {
    background: var(--primary-color);
    color: var(--text-primary);
}

#next:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(3, 166, 128, 0.3);
}

/* Improved Disabled State for Next Button */
#next:disabled {
    background: #1f2a36;
    color: #555;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.65;
}

#next:disabled:hover {
    background: #1f2a36;
    transform: none;
}

/* Form Inputs - Step 11 & 12 */
input, select, textarea {
    width: 100%;
    padding: 16px 18px;
    margin-bottom: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 12px rgba(3, 166, 128, 0.2);
}

/* Placeholder Color */
input::placeholder,
textarea::placeholder,
select option:disabled {
    color: #777;
}

/* Step 11 - Textarea */
#context {
    min-height: 120px;
    resize: vertical;
}

/* Step 12 - Form Fields (Match Answer Style) */
.step[data-step="12"] input,
.step[data-step="12"] select,
.step[data-step="12"] textarea {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.step[data-step="12"] input:hover,
.step[data-step="12"] select:hover,
.step[data-step="12"] textarea:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(3, 166, 128, 0.08);
}

/* Calculate Button */
#calculate {
    width: 100%;
    background: var(--primary-color);
    padding: 16px;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

#calculate:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(3, 166, 128, 0.4);
}

/* Result Styles */
.result-critical   { color: #ff4d4d; }
.result-moderate   { color: #ffc107; }
.result-enterprise { color: var(--primary-color); }


.netravix-cta {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.netravix-cta:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .netravix-container { 
        padding: 25px; 
        margin: 30px auto; 
    }
    .step h3 { font-size: 20px; }
    .nav { flex-direction: column; }
    #next, #back {
        padding: 14px 20px;
    }
}