:root {
    --bg-color: #f8fafc;
    --gradient-start: #e2e8f0;
    --gradient-end: #f1f5f9;
    --card-bg: rgba(255, 255, 255, 0.9);
    --text-main: #022c22;
    --text-muted: #374151;
    --primary: #064e3b;
    --primary-hover: #042f2e;
    --secondary: #14532d;
    --secondary-hover: #052e16;
    --accent: #10b981;
    --border-color: rgba(2, 44, 34, 0.1);
    --focus-glow: 0 0 0 3px rgba(21, 128, 61, 0.2);
    --glass-shadow: 0 10px 40px -10px rgba(6, 78, 59, 0.1);
    --glass-border: 1px solid rgba(255, 255, 255, 0.8);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    background-image:
        radial-gradient(at 0% 0%, var(--gradient-start) 0px, transparent 50%),
        radial-gradient(at 100% 100%, var(--gradient-end) 0px, transparent 50%);
    background-attachment: scroll;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    line-height: 1.6;
}

@media (min-width: 1024px) {
    body {
        background-attachment: fixed;
    }
}

input,
textarea,
button,
select {
    font-size: 16px;
}

.page-layout {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 1rem;
    gap: 1rem;
    align-items: stretch;
    box-sizing: border-box;
}

.page-layout__center {
    min-width: 0;
    width: 100%;
    overflow-x: clip;
}

.ad-rail {
    display: none;
}

@media (min-width: 1280px) {
    .page-layout {
        grid-template-columns: minmax(0, 250px) minmax(0, 1fr) minmax(0, 250px);
        gap: 1.25rem;
    }

    .ad-rail {
        display: block;
        align-self: stretch;
    }
}

.ad-rail__inner {
    position: -webkit-sticky;
    position: sticky;
    top: 1rem;
    z-index: 2;
    max-width: 250px;
    width: 100%;
    height: auto;
    align-self: start;
}

.ad-rail__hdr {
    margin: 0 0 0.5rem;
    padding: 0;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
    color: #94a3b8;
}

.ad-rail--left .ad-rail__inner {
    margin-right: auto;
    margin-left: 0;
}

.ad-rail--right .ad-rail__inner {
    margin-left: auto;
    margin-right: 0;
}

.ad-rail__link {
    display: block;
    line-height: 0;
    border-radius: 8px;
    outline-offset: 2px;
}

.ad-rail__link:focus-visible {
    outline: 2px solid var(--primary);
}

.ad-rail__link img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 250px;
    border-radius: 8px;
    box-shadow: var(--glass-shadow);
}

.site-header {
    width: 100%;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    margin-bottom: 2rem;
}

.site-header .logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
    text-decoration: none;
}

.site-footer {
    width: 100%;
    padding: 1.5rem 1rem;
    margin-top: 2rem;
    border-top: var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.5);
}

.page-header {
    text-align: center;
    margin: 2rem 0 3rem;
    animation: fadeInDown 0.8s ease-out;
    padding: 0 1rem;
    width: 100%;
}

.page-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 300;
}

.container {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    animation: fadeInUp 0.8s ease-out;
    padding: 0 1rem 2rem;
}

@media (min-width: 768px) {
    .container {
        grid-template-columns: 1fr 1fr;
    }
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 15px 50px -10px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #064e3b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card h2::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 24px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    border-radius: 4px;
}

textarea {
    width: 100%;
    height: 250px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    resize: vertical;
    transition: all 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--focus-glow);
}

textarea::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

@media (min-width: 480px) {
    .options-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.75rem 1rem;
    min-height: 48px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.2s ease;
    user-select: none;
}

.toggle-label:hover {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.toggle-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-muted);
    border-radius: 6px;
    margin-right: 12px;
    background: transparent;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-label input[type="checkbox"]:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.toggle-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.toggle-text {
    font-size: 0.95rem;
    color: var(--text-main);
}

.btn {
    padding: 1rem;
    min-height: 48px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    width: 100%;
    margin-top: auto;
}

.primary-btn:hover {
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

.secondary-btn {
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    width: 100%;
    margin-top: auto;
}

.secondary-btn:hover {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.copy-feedback {
    color: var(--secondary);
    font-size: 0.85rem;
    text-align: center;
    height: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 500;
}

.copy-feedback.show {
    opacity: 1;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

form.split-form {
    display: contents;
}

@media (max-width: 767px) {
    .page-header {
        margin: 1.25rem 0 2rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .card {
        padding: 1.25rem;
        border-radius: 16px;
    }

    textarea {
        min-height: 220px;
    }
}


.faq-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

.faq-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #064e3b;
    margin-bottom: 1.25rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.faq-section h2::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 24px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    border-radius: 4px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    padding: 1.25rem 1.5rem;
}

.faq-question {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 0.75rem;
    line-height: 1.35;
}

.faq-answer {
    padding: 0;
    border-top: none;
}

.faq-answer p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    padding-top: 0;
}

.faq-answer strong {
    font-weight: 700;
    color: var(--text-main);
}

/* ── Star rating widget ──────────────────────────────────────────────────── */
:root {
    --star-gold: #f59e0b;
}

.rating-widget {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 1.5rem;
    padding: 0.75rem 1.25rem;
    text-align: center;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: var(--glass-border);
    border-radius: 14px;
    box-shadow: var(--glass-shadow);
}

.rating-widget h2 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #064e3b;
    margin: 0 0 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.rating-widget h2::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 16px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    border-radius: 4px;
}

.rating-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.4rem;
}

.rating-avg-num {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
}

.rating-stars-static {
    display: flex;
    gap: 1px;
}

.rating-stars-static .star {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--star-gold);
    stroke-width: 1.5;
}

.rating-stars-static .star--full  { fill: var(--star-gold); }
.rating-stars-static .star--empty { fill: none; }
.rating-stars-static .star--half  { fill: url(#halfGrad); }

.rating-count-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.rating-interactive {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 0.25rem;
}

.star-btn {
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    line-height: 0;
    border-radius: 3px;
    transition: transform 0.12s ease;
}

.star-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 1px;
}

.star-btn:hover,
.star-btn--lit {
    transform: scale(1.2);
}

.star-btn svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--star-gold);
    stroke-width: 1.5;
    stroke-linejoin: round;
    transition: fill 0.12s ease;
}

.star-btn:hover svg,
.star-btn--lit svg {
    fill: var(--star-gold);
}

.star-btn:disabled {
    cursor: default;
    opacity: 0.65;
}

.rating-msg {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: italic;
    margin: 0;
    min-height: 0;
}
