/* =============================================
   Shortcode Styles: CTA, Lead Magnet, Quiz, Related
   ============================================= */

/* --- CTA Shortcode (inline in content) --- */
.shortcode-cta {
    margin: 32px 0;
}

/* --- Lead Magnet --- */
.shortcode-lead-magnet {
    margin: 36px 0;
    border: 1px solid rgba(227, 195, 122, 0.3);
    border-radius: 16px;
    background: linear-gradient(145deg, #faf8f4, #f5f0e4);
    overflow: hidden;
    display: flex;
    gap: 0;
    box-shadow: 0 4px 20px rgba(46, 35, 7, 0.06);
}

.sc-lm__cover {
    flex-shrink: 0;
    width: 180px;
}

.sc-lm__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sc-lm__body {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.sc-lm__title {
    font-family: var(--font-display, 'Cormorant Garamond', serif);
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-dark, #232228);
    line-height: 1.3;
}

.sc-lm__desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.sc-lm__form-row {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.sc-lm__input {
    flex: 1;
    border: 1.5px solid rgba(47, 36, 20, 0.15);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #2e2418;
    background: #fff;
    transition: border-color 0.2s;
}

.sc-lm__input:focus {
    outline: none;
    border-color: #cfa74c;
    box-shadow: 0 0 0 3px rgba(207, 167, 76, 0.15);
}

.sc-lm__btn {
    background: linear-gradient(135deg, #3a2e1a 0%, #2f2414 100%);
    color: #f8f2e5;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.sc-lm__btn:hover {
    opacity: 0.88;
}

.sc-lm__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sc-lm__msg {
    font-size: 14px;
    line-height: 1.5;
    padding: 10px 0 0;
}

.sc-lm__msg.success {
    color: #2f7d32;
}

.sc-lm__msg.error {
    color: #b23a2f;
}

.sc-lm__msg a {
    color: #8b6914;
    font-weight: 600;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .shortcode-lead-magnet {
        flex-direction: column;
    }
    .sc-lm__cover {
        width: 100%;
        max-height: 180px;
    }
    .sc-lm__body {
        padding: 16px;
    }
    .sc-lm__form-row {
        flex-direction: column;
    }
}

/* --- Quiz --- */
.shortcode-quiz {
    margin: 36px 0;
    border: 1px solid rgba(227, 195, 122, 0.3);
    border-radius: 16px;
    background: linear-gradient(145deg, #faf8f4, #f5f0e4);
    padding: 24px;
    box-shadow: 0 4px 20px rgba(46, 35, 7, 0.06);
}

.sc-quiz__header {
    margin-bottom: 20px;
}

.sc-quiz__title {
    font-family: var(--font-display, 'Cormorant Garamond', serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text-dark, #232228);
    line-height: 1.3;
    margin-bottom: 6px;
}

.sc-quiz__desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 12px;
}

.sc-quiz__progress {
    height: 4px;
    background: rgba(35, 34, 40, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.sc-quiz__progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary, #e3c37a), #cfa74c);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.sc-quiz__counter {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
    text-align: right;
}

.sc-quiz__question {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-dark, #232228);
    margin-bottom: 14px;
    line-height: 1.4;
}

.sc-quiz__options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sc-quiz__option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1.5px solid rgba(47, 36, 20, 0.1);
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: var(--color-text-dark, #232228);
}

.sc-quiz__option:hover {
    border-color: rgba(227, 195, 122, 0.4);
    background: rgba(227, 195, 122, 0.06);
}

.sc-quiz__option input {
    accent-color: var(--color-primary, #e3c37a);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.sc-quiz__option input:checked + span {
    font-weight: 600;
}

.sc-quiz__option:has(input:checked) {
    border-color: var(--color-primary, #e3c37a);
    background: rgba(227, 195, 122, 0.1);
}

.sc-quiz__nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
}

.sc-quiz__prev,
.sc-quiz__next {
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.sc-quiz__prev {
    background: rgba(35, 34, 40, 0.06);
    color: var(--color-text-dark, #232228);
}

.sc-quiz__prev:hover {
    background: rgba(35, 34, 40, 0.12);
}

.sc-quiz__next {
    background: linear-gradient(135deg, #3a2e1a 0%, #2f2414 100%);
    color: #f8f2e5;
    margin-left: auto;
}

.sc-quiz__next:hover {
    opacity: 0.88;
}

.sc-quiz__final .sc-quiz__question {
    text-align: center;
    font-size: 18px;
}

.sc-quiz__form-row {
    display: flex;
    gap: 8px;
    max-width: 420px;
    margin: 0 auto;
}

.sc-quiz__input {
    flex: 1;
    border: 1.5px solid rgba(47, 36, 20, 0.15);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #2e2418;
    background: #fff;
    transition: border-color 0.2s;
}

.sc-quiz__input:focus {
    outline: none;
    border-color: #cfa74c;
    box-shadow: 0 0 0 3px rgba(207, 167, 76, 0.15);
}

.sc-quiz__submit {
    background: linear-gradient(135deg, #2f7d32 0%, #388e3c 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.sc-quiz__submit:hover {
    background: linear-gradient(135deg, #256d28 0%, #2e7d32 100%);
}

.sc-quiz__submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sc-quiz__msg {
    text-align: center;
    font-size: 15px;
    line-height: 1.5;
    padding: 12px 0;
}

.sc-quiz__msg.success {
    color: #2f7d32;
}

.sc-quiz__msg.error {
    color: #b23a2f;
}

@media (max-width: 640px) {
    .shortcode-quiz {
        padding: 18px 16px;
    }
    .sc-quiz__title {
        font-size: 19px;
    }
    .sc-quiz__form-row {
        flex-direction: column;
    }
}

/* --- Related Articles (inline shortcode wrapper) --- */
.shortcode-related {
    margin: 36px 0;
}
