@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

#namazj-free-trial-wrapper {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    position: relative;
    box-sizing: border-box;
}

#namazj-free-trial-wrapper * {
    box-sizing: border-box;
}

/* Glassmorphism Cards */
.namazj-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08), 
                0 1px 3px rgba(0, 0, 0, 0.02),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.namazj-card.hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.namazj-card.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Typography */
.namazj-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.namazj-subtitle {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Form Styles */
.namazj-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .namazj-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.namazj-form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.namazj-form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.namazj-select, .namazj-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-family: inherit;
    font-size: 1rem;
    color: #1e293b;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    transition: all 0.2s ease;
}

.namazj-select:hover, .namazj-input:hover {
    border-color: #cbd5e1;
    background-color: #f1f5f9;
}

.namazj-select:focus, .namazj-input:focus {
    border-color: #6366f1;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.namazj-select:disabled, .namazj-input:disabled {
    background-color: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

/* Buttons */
.namazj-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.namazj-btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
    width: 100%;
    margin-top: 1rem;
}

.namazj-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

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

.namazj-btn-primary:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
}

.namazj-btn-secondary {
    background-color: #f1f5f9;
    color: #475569;
}

.namazj-btn-secondary:hover:not(:disabled) {
    background-color: #e2e8f0;
    color: #1e293b;
}

.namazj-btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Error/Notification Boxes */
.namazj-error-box {
    background-color: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.namazj-error-box.hidden {
    display: none;
}

/* Spinner */
.namazj-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: namazj-spin 0.8s linear infinite;
    margin-left: 0.75rem;
}

.namazj-spinner.hidden {
    display: none;
}

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

/* Quiz Header & Badges */
.namazj-quiz-header {
    margin-bottom: 2rem;
}

.namazj-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.namazj-specialty-badge {
    background-color: #e0e7ff;
    color: #4f46e5;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.namazj-question-counter {
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
}

.namazj-progress-container {
    height: 8px;
    background-color: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
}

.namazj-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #818cf8);
    border-radius: 4px;
    transition: width 0.4s ease-out;
}

/* Quiz Content */
.namazj-question-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.namazj-question-description {
    font-size: 0.975rem;
    color: #475569;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Options */
.namazj-options-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.namazj-option-btn {
    text-align: left;
    width: 100%;
    padding: 1.1rem 1.5rem;
    font-family: inherit;
    font-size: 1rem;
    color: #334155;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    outline: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.01);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
}

.namazj-option-btn:hover:not(:disabled) {
    color: #1e293b !important;
    border-color: #cbd5e1 !important;
    background-color: #f8fafc !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
}

.namazj-option-btn:disabled {
    cursor: default;
}

.namazj-option-btn.selected {
    border-color: #6366f1 !important;
    background-color: #f5f3ff !important;
    color: #4f46e5 !important;
    font-weight: 500;
}

.namazj-option-btn.correct {
    border-color: #10b981 !important;
    background-color: #ecfdf5 !important;
    color: #065f46 !important;
}

.namazj-option-btn.incorrect {
    border-color: #2992D7 !important;
    background-color: #f0f4ff !important;
    color: #1e3a8a !important;
}

/* Feedback card */
.namazj-feedback-card {
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    animation: slideIn 0.3s ease-out;
}

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

.namazj-feedback-card.correct {
    background-color: #ecfdf5;
    border: 1px dashed #10b981;
}

.namazj-feedback-card.incorrect {
    background-color: #f0f4ff;
    border: 1px dashed #2992D7;
}

.namazj-feedback-status {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.namazj-feedback-status span {
    margin-right: 0.5rem;
}

.namazj-feedback-card.correct .namazj-status-text {
    color: #047857;
}

.namazj-feedback-card.incorrect .namazj-status-text {
    color: #1e3a8a;
}

.namazj-explanation-content {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #475569;
}

.namazj-explanation-content strong {
    color: #1e293b;
    display: block;
    margin-bottom: 0.25rem;
}

.namazj-quiz-footer {
    display: flex;
    justify-content: space-between;
}

.namazj-quiz-footer button {
    min-width: 140px;
}

/* Paywall Overlay & Modal */
.namazj-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: fadeIn 0.3s ease-out;
}

.namazj-overlay.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.namazj-paywall-modal {
    background: #ffffff;
    border-radius: 28px;
    padding: 3rem 2.5rem;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: scaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.namazj-modal-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.namazj-modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.namazj-modal-text {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 2.25rem;
}

.namazj-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.namazj-btn-checkout {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
    text-decoration: none;
    font-weight: 600;
    width: 100%;
}

.namazj-btn-checkout:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
}

.namazj-btn-link {
    background-color: transparent;
    color: #64748b;
    font-size: 0.95rem;
    text-decoration: underline;
    padding: 0.5rem;
}

.namazj-btn-link:hover {
    color: #475569;
}
