/* ============================================
   GICG Assessment Tool
   Design inherited from gicg-passport-index
   Colors: #1f4e5e (teal), #c08e54 (gold), #f8ecd4 (beige)
   ============================================ */

/* Reset & Container */
.gicg-assessment-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    color: #1f4e5e;
}

.gicg-assessment-wrapper *,
.gicg-assessment-wrapper *::before,
.gicg-assessment-wrapper *::after {
    box-sizing: border-box;
}

/* Progress Dots */
.gicg-assessment-progress {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.progress-dots {
    display: flex;
    gap: 12px;
    align-items: center;
}

.progress-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e5e7eb;
    transition: all 0.4s ease;
}

.progress-dots .dot.active {
    background: #c08e54;
    transform: scale(1.2);
}

.progress-dots .dot.completed {
    background: #1f4e5e;
}

/* Steps */
.gicg-assessment-step {
    display: none;
    opacity: 0;
}

.gicg-assessment-step.active {
    display: block;
}

.step-content {
    background: #ffffff;
    border: 1px solid rgba(192, 142, 84, 0.3);
    border-radius: 16px;
    padding: 52px 44px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(31, 78, 94, 0.04), 0 8px 24px rgba(31, 78, 94, 0.06);
}

/* Step Icon */
.step-icon {
    margin-bottom: 24px;
}

.step-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
}

/* Typography */
.step-title {
    font-size: 24px;
    font-weight: 600;
    color: #1f4e5e;
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.step-description {
    font-size: 16px;
    color: #4b5563;
    margin: 0 auto 32px auto;
    line-height: 1.6;
    max-width: 540px;
}

/* ============================================
   Buttons — kill ALL theme underlines/borders
   ============================================ */
.gicg-assessment-wrapper a.gicg-btn,
.gicg-assessment-wrapper a.gicg-btn:link,
.gicg-assessment-wrapper a.gicg-btn:visited,
.gicg-assessment-wrapper a.gicg-btn:hover,
.gicg-assessment-wrapper a.gicg-btn:active,
.gicg-assessment-wrapper a.gicg-btn:focus,
.gicg-assessment-wrapper .step-content a.gicg-btn,
.gicg-assessment-wrapper .results-cta a.gicg-btn,
.gicg-assessment-wrapper .country-card a.gicg-btn,
.entry-content .gicg-assessment-wrapper a.gicg-btn,
.entry-content .gicg-assessment-wrapper a.gicg-btn:hover,
.page .gicg-assessment-wrapper a.gicg-btn,
.single .gicg-assessment-wrapper a.gicg-btn {
    text-decoration: none !important;
    border-bottom: none !important;
    background-image: none !important;
    text-underline-offset: unset !important;
    text-decoration-line: none !important;
    text-decoration-style: unset !important;
    -webkit-text-decoration: none !important;
    box-shadow: none;
    outline: none;
}

.gicg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 36px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    text-decoration: none !important;
    line-height: 1.4;
    position: relative;
    letter-spacing: 0.01em;
}

.gicg-btn:focus-visible {
    outline: 2px solid #c08e54;
    outline-offset: 2px;
}

/* Primary Button */
.gicg-btn-primary {
    background: #c08e54;
    color: #ffffff;
    border-color: #c08e54;
}

.gicg-btn-primary:hover {
    background: #1f4e5e;
    border-color: #1f4e5e;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 78, 94, 0.3);
}

.gicg-btn-primary:active {
    background: #173d4a;
    border-color: #173d4a;
    color: #ffffff;
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(31, 78, 94, 0.2);
}

/* Secondary Button */
.gicg-btn-secondary {
    background: transparent;
    color: #6b7280;
    border-color: #d1d5db;
    font-size: 14px;
    padding: 9px 22px;
    margin-top: 24px;
}

.gicg-btn-secondary:hover {
    color: #1f4e5e;
    border-color: #1f4e5e;
    background: #f0f7f9;
}

.gicg-btn-secondary:active {
    color: #173d4a;
    border-color: #173d4a;
    background: #e2eef1;
}

.gicg-btn-wide {
    width: 100%;
    max-width: 400px;
}

/* Button Groups */
.step-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.step-buttons-vertical {
    flex-direction: column;
    align-items: center;
}

/* ============================================
   Country List (Step 3A)
   ============================================ */
.country-list-section {
    text-align: left;
    margin-bottom: 28px;
}

.list-heading {
    font-size: 17px;
    font-weight: 600;
    color: #1f4e5e;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #f8ecd4;
}

.country-links {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.country-links li {
    margin-bottom: 0;
}

.country-links a,
.country-links a:link,
.country-links a:visited {
    display: block;
    padding: 10px 16px;
    color: #1f4e5e;
    text-decoration: none !important;
    border-bottom: none !important;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.country-links a:hover {
    background: #f8ecd4;
    color: #c08e54;
    border-left-color: #c08e54;
    padding-left: 20px;
    text-decoration: none !important;
}

/* ============================================
   Results Grid
   ============================================ */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

/* Country Card */
.country-card {
    background: #ffffff;
    border: 1px solid rgba(192, 142, 84, 0.3);
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.country-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1f4e5e, #c08e54);
}

.country-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(31, 78, 94, 0.12);
    border-color: rgba(192, 142, 84, 0.5);
}

.country-card-flag {
    font-size: 48px;
    margin-bottom: 14px;
    line-height: 1;
}

.country-card-name {
    font-size: 16px;
    font-weight: 600;
    color: #1f4e5e;
    margin: 0 0 4px 0;
}

.country-card-type {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 14px 0;
    font-weight: 500;
}

.country-card-amount {
    font-size: 22px;
    font-weight: 700;
    color: #c08e54;
    margin: 0 0 18px 0;
}

.country-card .gicg-btn {
    padding: 10px 20px;
    font-size: 13px;
    width: 100%;
    font-weight: 600;
}

/* ============================================
   Results CTA
   ============================================ */
.results-cta {
    background: linear-gradient(135deg, #1f4e5e 0%, #2a6a7e 100%);
    border-radius: 12px;
    padding: 36px 28px;
    margin-bottom: 16px;
}

.results-cta p {
    color: #ffffff;
    font-size: 16px;
    margin: 0 0 20px 0;
    line-height: 1.6;
    opacity: 0.95;
}

.results-cta .gicg-btn-primary {
    background: #c08e54;
    border-color: #c08e54;
    color: #ffffff;
}

.results-cta .gicg-btn-primary:hover {
    background: #ffffff;
    color: #1f4e5e;
    border-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.results-cta .gicg-btn-primary:active {
    background: #f3f4f6;
    color: #1f4e5e;
    border-color: #f3f4f6;
}

/* Single result layout */
.results-grid.single-result {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 32px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .gicg-assessment-wrapper {
        padding: 24px 16px;
    }

    .step-content {
        padding: 36px 24px;
    }

    .step-title {
        font-size: 20px;
    }

    .step-description {
        font-size: 15px;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .step-buttons {
        flex-direction: column;
        align-items: center;
    }

    .gicg-btn-primary {
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    .step-content {
        padding: 28px 16px;
    }

    .step-title {
        font-size: 18px;
    }

    .country-card {
        padding: 20px 16px;
    }
}
