/**
 * GW Profile Wizard – Dashboard Profile Completion Widget styles.
 *
 * Used by the Elementor "Profile Completion" widget.
 */

/* ── Card shell ───────────────────────────────────────────────────────── */
.gw-pwc-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 28px 24px 24px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    font-family: inherit;
    color: #1a1a1a;
    position: relative;
    overflow: hidden;
}

/* Decorative accent stripe at top */
.gw-pwc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #81C784);
    border-radius: 12px 12px 0 0;
}

/* ── Header ───────────────────────────────────────────────────────────── */
.gw-pwc-header {
    margin-bottom: 20px;
    text-align: center;
}

.gw-pwc-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: inherit;
    line-height: 1.3;
}

.gw-pwc-subtitle {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* ── SVG Progress Ring ────────────────────────────────────────────────── */
.gw-pwc-ring-wrap {
    display: flex;
    justify-content: center;
    margin: 0 auto 16px;
    max-width: 140px;
}

.gw-pwc-ring {
    width: 100%;
    height: auto;
    overflow: visible;
}

.gw-pwc-ring-track {
    stroke: #e8e8e8;
}

.gw-pwc-ring-fill {
    stroke: #4CAF50;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.gw-pwc-ring-pct,
.gw-pwc-ring-label {
    fill: #1a1a1a;
    font-family: inherit;
}

/* ── Linear Progress Bar ──────────────────────────────────────────────── */
.gw-pwc-bar-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.gw-pwc-bar {
    flex: 1;
    height: 8px;
    background: #e8e8e8;
    border-radius: 100px;
    overflow: hidden;
}

.gw-pwc-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #81C784);
    border-radius: 100px;
    transition: width 0.6s ease;
    min-width: 4px;
}

.gw-pwc-bar-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
    min-width: 36px;
    text-align: right;
}

/* ── Completion celebration message ───────────────────────────────────── */
.gw-pwc-complete-msg {
    text-align: center;
    background: #f1fdf2;
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #2e7d32;
    line-height: 1.5;
}

.gw-pwc-complete-icon {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 4px;
}

/* ── Section list ─────────────────────────────────────────────────────── */
.gw-pwc-sections {
    margin-bottom: 20px;
}

.gw-pwc-sections-heading {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    margin: 0 0 10px;
}

.gw-pwc-section-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gw-pwc-section-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: background 0.15s ease;
}

.gw-pwc-section-incomplete {
    background: #fafafa;
    border: 1px solid #eee;
}

.gw-pwc-section-complete {
    background: #f1fdf2;
    border: 1px solid #c8e6c9;
}

.gw-pwc-section-icon {
    font-size: 0.9rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.gw-pwc-icon-incomplete {
    color: #bbb;
}

.gw-pwc-icon-complete {
    color: #4CAF50;
    font-weight: 700;
}

.gw-pwc-section-name {
    flex: 1;
    font-weight: 500;
    color: inherit;
    line-height: 1.3;
}

/* Section action link */
.gw-pwc-section-link {
    display: inline-block;
    flex-shrink: 0;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid #4CAF50;
    color: #4CAF50;
    background: transparent;
    transition: background 0.15s ease, color 0.15s ease;
    line-height: 1.5;
    white-space: nowrap;
}

.gw-pwc-section-link:hover,
.gw-pwc-section-link:focus {
    background-color: #4CAF50;
    color: #fff;
    outline: none;
    text-decoration: none;
}

.gw-pwc-section-link-done {
    border-color: #c8e6c9;
    color: #4CAF50;
    opacity: 0.8;
}

.gw-pwc-section-link-done:hover,
.gw-pwc-section-link-done:focus {
    background-color: #4CAF50;
    border-color: #4CAF50;
    color: #fff;
    opacity: 1;
}

/* ── CTA Button ───────────────────────────────────────────────────────── */
.gw-pwc-cta-wrap {
    text-align: center;
    padding-top: 4px;
}

.gw-pwc-cta {
    display: inline-block;
    padding: 12px 32px;
    background-color: #4CAF50;
    color: #fff;
    font-weight: 700;
    font-size: 0.9375rem;
    border-radius: 100px;
    text-decoration: none;
    transition: filter 0.15s ease, transform 0.1s ease;
    border: none;
    cursor: pointer;
    line-height: 1.4;
}

.gw-pwc-cta:hover,
.gw-pwc-cta:focus {
    filter: brightness(0.88);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    outline: none;
}

.gw-pwc-cta:active {
    transform: translateY(0);
}

/* ── Responsive tweaks ────────────────────────────────────────────────── */
@media ( max-width: 480px ) {
    .gw-pwc-card {
        padding: 20px 16px 18px;
    }

    .gw-pwc-section-item {
        flex-wrap: wrap;
        gap: 6px;
    }

    .gw-pwc-section-link {
        margin-left: auto;
    }
}
