/**
 * TechHub Theme - Services, Conversion & Monetization Styles
 * Thiết kế các gói dịch vụ AI & Tự Động Hóa, quy trình 4 bước và form tiếp nhận lead bảo mật.
 */

/* Bảng Gói Dịch Vụ (Service Pricing & Solutions Grid) */
.th-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: var(--wp--preset--spacing--xl) 0;
}

.th-service-card {
    background: var(--wp--preset--color--card-bg);
    border: 1px solid var(--wp--preset--color--border-light);
    border-radius: var(--wp--preset--spacing--md);
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, border-color 0.25s, box-shadow 0.25s;
}

.th-service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.th-service-card.is-popular {
    border: 2px solid var(--wp--preset--color--blue-electric);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.12);
}

.th-service-popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--wp--preset--color--purple-ai), var(--wp--preset--color--blue-electric));
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.th-service-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--wp--preset--color--blue-electric);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.th-service-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    color: var(--wp--preset--color--text-main);
}

.th-service-desc {
    font-size: 0.9rem;
    color: var(--wp--preset--color--text-muted);
    line-height: 1.5;
    margin: 0 0 1.5rem 0;
}

.th-service-price-wrap {
    padding: 1.25rem 0;
    margin-bottom: 1.5rem;
    border-top: 1px solid var(--wp--preset--color--border-light);
    border-bottom: 1px solid var(--wp--preset--color--border-light);
}

.th-service-price-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--wp--preset--color--text-muted);
}

.th-service-price-value {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--wp--preset--color--text-main);
    display: block;
    margin-top: 0.25rem;
}

.th-service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex-grow: 1;
}

.th-service-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.875rem;
    color: var(--wp--preset--color--text-main);
}

.th-service-check-icon {
    color: #10b981;
    min-width: 18px;
    margin-top: 2px;
}

/* Quy Trình 4 Bước Triển Khai */
.th-process-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: var(--wp--preset--spacing--xl) 0;
}

.th-process-step-card {
    background: var(--wp--preset--color--card-bg);
    border: 1px solid var(--wp--preset--color--border-light);
    border-radius: var(--wp--preset--spacing--md);
    padding: 1.75rem;
    position: relative;
}

.th-process-num-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--wp--preset--color--background-alt);
    border: 2px solid var(--wp--preset--color--blue-electric);
    color: var(--wp--preset--color--blue-electric);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Form Tiếp Nhận Lead Tư Vấn */
.th-lead-form-wrap {
    background: var(--wp--preset--color--card-bg);
    border: 1px solid var(--wp--preset--color--border-light);
    border-radius: var(--wp--preset--spacing--md);
    padding: 2.5rem;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
}

.th-form-group {
    margin-bottom: 1.25rem;
}

.th-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--wp--preset--color--text-main);
    margin-bottom: 0.4rem;
}

.th-form-input,
.th-form-select,
.th-form-textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    background: var(--wp--preset--color--background-alt);
    border: 1px solid var(--wp--preset--color--border-light);
    border-radius: 8px;
    color: var(--wp--preset--color--text-main);
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

.th-form-input:focus,
.th-form-select:focus,
.th-form-textarea:focus {
    outline: none;
    border-color: var(--wp--preset--color--blue-electric);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Honeypot field (ẩn hoàn toàn với người dùng) */
.th-hp-field {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Thông Báo Trạng Thái Form */
.th-form-status {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    display: none;
}

.th-form-status.is-success {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.th-form-status.is-error {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Banner Tài Trợ In-Content Minh Bạch (Task 08.2) */
.th-sponsored-banner {
    background: var(--wp--preset--color--background-alt);
    border: 1px dashed var(--wp--preset--color--border-light);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin: var(--wp--preset--spacing--lg) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.th-sponsored-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--wp--preset--color--text-muted);
}
