/*
 * TC Member Area — My Account styles
 * Designed to complement Flatsome's aesthetic
 */

/* ── Shared utilities ────────────────────────────────────────────────────── */

.tc-notice {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    border: 1px solid transparent;
}

.tc-notice--success {
    background: #f0faf4;
    border-color: #a8d5b5;
    color: #1a5c32;
}

.tc-notice--info {
    background: #f5f5f5;
    border-color: #ddd;
    color: #444;
}

.tc-notice__icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.tc-notice p {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
}

/* ── Birthday field ──────────────────────────────────────────────────────── */

.tc-birthday-row label {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.tc-birthday-hint {
    font-size: 0.82rem;
    color: #888;
    font-weight: 400;
}

/* ── Paws section ────────────────────────────────────────────────────────── */

.tc-paws-section {
    max-width: 680px;
}

.tc-paws-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    color: #fff;
    border-radius: 10px;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.tc-paws-hero::after {
    content: '🐾';
    position: absolute;
    right: 1.5rem;
    bottom: 1rem;
    font-size: 5rem;
    opacity: 0.08;
    line-height: 1;
}

.tc-paws-hero__badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.tc-paws-hero__title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.75rem;
    color: #fff;
    line-height: 1.2;
}

.tc-paws-hero__subtitle {
    color: rgba(255,255,255,0.8);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 480px;
}

/* Features row */

.tc-paws-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tc-paws-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #fafafa;
    border-radius: 6px;
    border: 1px solid #eee;
}

.tc-paws-feature__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.tc-paws-feature p {
    margin: 0.2rem 0 0;
    font-size: 0.88rem;
    color: #666;
}

.tc-paws-feature strong {
    font-size: 0.95rem;
}

/* Registration form */

.tc-paws-form-wrap {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1.75rem;
}

.tc-paws-form-wrap h3 {
    margin: 0 0 1.5rem;
    font-size: 1.1rem;
}

.tc-form-row {
    margin-bottom: 1.25rem !important;
}

.tc-form-row label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #333;
}

.tc-optional {
    font-weight: 400;
    color: #999;
    font-size: 0.82rem;
}

.tc-input--disabled {
    background: #f5f5f5 !important;
    color: #888 !important;
    cursor: not-allowed;
}

.tc-form-hint {
    display: block;
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.3rem;
}

.tc-form-row--submit {
    margin-top: 1.5rem !important;
    margin-bottom: 0 !important;
}

.tc-button-primary {
    background: #1a1a2e !important;
    color: #fff !important;
    border: none !important;
    padding: 0.85rem 2rem !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: background 0.2s ease, transform 0.1s ease !important;
    letter-spacing: 0.01em;
}

.tc-button-primary:hover {
    background: #0f3460 !important;
    transform: translateY(-1px) !important;
}

/* What to expect list */

.tc-paws-updates {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.5rem 1.75rem;
    margin-top: 1.5rem;
}

.tc-paws-updates h3 {
    margin: 0 0 1rem;
    font-size: 1rem;
}

.tc-paws-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tc-paws-list li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
    color: #444;
}

.tc-paws-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2ecc71;
    font-weight: 700;
}

/* ── Guides section ──────────────────────────────────────────────────────── */

.tc-guides-section {
    max-width: 720px;
}

.tc-guides-header {
    margin-bottom: 2rem;
}

.tc-guides-header h2 {
    margin: 0 0 0.5rem;
}

.tc-guides-header p {
    color: #666;
    margin: 0;
}

.tc-guides-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tc-guide-card {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.tc-guide-card__thumb {
    width: 100%;
    max-height: 220px;
    overflow: hidden;
}

.tc-guide-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tc-guide-card__body {
    padding: 1.5rem;
}

.tc-guide-card__title {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
}

.tc-guide-card__excerpt {
    color: #666;
    font-size: 0.9rem;
    margin: 0 0 1rem;
}

.tc-guide-card__content {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #444;
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
    margin-top: 0.5rem;
}

/* ── Hide sidebar logout — the header "not you? Log out!" link works fine ── */

.woocommerce-MyAccount-navigation-link--customer-logout {
    display: none !important;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media ( max-width: 600px ) {
    .tc-paws-hero {
        padding: 1.75rem 1.25rem;
    }
    .tc-paws-hero__title {
        font-size: 1.5rem;
    }
    .tc-paws-form-wrap {
        padding: 1.25rem;
    }
}

/* ── Link-out panels (Something Exciting / Tips & Tutorials) ─────────────── */

.tc-linkout-section {
    max-width: 600px;
}

.tc-linkout-hero {
    border-radius: 10px;
    padding: 3rem 2.5rem;
    text-align: center;
}

.tc-linkout-hero--dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    color: #fff;
}

.tc-linkout-hero--light {
    background: #f7f7f7;
    border: 1px solid #e5e5e5;
    color: #222;
}

.tc-linkout-hero__emoji {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 1.25rem;
}

.tc-linkout-hero__title {
    font-size: 1.7rem;
    font-weight: 800;
    margin: 0 0 1rem;
    line-height: 1.2;
}

.tc-linkout-hero--dark .tc-linkout-hero__title {
    color: #fff;
}

.tc-linkout-hero__text {
    font-size: 1rem;
    line-height: 1.65;
    margin: 0 0 2rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.tc-linkout-hero--dark .tc-linkout-hero__text {
    color: rgba(255,255,255,0.8);
}

.tc-linkout-hero--light .tc-linkout-hero__text {
    color: #555;
}

.tc-linkout-btn {
    display: inline-block;
    padding: 0.85rem 2.25rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: transform 0.15s ease, opacity 0.15s ease;
    letter-spacing: 0.01em;
}

.tc-linkout-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.tc-linkout-hero--dark .tc-linkout-btn {
    background: #fff;
    color: #1a1a2e !important;
}

.tc-linkout-btn--dark {
    background: #1a1a2e !important;
    color: #fff !important;
}

@media ( max-width: 600px ) {
    .tc-linkout-hero {
        padding: 2rem 1.5rem;
    }
    .tc-linkout-hero__title {
        font-size: 1.35rem;
    }
}

/* ── Questionnaire ───────────────────────────────────────────────────────── */

.tc-quiz-wrap {
    max-width: 640px;
}

.tc-quiz-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.tc-quiz-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 .5rem;
}

.tc-quiz-desc {
    color: #666;
    margin: 0;
    font-size: .95rem;
    line-height: 1.6;
}

.tc-quiz-question {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.tc-quiz-question:last-of-type {
    border-bottom: none;
}

.tc-quiz-question__label {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    display: flex;
    gap: .6rem;
    align-items: baseline;
}

.tc-quiz-question__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    background: #1a1a2e;
    color: #fff;
    border-radius: 50%;
    font-size: .72rem;
    font-weight: 800;
    flex-shrink: 0;
    position: relative;
    top: -.05rem;
}

.tc-quiz-required {
    color: #e74c3c;
    margin-left: .1rem;
}

/* Choices */

.tc-quiz-choices {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.tc-quiz-choice {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
    line-height: 1.3;
}

.tc-quiz-choice:hover {
    border-color: #1a1a2e;
    background: #f8f8fb;
}

.tc-quiz-choice input[type="radio"] {
    flex-shrink: 0;
    accent-color: #1a1a2e;
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
}

.tc-quiz-choice input[type="radio"]:checked + .tc-quiz-choice__label {
    font-weight: 600;
}

.tc-quiz-choice:has(input:checked) {
    border-color: #1a1a2e;
    background: #f0f0f8;
}

.tc-quiz-choice__label {
    font-size: .95rem;
}

/* Free text */

.tc-quiz-textarea {
    width: 100%;
    padding: .75rem 1rem;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: .95rem;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    transition: border-color .15s ease;
    box-sizing: border-box;
}

.tc-quiz-textarea:focus {
    outline: none;
    border-color: #1a1a2e;
}

.tc-quiz-other-text {
    margin-top: .6rem;
}

/* Submit */

.tc-quiz-submit-row {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f0f0f0;
}

.tc-quiz-btn {
    background: #1a1a2e;
    color: #fff;
    border: none;
    padding: .9rem 2.25rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    letter-spacing: .01em;
    transition: background .2s ease, transform .1s ease;
}

.tc-quiz-btn:hover {
    background: #0f3460;
    transform: translateY(-1px);
}

/* Thank you state */

.tc-quiz-thankyou {
    text-align: center;
    padding: 3rem 2rem;
    background: #f7f7f7;
    border-radius: 10px;
    max-width: 480px;
}

.tc-quiz-thankyou__icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.tc-quiz-thankyou h3 {
    margin: 0 0 .5rem;
    font-size: 1.3rem;
}

.tc-quiz-thankyou p {
    color: #666;
    margin: 0;
}

@media ( max-width: 600px ) {
    .tc-quiz-choice {
        padding: .6rem .75rem;
    }
}
