/**
 * Spider Quiz Pro - Public Styles
 */

/* Container */
.sqp-quiz-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Screens */
.sqp-screen {
    display: none;
}

.sqp-screen.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

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

/* Intro Screen */
.sqp-intro-content {
    text-align: center;
    padding: 40px 20px;
}

.sqp-main-header {
    font-size: 2.5em;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #2c3e50;
}

.sqp-intro-description {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Video Section */
.sqp-video-section {
    margin: 40px 0;
}

.sqp-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.sqp-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Benefits/Modules Section */
.sqp-benefits-section {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 8px;
    margin: 40px 0;
}

.sqp-section-header {
    font-size: 2em;
    margin-bottom: 30px;
    text-align: center;
    color: #2c3e50;
}

.sqp-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.sqp-benefit-item {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.sqp-benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.sqp-benefit-header {
    font-size: 1.3em;
    color: #2196F3;
    margin-bottom: 10px;
    font-weight: bold;
}

.sqp-benefit-content {
    color: #666;
    line-height: 1.6;
}

/* Buttons */
.sqp-btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.sqp-btn-primary {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.sqp-btn-primary:hover {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
    transform: translateY(-2px);
}

.sqp-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.sqp-btn-secondary {
    background: white;
    color: #2196F3;
    border: 2px solid #2196F3;
}

.sqp-btn-secondary:hover {
    background: #f5f5f5;
}

/* Progress Bar */
.sqp-progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.sqp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2196F3 0%, #1976D2 100%);
    transition: width 0.3s ease;
}

.sqp-progress-text {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 0.9em;
}

/* Questions */
.sqp-question {
    padding: 20px 0;
}

.sqp-question-text {
    font-size: 1.5em;
    margin-bottom: 30px;
    color: #2c3e50;
    text-align: center;
}

.sqp-answers {
    max-width: 500px;
    margin: 0 auto 30px;
}

.sqp-answer {
    display: block;
    background: white;
    padding: 15px 20px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.sqp-answer:hover {
    border-color: #2196F3;
    background: #f5f9ff;
}

.sqp-answer.selected {
    border-color: #2196F3;
    background: #e3f2fd;
}

.sqp-answer input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.sqp-answer-text {
    display: block;
    font-size: 1em;
    color: #333;
}

.sqp-question-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

/* Lead Capture */
.sqp-lead-content {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.sqp-lead-content h2 {
    font-size: 2em;
    margin-bottom: 15px;
    color: #2c3e50;
}

.sqp-lead-content p {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 30px;
}

.sqp-form-group {
    margin-bottom: 20px;
    text-align: left;
}

.sqp-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.sqp-form-group input {
    width: 100%;
    padding: 12px 15px;
    font-size: 1em;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.2s;
}

.sqp-form-group input:focus {
    outline: none;
    border-color: #2196F3;
}

/* Results */
.sqp-results-content {
    padding: 20px 0;
}

.sqp-chart-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.sqp-profile-result {
    background: #e3f2fd;
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
    border-left: 5px solid #2196F3;
}

.sqp-profile-name {
    font-size: 2em;
    color: #2196F3;
    margin-bottom: 15px;
}

.sqp-profile-description {
    font-size: 1.1em;
    color: #555;
    line-height: 1.6;
}

.sqp-dimension-breakdown {
    margin: 30px 0;
}

.sqp-dimension-breakdown h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #2c3e50;
}

.sqp-dimension-item {
    background: white;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sqp-score {
    font-weight: bold;
    color: #2196F3;
    font-size: 1.2em;
}

/* Legal Links */
.sqp-legal-links {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    font-size: 0.9em;
}

.sqp-legal-links a {
    color: #666;
    text-decoration: none;
    margin: 0 10px;
}

.sqp-legal-links a:hover {
    color: #2196F3;
    text-decoration: underline;
}

.sqp-legal-links .separator {
    color: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
    .sqp-main-header {
        font-size: 1.8em;
    }

    .sqp-section-header {
        font-size: 1.5em;
    }

    .sqp-question-text {
        font-size: 1.2em;
    }

    .sqp-benefits-grid {
        grid-template-columns: 1fr;
    }

    .sqp-btn {
        padding: 12px 30px;
        font-size: 1em;
    }

    .sqp-question-nav {
        flex-direction: column;
    }

    .sqp-question-nav .sqp-btn {
        width: 100%;
    }
}
