/* Global Styles */
:root {
    --primary-color: #ffffff;
    --primary-dark: #A57C00;
    --primary-light: #D8BD71;
    --gold-accent: #CEB64C;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --charcoal-dark: #ffffff;
    --charcoal: #2F2F2F;
    --golden-yellow:#d4af37;
    --charcoal-light: #3A4244;
    --text-dark: #111;
    --text-white: #ffffff;
    --text-light: #dbdbdb;
    --bg-light: #f5f5f5;
    --bg-dark: #2F2F2F;
    --border-color: #ddd;
    --button-hover:#575757;
    --shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 8px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 30px -5px rgba(0, 0, 0, 0.25), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #1a1a1a;
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Quiz Container */
.quiz-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Screen Management */
.screen {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.screen.active {
    display: block;
}

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

/* Welcome Screen */
.welcome-content {
    background: #2a2a2a;
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: var(--shadow-xl);
    text-align: center;
    border: 2px solid #3a3a3a;
}

.quiz-icon {
    width: 80px;
    height: 80px;
    background: #d4af37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: var(--shadow-lg);
}

.quiz-icon i {
    font-size: 36px;
    color: white;
}

/* Rancelab Logo */
.brand-logo {
    margin-bottom: 35px;
    text-align: center;
}

.logo-text {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.logo-rance {
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.logo-lab {
    color: var(--text-white);
    /*background: linear-gradient(135deg, var(--primary-color), var(--gold-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;*/
}

.logo-tagline {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.quiz-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 15px;
    line-height: 1.2;
}

.quiz-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 35px;
    line-height: 1.6;
}

.instructions {
    background: #1e1e1e;
    border: 2px solid #3a3a3a;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 35px;
    text-align: left;
}

.instructions h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--golden-yellow);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 3px solid var(--golden-yellow);
    padding-bottom: 10px;
}

.instructions h3 i {
    color: var(--primary-color);
}

.instructions ul {
    list-style: none;
    padding: 0;
}

.instructions li {
    padding: 8px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-light);
}

.instructions li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.start-btn {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary-color), var(--gold-accent));
    border: none;
    box-shadow: var(--shadow-md);
    color: var(--charcoal-dark);
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.start-btn small {
    display: block;
    font-size: 12px;
    opacity: 0.9;
    font-weight: 400;
}

/* Quiz Screen */
#quiz-screen .container {
    max-width: 900px;
}

.quiz-header-logo {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(42, 42, 42, 0.8);
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.progress-section {
    background: rgba(42, 42, 42, 0.8);
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-md);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
}

.progress {
    height: 10px;
    border-radius: 10px;
    background: #3a3a3a;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background:var(--golden-yellow);
    transition: width 0.4s ease;
    border-radius: 10px;
}

.question-card {
    background: rgba(42, 42, 42, 0.8);
    border: 1px solid #3a3a3a;
    border-radius: 16px;
    padding: 35px 30px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-lg);
}

.question-text {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 30px;
    line-height: 1.4;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-card {
    background: var(--text-white);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.option-card:hover {
    border-color: var(--primary-color);
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.option-card.selected {
    background: #cdf9cf;
    /*border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(190, 162, 86, 0.1), rgba(206, 182, 76, 0.1));
    box-shadow: var(--shadow-md);*/
}

.option-label {
    width: 40px;
    height: 40px;
    border: 2px solid var(--golden-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-dark);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.option-card.selected .option-label {
    border: 2px solid #45a049;
}

.option-text {
    flex: 1;
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.5;
}

.option-check {
    width: 24px;
    height: 24px;
    color: #45a049;
    font-size: 24px;
    opacity: 0;
    transition: all 0.3s ease;
}

.option-card.selected .option-check {
    opacity: 1;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.navigation-buttons .btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
	justify-content: center;
}

.navigation-buttons .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.navigation-buttons .btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Results Screen */
.results-content {
    background: #1e1e1e;
	border: 2px solid #3a3a3a;
    border-radius: 20px;
    padding: 50px 30px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.results-header-logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--golden-yellow);
}

.results-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.5s ease-out;
}

.results-icon.critical {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.results-icon.high {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.results-icon.moderate {
    background: #d4af37;
}

.results-icon.excellent {
    background: linear-gradient(135deg, #10b981, #059669);
}

.results-icon i {
    font-size: 48px;
    color: white;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.results-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 30px;
}

.score-display {
    margin-bottom: 40px;
}

.score-circle {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    padding: 30px;
    border-radius: 20px;
    border: 3px solid var(--golden-yellow);
}

.score-number {
    font-size: 72px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.score-total {
    font-size: 32px;
    color: var(--text-light);
}

.results-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.result-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 25px;
    text-align: left;
}

.result-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #46a34a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-card h3 i {
    color: var(--primary-color);
}

.result-card p {
    font-size: 16px;
    color:var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

.stage-card h3 i {
    color: #2387c4;
}

.status-card h3 i {
    color: #10b981;
}

.risk-card h3 i {
    color: #f59e0b;
}

.step-card h3 i {
    color: var(--gold-accent);
}

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

.action-buttons .btn {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.action-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Powered By Footer */
.powered-by {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--golden-yellow);
    text-align: center;
}

.powered-by p {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
}

.footer-tagline {
    font-size: 10px !important;
    opacity: 0.8;
}

/* Request Advice Button */
.btn-advice {
    background: var(--golden-yellow);
    border: none;
    color: var(--charcoal-dark);
    font-weight: 600;
}

.btn-advice:hover {
    background: var(--golden-yellow);
    color: var(--charcoal-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Lead Form Container */
.lead-form-container {
    margin-top: 40px;
    padding: 35px;
    background: var(--bg-light);
    border-radius: 16px;
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.lead-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.lead-form-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.lead-subtitle {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.5;
}

/* Success and Error Messages */
.success-message {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    border-left: 4px solid #10b981;
    color: #047857;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-weight: 500;
}

.error-message {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
    border-left: 4px solid #ef4444;
    color: #b91c1c;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-weight: 500;
}

/* Lead Form Styles */
.lead-form {
    max-width: 100%;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-group input,
.form-group select {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
    color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(190, 162, 86, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

/* Honeypot (hidden spam trap) */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
}

/* Captcha Section */
.captcha-section {
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.captcha-question {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    flex: 1;
}

.captcha-input {
    width: 80px;
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
}

.captcha-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(190, 162, 86, 0.1);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 15px 30px;
    background: var(--golden-yellow);
    color: var(--charcoal-dark);
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.submit-btn:hover:not(:disabled) {
    background: var(--golden-yellow);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-note {
    font-size: 13px;
    text-align: center;
    margin-top: 15px;
    color: var(--text-dark);
    line-height: 1.5;
}

/* Responsive Design - Mobile First */
@media (max-width: 576px) {
    .quiz-container {
        padding: 15px;
    }

    .welcome-content {
        padding: 30px 20px;
    }

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

    .quiz-subtitle {
        font-size: 16px;
    }

    .instructions {
        padding: 20px;
    }

    .start-btn {
        width: 100%;
        justify-content: center;
    }

    .question-card {
        padding: 25px 20px;
    }

    .question-text {
        font-size: 20px;
    }

    .option-card {
        padding: 15px;
    }

    .option-label {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .option-text {
        font-size: 14px;
    }

    .navigation-buttons {
        flex-direction: column-reverse;
    }

    .navigation-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .results-content {
        padding: 35px 20px;
    }

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

    .score-circle {
        padding: 20px;
    }

    .score-number {
        font-size: 56px;
    }

    .score-total {
        font-size: 24px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .lead-form-container {
        padding: 25px 20px;
    }
    
    .lead-form-header h2 {
        font-size: 22px;
    }
    
    .lead-subtitle {
        font-size: 14px;
    }
    
    .captcha-section {
        flex-direction: column;
        text-align: center;
    }
    
    .captcha-input {
        width: 100%;
        max-width: 150px;
    }
}

@media (min-width: 768px) {
    .results-details {
        grid-template-columns: repeat(2, 1fr);
    }

    .navigation-buttons .btn {
        min-width: 150px;
    }
    
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .question-text {
        font-size: 26px;
    }

    .option-text {
        font-size: 17px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .quiz-container {
        padding: 0;
    }

    .results-content {
        box-shadow: none;
        padding: 20px;
    }

    .action-buttons {
        display: none;
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.btn-primary {
	background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: #fff;
    border: none;   
    font-weight: 600;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: #fff;
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

.btn-outline-secondary {
    border-color: var(--border-color);
    color: var(--text-light);
}

.btn-outline-secondary:hover {
    background: var(--button-hover);
    border-color: var(--text-light);
    color: white;
}
