/*
  TaskWave — taskwave
  Custom styles for sections not covered by the original template CSS.
  Template base: templatemo-606-string-master.css (unmodified).
*/

/* ─── Logo Image ──────────────────────────────────────────────────────────── */
.logo img {
    height: 36px;
    width: auto;
    display: block;
}

/* ─── Hero Widget: Job Preview Card ──────────────────────────────────────── */
.tw-live-badge {
    font-size: 0.75rem;
    color: #22c55e;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tw-job-list {
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tw-job-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    cursor: pointer;
    transition: all 0.2s;
}

.tw-job-item:hover,
.tw-job-item.active {
    border-color: var(--accent);
    background: rgba(245, 158, 11, 0.06);
}

.tw-job-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-dark);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.tw-job-details {
    flex: 1;
    min-width: 0;
}

.tw-job-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tw-job-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.tw-job-salary {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
    text-align: right;
}

.tw-job-salary span {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-muted);
}

.tw-verified-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: #22c55e;
    font-weight: 600;
}

.tw-widget-apply-btn {
    display: block;
    text-align: center;
    background: var(--accent);
    color: var(--bg-dark);
    padding: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    margin-top: 0.5rem;
}

.tw-widget-apply-btn:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

/* ─── Statistics Bar ──────────────────────────────────────────────────────── */
.tw-stats-bar {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 2rem;
}

.tw-stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tw-stat-item {
    text-align: center;
    padding: 0 3rem;
}

.tw-stat-num {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.tw-stat-lbl {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tw-stat-divider {
    width: 1px;
    height: 50px;
    background: var(--border);
    flex-shrink: 0;
}

/* ─── Jobs Section Layout Override ───────────────────────────────────────── */
.tw-jobs-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 800px;
    margin: 0 auto;
}

/* ─── Application Process ─────────────────────────────────────────────────── */
.tw-process {
    padding: 6rem 2rem;
    background: var(--bg-card);
}

.tw-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 1rem;
}

.tw-step {
    text-align: center;
    flex: 1;
    min-width: 140px;
    max-width: 180px;
    padding: 1rem 0.75rem;
}

.tw-step-number {
    width: 56px;
    height: 56px;
    background: var(--accent);
    color: var(--bg-dark);
    border-radius: 50%;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}

.tw-step-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.tw-step-content p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.tw-step-arrow {
    font-size: 1.5rem;
    color: var(--accent);
    margin-top: 1.5rem;
    flex-shrink: 0;
    opacity: 0.4;
}

/* ─── FAQ Section ─────────────────────────────────────────────────────────── */
.tw-faq {
    padding: 6rem 2rem;
}

.tw-faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.tw-faq-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: border-color 0.3s;
}

.tw-faq-item:hover {
    border-color: rgba(245, 158, 11, 0.35);
}

.tw-faq-btn {
    width: 100%;
    background: var(--bg-card);
    border: none;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    transition: color 0.2s;
}

.tw-faq-btn:hover,
.tw-faq-btn.active {
    color: var(--accent);
}

.tw-faq-icon {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--accent);
    flex-shrink: 0;
    transition: transform 0.35s ease;
    line-height: 1;
}

.tw-faq-btn.active .tw-faq-icon {
    transform: rotate(45deg);
}

.tw-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: var(--bg-dark);
}

.tw-faq-answer.open {
    max-height: 200px;
}

.tw-faq-answer p {
    padding: 1rem 1.5rem 1.25rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

/* ─── Apply Section ───────────────────────────────────────────────────────── */
.tw-apply {
    padding: 6rem 2rem;
    background: var(--bg-card);
}

.tw-apply-inner {
    max-width: 720px;
    margin: 0 auto;
}

.tw-apply-cta {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.tw-apply-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 520px;
}


.tw-position-selector {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.tw-position-selector h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.tw-position-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tw-position-opt {
    flex: 1;
    min-width: 200px;
    cursor: pointer;
}

.tw-position-opt input[type="radio"] {
    display: none;
}

.tw-opt-label {
    display: block;
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    border: 2px solid var(--border);
    background: var(--bg-dark);
    transition: all 0.2s;
    cursor: pointer;
}

.tw-opt-label strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 4px;
}

.tw-opt-label em {
    font-style: normal;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.tw-position-opt input:checked + .tw-opt-label {
    border-color: var(--accent);
    background: rgba(245, 158, 11, 0.06);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15);
}

.tw-position-opt:hover .tw-opt-label {
    border-color: rgba(245, 158, 11, 0.4);
}

.tw-whatsform {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.tw-whatsform iframe {
    width: 100%;
    min-height: 900px;
    border: none;
    display: block;
}

/* Inline WhatsApp CTA (FAQ) */
.tw-wa-inline-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
    background: #25D366;
    color: #fff;
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.18);
    transition: background 0.2s ease, transform 0.2s ease;
}

.tw-wa-inline-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.tw-wa-inline-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

/* ─── WhatsApp Float ──────────────────────────────────────────────────────── */
.tw-wa-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.5);
    z-index: 9000;
    text-decoration: none;
    transition: all 0.3s;
}

.tw-wa-float:hover {
    background: #128C7E;
    transform: scale(1.1);
}

.tw-wa-float svg {
    width: 28px;
    height: 28px;
    fill: white;
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .tw-jobs-grid {
        grid-template-columns: 1fr !important;
    }

    .tw-step-arrow {
        display: none;
    }

    .tw-step {
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .tw-stats-grid {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .tw-stat-divider {
        display: none;
    }

    .tw-stat-item {
        padding: 0 1rem;
        min-width: 120px;
    }

    .tw-position-options {
        flex-direction: column;
    }

    .tw-steps {
        flex-direction: column;
        align-items: center;
    }

    .tw-step {
        max-width: 100%;
        width: 100%;
    }
}
