/* =====================================================
   รับแก้ไข / ปรับปรุง / ดูแลเว็บไซต์ (/website-repair)
   Loaded only by Views/web-repair/index.php
   ===================================================== */

#repair-form,
#services,
#care {
    scroll-margin-top: 90px;
}

/* --- Hero --- */
.wr-hero .hero-title {
    line-height: 1.35;
}

.wr-nowrap {
    white-space: nowrap;
}

.wr-hero .text-green {
    color: #34d399;
    font-weight: 700;
}

.wr-trust {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    margin-top: 26px;
    font-size: 14px;
    color: rgba(226, 232, 240, 0.88);
}

.wr-trust li::before {
    content: '✓';
    color: #34d399;
    font-weight: 800;
    margin-right: 6px;
}

/* --- Problems --- */
.wr-problems {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.wr-problem {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 18px;
    transition: var(--transition);
}

.wr-problem:hover {
    border-color: rgba(220, 38, 38, 0.35);
    box-shadow: var(--shadow);
}

.wr-problem-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fef2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.wr-problem h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.wr-problem p {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.65;
}

/* --- Service cards + care plans (shared bits) --- */
.wr-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.wr-plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1040px;
    margin: 0 auto;
    align-items: stretch;
}

.wr-card,
.wr-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px 24px 24px;
    transition: var(--transition);
}

.wr-card:hover,
.wr-plan:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 36px rgba(26, 86, 219, 0.09);
    transform: translateY(-4px);
}

.wr-card-hot,
.wr-plan-featured {
    border: 2px solid var(--primary);
    background: linear-gradient(180deg, rgba(26, 86, 219, 0.04), #fff 40%);
}

.wr-card-badge {
    position: absolute;
    top: -1px;
    right: 20px;
    padding: 4px 12px 5px;
    border-radius: 0 0 8px 8px;
    background: var(--danger);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.wr-plan-featured .wr-card-badge {
    background: var(--primary);
}

.wr-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.wr-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--surface3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.wr-card-head h3,
.wr-plan h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.wr-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.wr-price-from {
    font-size: 13px;
    color: var(--text-dim);
}

.wr-price {
    font-family: var(--font-en);
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.1;
}

.wr-price-unit {
    font-size: 14px;
    color: var(--text-dim);
}

.wr-list {
    list-style: none;
    margin-bottom: 22px;
    flex: 1;
}

.wr-list li {
    position: relative;
    padding: 5px 0 5px 24px;
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.6;
}

.wr-list li::before {
    content: '✓';
    position: absolute;
    left: 2px;
    top: 5px;
    color: var(--accent);
    font-weight: 800;
}

.wr-list-sm li {
    font-size: 13.5px;
}

.wr-list em {
    font-style: normal;
    color: var(--accent);
    font-weight: 600;
}

.wr-plan-en {
    font-family: var(--font-en);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 2px;
}

.wr-plan-desc {
    font-size: 13px;
    color: var(--text-dim);
    margin: 4px 0 14px;
    min-height: 2.6em;
}

.wr-plan .wr-price-row {
    margin-bottom: 4px;
}

.wr-plan-year {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--border);
}

.wr-note {
    text-align: center;
    margin-top: 26px;
    font-size: 13.5px;
    color: var(--text-dim);
    line-height: 1.9;
}

.wr-note a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* --- Platforms --- */
.wr-platforms {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 34px;
}

.wr-platforms-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-right: 6px;
}

.wr-chip {
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--surface3);
    border: 1px solid var(--border);
    font-size: 13px;
    font-family: var(--font-en);
    font-weight: 600;
    color: var(--text-dim);
}

.wr-chip-muted {
    font-family: var(--font-thai);
    font-weight: 500;
    background: transparent;
    border-style: dashed;
}

/* --- Form --- */
.wr-hint {
    font-weight: 400;
    color: var(--text-muted);
}

.wr-topics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.wr-topic {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: var(--text-dim) !important;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.wr-topic input {
    width: 17px !important;
    height: 17px;
    padding: 0 !important;
    flex-shrink: 0;
    accent-color: var(--primary);
}

.wr-topic:has(input:checked) {
    border-color: var(--primary);
    background: rgba(26, 86, 219, 0.05);
    color: var(--text) !important;
}

.wr-form-note {
    text-align: center;
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 12px;
}

.wr-line-btn {
    display: block;
    text-align: center;
    background: #06c755;
    color: #fff;
    font-weight: 700;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    transition: background 0.2s;
}

.wr-line-btn:hover {
    background: #05a847;
}

.quotation-contact a {
    color: var(--primary);
}

/* --- FAQ --- */
.wr-faq {
    max-width: 820px;
    margin: 0 auto;
}

/* --- Responsive --- */
@media (max-width: 1100px) {
    .wr-problems {
        grid-template-columns: repeat(2, 1fr);
    }

    .wr-services {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .wr-plans {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .wr-plan-desc {
        min-height: 0;
    }
}

@media (max-width: 640px) {
    .wr-br {
        display: none;
    }

    .wr-problems,
    .wr-services,
    .wr-topics {
        grid-template-columns: 1fr;
    }

    .wr-trust {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .wr-card,
    .wr-plan {
        padding: 24px 18px 20px;
    }

    .wr-price {
        font-size: 28px;
    }
}
