/**
 * Personality Test Pro - Frontend CSS
 */

/* Container */
.ptp-test-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Progress Bar */
.ptp-progress-wrapper {
    margin-bottom: 30px;
}

.ptp-progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.ptp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.ptp-progress-text {
    text-align: center;
    margin-top: 8px;
    color: #666;
    font-size: 14px;
}

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

.ptp-screen.active {
    display: block;
}

/* Start Screen */
.ptp-start-content {
    text-align: center;
    padding: 40px 20px;
}

.ptp-start-content h2 {
    font-size: 32px;
    margin-bottom: 16px;
    color: #1f2937;
}

.ptp-start-content p {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 30px;
}

.ptp-test-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.ptp-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
}

.ptp-info-icon {
    font-size: 20px;
}

/* Buttons */
.ptp-btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ptp-btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.ptp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.ptp-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.ptp-btn-secondary:hover {
    background: #e5e7eb;
}

.ptp-btn-premium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    display: inline-block;
    text-decoration: none;
}

.ptp-btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    color: white;
}

/* Questions */
.ptp-section-title {
    text-align: center;
    font-size: 24px;
    color: #6366f1;
    margin-bottom: 30px;
}

.ptp-question {
    background: #f9fafb;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
}

.ptp-question-number {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 12px;
}

.ptp-question-text {
    font-size: 20px;
    color: #1f2937;
    line-height: 1.5;
    margin-bottom: 24px;
}

/* Answer Options */
.ptp-answer-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ptp-answer-option {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ptp-answer-option:hover {
    border-color: #6366f1;
    background: #f5f3ff;
}

.ptp-answer-option input {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    accent-color: #6366f1;
}

.ptp-answer-option input:checked + .ptp-option-text {
    color: #6366f1;
    font-weight: 600;
}

.ptp-answer-option:has(input:checked) {
    border-color: #6366f1;
    background: #f5f3ff;
}

/* Email Screen */
.ptp-email-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 400px;
    margin: 0 auto;
}

.ptp-email-content h3 {
    font-size: 28px;
    margin-bottom: 12px;
}

.ptp-email-form {
    margin-top: 30px;
}

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

.ptp-form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.ptp-form-group input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: border-color 0.2s ease;
}

.ptp-form-group input:focus {
    outline: none;
    border-color: #6366f1;
}

.ptp-privacy-note {
    margin-top: 20px;
    font-size: 14px;
    color: #9ca3af;
}

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

.ptp-results-content h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
}

.ptp-result-card {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 24px;
}

.ptp-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.ptp-result-label {
    font-size: 14px;
    font-weight: 600;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ptp-result-type {
    font-size: 32px;
    font-weight: 700;
    color: #4338ca;
}

.ptp-result-name {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.ptp-result-brief {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.6;
}

/* Dimension Bars */
.ptp-dimension-bars {
    margin-top: 24px;
}

.ptp-dimension-bar {
    margin-bottom: 16px;
}

.ptp-dimension-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 6px;
}

.ptp-dimension-track {
    height: 10px;
    background: #e5e7eb;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.ptp-dimension-fill {
    height: 100%;
    background: #6366f1;
    border-radius: 5px;
}

/* Enneagram Details */
.ptp-enneagram-details {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.ptp-detail-item {
    display: flex;
    margin-bottom: 12px;
}

.ptp-detail-label {
    font-weight: 600;
    color: #6b7280;
    width: 120px;
}

.ptp-detail-value {
    color: #1f2937;
}

/* Premium Upsell */
.ptp-premium-upsell {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin-top: 30px;
}

.ptp-premium-upsell h3 {
    font-size: 24px;
    color: #92400e;
    margin-bottom: 20px;
}

.ptp-premium-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    text-align: left;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.ptp-premium-features li {
    padding: 8px 0;
    color: #78350f;
    font-size: 15px;
}

/* Payment Box */
.ptp-payment-box {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
    text-align: left;
}

.ptp-payment-box h4 {
    margin: 0 0 16px 0;
    text-align: center;
    color: #1f2937;
}

.ptp-payment-info {
    background: #f3f4f6;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.ptp-payment-info p {
    margin: 8px 0;
    font-size: 14px;
    color: #374151;
}

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

.ptp-payment-form label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    font-size: 14px;
}

.ptp-payment-form input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
}

.ptp-payment-form input:focus {
    outline: none;
    border-color: #f59e0b;
}

.ptp-payment-form input[readonly] {
    background: #fef3c7;
    font-weight: bold;
    font-family: monospace;
    letter-spacing: 2px;
}

.ptp-payment-form small {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 12px;
}

.ptp-payment-submit {
    width: 100%;
    margin-top: 8px;
}

.ptp-payment-note {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    margin-top: 16px;
}

.ptp-price-display {
    font-size: 24px;
    font-weight: bold;
    color: #d97706;
}

/* Navigation */
.ptp-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

/* Loading */
.ptp-loading {
    text-align: center;
    padding: 60px 20px;
}

.ptp-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e7eb;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: ptp-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes ptp-spin {
    to { transform: rotate(360deg); }
}

/* Results Lookup */
.ptp-results-lookup {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.ptp-lookup-form {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.ptp-lookup-form input {
    flex: 1;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
}

.ptp-lookup-error {
    margin-top: 20px;
    padding: 16px;
    background: #fef2f2;
    border-radius: 8px;
    color: #dc2626;
}

/* Responsive */
@media (max-width: 600px) {
    .ptp-test-container {
        padding: 15px;
    }
    
    .ptp-question {
        padding: 20px;
    }
    
    .ptp-question-text {
        font-size: 18px;
    }
    
    .ptp-result-type {
        font-size: 28px;
    }
    
    .ptp-lookup-form {
        flex-direction: column;
    }
    
    .ptp-test-info {
        flex-direction: column;
        gap: 12px;
    }
}
