/**
 * GoValid FAQ Styles for WordPress
 * Compatible with Bootstrap 5
 *
 * @version 1.0.0
 */

/* =======================
   FAQ Wrapper
   ======================= */
.govalid-faq-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* =======================
   Search Box
   ======================= */
.govalid-faq-search-container {
    max-width: 600px;
    margin: 0 auto 30px;
}

.govalid-faq-search {
    font-size: 16px;
    padding: 12px;
}

.search-results-info {
    padding: 8px 12px;
    background-color: #f0f9ff;
    border-left: 3px solid #227CCB;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 10px;
}

.search-results-info i {
    margin-right: 6px;
}

.search-results-info.text-warning {
    background-color: #fef3c7;
    border-left-color: #ffc107;
}

.search-results-info.text-danger {
    background-color: #fee2e2;
    border-left-color: #dc3545;
}

/* =======================
   Section Headers
   ======================= */
.avatar {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-md {
    width: 56px;
    height: 56px;
}

.avatar-initial {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.bg-label-primary {
    background-color: rgba(34, 124, 203, 0.12);
    color: #227CCB;
}

.bg-label-success {
    background-color: rgba(40, 167, 69, 0.12);
    color: #28a745;
}

.bg-label-warning {
    background-color: rgba(255, 193, 7, 0.12);
    color: #ffc107;
}

.bg-label-info {
    background-color: rgba(23, 162, 184, 0.12);
    color: #17a2b8;
}

/* =======================
   Navigation Pills
   ======================= */
.govalid-faq-wrapper .nav-pills .nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    margin-bottom: 8px;
    border-radius: 8px;
    color: #5e6e82;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: left;
}

.govalid-faq-wrapper .nav-pills .nav-link:hover {
    background-color: rgba(34, 124, 203, 0.08);
    color: #227CCB;
}

.govalid-faq-wrapper .nav-pills .nav-link.active {
    background-color: #227CCB;
    color: #ffffff;
}

.govalid-faq-wrapper .nav-pills .nav-link i {
    font-size: 18px;
}

/* =======================
   Accordion Styles
   ======================= */
.govalid-faq-wrapper .accordion-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.govalid-faq-wrapper .accordion-button {
    font-weight: 600;
    font-size: 16px;
    padding: 18px 24px;
    background-color: #ffffff;
    color: #374151;
}

.govalid-faq-wrapper .accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: #227CCB;
    box-shadow: none;
}

.govalid-faq-wrapper .accordion-button:focus {
    box-shadow: none;
    border-color: #e5e7eb;
}

.govalid-faq-wrapper .accordion-body {
    padding: 24px;
    line-height: 1.7;
    color: #4b5563;
}

/* =======================
   Alert Boxes
   ======================= */
.govalid-faq-wrapper .alert {
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.govalid-faq-wrapper .alert i {
    font-size: 18px;
}

.govalid-faq-wrapper .alert-info {
    background-color: #e0f2fe;
    border-color: #bae6fd;
    color: #075985;
}

.govalid-faq-wrapper .alert-success {
    background-color: #d1fae5;
    border-color: #a7f3d0;
    color: #065f46;
}

.govalid-faq-wrapper .alert-warning {
    background-color: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

.govalid-faq-wrapper .alert-danger {
    background-color: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
}

.govalid-faq-wrapper .alert-primary {
    background-color: #dbeafe;
    border-color: #bfdbfe;
    color: #1e40af;
}

/* =======================
   Tables
   ======================= */
.govalid-faq-wrapper .table {
    margin-bottom: 0;
}

.govalid-faq-wrapper .table th {
    font-weight: 600;
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.govalid-faq-wrapper .table-bordered {
    border: 1px solid #dee2e6;
}

.govalid-faq-wrapper .table-bordered td,
.govalid-faq-wrapper .table-bordered th {
    border: 1px solid #dee2e6;
}

.govalid-faq-wrapper .table-light {
    background-color: #f8f9fa;
}

.govalid-faq-wrapper .table-success {
    background-color: #d1fae5;
}

.govalid-faq-wrapper .table-warning {
    background-color: #fef3c7;
}

/* =======================
   Cards
   ======================= */
.govalid-faq-wrapper .card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.govalid-faq-wrapper .card-body {
    padding: 20px;
}

.govalid-faq-wrapper .bg-label-primary.card,
.govalid-faq-wrapper .border-primary.card {
    border-color: #227CCB;
}

.govalid-faq-wrapper .bg-label-success.card,
.govalid-faq-wrapper .border-success.card {
    border-color: #28a745;
}

.govalid-faq-wrapper .bg-label-warning.card,
.govalid-faq-wrapper .border-warning.card {
    border-color: #ffc107;
}

.govalid-faq-wrapper .bg-label-info.card,
.govalid-faq-wrapper .border-info.card {
    border-color: #17a2b8;
}

/* =======================
   Badges
   ======================= */
.govalid-faq-wrapper .badge {
    padding: 6px 12px;
    font-weight: 600;
    border-radius: 6px;
}

.govalid-faq-wrapper .bg-success {
    background-color: #28a745 !important;
}

.govalid-faq-wrapper .bg-secondary {
    background-color: #6c757d !important;
}

.govalid-faq-wrapper .bg-primary {
    background-color: #227CCB !important;
}

/* =======================
   Icons (Tabler Icons)
   ======================= */
.govalid-faq-wrapper i[class^="ti-"],
.govalid-faq-wrapper i[class*=" ti-"] {
    display: inline-block;
    vertical-align: middle;
}

.govalid-faq-wrapper .ti-30px {
    font-size: 30px;
}

.govalid-faq-wrapper .ti-lg {
    font-size: 24px;
}

.govalid-faq-wrapper .ti-sm {
    font-size: 18px;
}

/* =======================
   Text Colors
   ======================= */
.govalid-faq-wrapper .text-success {
    color: #28a745 !important;
}

.govalid-faq-wrapper .text-danger {
    color: #dc3545 !important;
}

.govalid-faq-wrapper .text-warning {
    color: #ffc107 !important;
}

.govalid-faq-wrapper .text-info {
    color: #17a2b8 !important;
}

.govalid-faq-wrapper .text-primary {
    color: #227CCB !important;
}

.govalid-faq-wrapper .text-muted {
    color: #6c757d !important;
}

/* =======================
   Loading & Error States
   ======================= */
.govalid-faq-loading,
.govalid-faq-section-loading {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.govalid-faq-error {
    margin: 40px 0;
}

/* =======================
   Search Highlights
   ======================= */
.govalid-faq-wrapper .search-highlight {
    animation: highlightFade 2s ease;
}

@keyframes highlightFade {
    0% {
        background-color: #fef3c7;
    }

    100% {
        background-color: transparent;
    }
}

/* =======================
   Responsive Design
   ======================= */
@media (max-width: 768px) {
    .govalid-faq-wrapper {
        padding: 15px;
    }

    .govalid-faq-wrapper .nav-pills {
        margin-bottom: 20px;
    }

    .govalid-faq-wrapper .accordion-button {
        font-size: 14px;
        padding: 14px 18px;
    }

    .govalid-faq-wrapper .accordion-body {
        padding: 18px;
        font-size: 14px;
    }

    .govalid-faq-wrapper .table {
        font-size: 13px;
    }
}

/* =======================
   Utilities
   ======================= */
.govalid-faq-wrapper .mb-0 {
    margin-bottom: 0 !important;
}

.govalid-faq-wrapper .mb-2 {
    margin-bottom: 0.5rem !important;
}

.govalid-faq-wrapper .mb-3 {
    margin-bottom: 1rem !important;
}

.govalid-faq-wrapper .mb-4 {
    margin-bottom: 1.5rem !important;
}

.govalid-faq-wrapper .mb-5 {
    margin-bottom: 3rem !important;
}

.govalid-faq-wrapper .mt-2 {
    margin-top: 0.5rem !important;
}

.govalid-faq-wrapper .mt-3 {
    margin-top: 1rem !important;
}

.govalid-faq-wrapper .mt-4 {
    margin-top: 1.5rem !important;
}

.govalid-faq-wrapper .me-2 {
    margin-right: 0.5rem !important;
}

.govalid-faq-wrapper .ms-2 {
    margin-left: 0.5rem !important;
}

.govalid-faq-wrapper .fw-bold {
    font-weight: 700 !important;
}

.govalid-faq-wrapper .fw-medium {
    font-weight: 500 !important;
}

.govalid-faq-wrapper .text-center {
    text-align: center !important;
}

/* =======================
   PRICING STYLES - PROFESSIONAL REDESIGN
   ======================= */
.govalid-pricing-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Pricing Cards Container - Force single row layout */
.govalid-pricing-wrapper .govalid-pricing-cards-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 24px;
    margin-top: 30px;
    padding-top: 20px;
    padding-bottom: 10px;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

/* Each card takes equal width */
.govalid-pricing-wrapper .govalid-pricing-cards-container>div {
    flex: 1 0 auto;
    min-width: 260px;
    max-width: 320px;
}

/* Individual Pricing Card */
.govalid-pricing-wrapper .pricing-card.card {
    position: relative !important;
    background: #ffffff !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 16px !important;
    overflow: visible !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05) !important;
}

/* Hover Effect */
.govalid-pricing-wrapper .pricing-card.card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(34, 124, 203, 0.15) !important;
    border-color: #227CCB !important;
}

/* Featured/Highlighted Card */
.govalid-pricing-wrapper .pricing-card.card.featured {
    border-color: #227CCB !important;
    border-width: 3px !important;
    box-shadow: 0 10px 30px rgba(34, 124, 203, 0.2) !important;
    z-index: 10 !important;
}

.govalid-pricing-wrapper .pricing-card.card.featured:hover {
    transform: translateY(-12px) scale(1.02) !important;
    box-shadow: 0 25px 50px rgba(34, 124, 203, 0.25) !important;
}

/* Popular Badge */
.govalid-pricing-wrapper .pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #227CCB 0%, #1a62a0 100%);
    color: #ffffff;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 350;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(34, 124, 203, 0.4);
    animation: badgePulse 2s ease-in-out infinite;
    z-index: 20;
    white-space: nowrap;
}

@keyframes badgePulse {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(34, 124, 203, 0.4);
    }

    50% {
        box-shadow: 0 6px 20px rgba(34, 124, 203, 0.6);
    }
}

/* Card Body */
.govalid-pricing-wrapper .pricing-card.card .card-body {
    padding: 36px 28px 28px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

.govalid-pricing-wrapper .pricing-card.card.featured .card-body {
    padding-top: 42px !important;
    padding-bottom: 32px !important;
}

/* Plan Header */
.govalid-pricing-wrapper .pricing-plan-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 2px solid #f3f4f6;
}

.govalid-pricing-wrapper .pricing-plan-name {
    font-size: 28px !important;
    font-weight: 800 !important;
    margin-bottom: 12px;
    color: #1f2937 !important;
    letter-spacing: -0.5px;
}

.govalid-pricing-wrapper .pricing-card.card.featured .pricing-plan-name {
    color: #227CCB !important;
}

.govalid-pricing-wrapper .pricing-description {
    font-size: 15px !important;
    color: #6b7280 !important;
    line-height: 1.6;
    min-height: 48px;
    margin-bottom: 0;
}

/* Price Section */
.govalid-pricing-wrapper .pricing-price {
    text-align: center;
    margin: 24px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%) !important;
    border-radius: 12px;
}

.govalid-pricing-wrapper .pricing-card.card.featured .pricing-price {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
}

.govalid-pricing-wrapper .pricing-price h2 {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #1f2937 !important;
    margin-bottom: 4px;
    letter-spacing: -1px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.govalid-pricing-wrapper .pricing-card.card.featured .pricing-price h2 {
    color: #227CCB !important;
}

.govalid-pricing-wrapper .pricing-price h2 small {
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #9ca3af !important;
}

.govalid-pricing-wrapper .pricing-price-monthly {
    font-size: 14px;
    color: #6b7280;
    margin-top: 4px;
}

/* Limits Section */
.govalid-pricing-wrapper .pricing-limits {
    padding: 20px;
    background: #f9fafb !important;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
}

.govalid-pricing-wrapper .pricing-card.card.featured .pricing-limits {
    background: linear-gradient(135deg, #eff6ff 0%, #f9fafb 100%) !important;
    border-color: #bfdbfe !important;
}

.govalid-pricing-wrapper .pricing-limit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.govalid-pricing-wrapper .pricing-limit-item:last-child {
    margin-bottom: 0;
}

.govalid-pricing-wrapper .pricing-limit-item i {
    font-size: 20px;
    color: #227CCB;
    flex-shrink: 0;
}

.govalid-pricing-wrapper .pricing-limit-item span {
    font-size: 15px;
    color: #374151;
    line-height: 1.4;
}

.govalid-pricing-wrapper .pricing-limit-item strong {
    color: #1f2937;
    font-weight: 700;
}

/* Features List */
.govalid-pricing-wrapper .pricing-features {
    flex-grow: 1;
    margin-bottom: 28px;
}

.govalid-pricing-wrapper .pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.govalid-pricing-wrapper .pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
}

.govalid-pricing-wrapper .pricing-features li:last-child {
    margin-bottom: 0;
}

.govalid-pricing-wrapper .pricing-features i.ti-check {
    font-size: 20px;
    color: #10b981;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Features Accordion */
.govalid-pricing-wrapper .pricing-features-accordion {
    margin-bottom: 20px;
}

.govalid-pricing-wrapper .pricing-features-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    transition: all 0.2s ease;
}

.govalid-pricing-wrapper .pricing-features-toggle:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.govalid-pricing-wrapper .pricing-features-toggle .toggle-icon {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.govalid-pricing-wrapper .pricing-features-accordion.open .toggle-icon {
    transform: rotate(180deg);
}

.govalid-pricing-wrapper .pricing-features-accordion.open .toggle-text::before {
    content: "Hide ";
}

.govalid-pricing-wrapper .pricing-features-accordion.open .toggle-text {
    font-size: 0;
}

.govalid-pricing-wrapper .pricing-features-accordion.open .toggle-text::before {
    font-size: 14px;
}

.govalid-pricing-wrapper .pricing-features-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.govalid-pricing-wrapper .pricing-features-accordion.open .pricing-features-content {
    max-height: 500px;
    padding-top: 16px;
}

.govalid-pricing-wrapper .pricing-features-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.govalid-pricing-wrapper .pricing-features-content li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
}

.govalid-pricing-wrapper .pricing-features-content li:last-child {
    margin-bottom: 0;
}

.govalid-pricing-wrapper .pricing-features-content i.ti-check {
    font-size: 16px;
    color: #10b981;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Call-to-Action Button */
.govalid-pricing-wrapper .pricing-cta {
    margin-top: auto;
}

.govalid-pricing-wrapper .pricing-cta .btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid transparent !important;
}

.govalid-pricing-wrapper .pricing-cta .btn-outline-primary {
    color: #227CCB !important;
    border-color: #227CCB !important;
    background: transparent !important;
}

.govalid-pricing-wrapper .pricing-cta .btn-outline-primary:hover {
    background: #227CCB !important;
    color: #ffffff !important;
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(34, 124, 203, 0.3);
}

.govalid-pricing-wrapper .pricing-cta .btn-primary {
    background: linear-gradient(135deg, #227CCB 0%, #1a62a0 100%) !important;
    color: #ffffff !important;
    border-color: #227CCB !important;
}

.govalid-pricing-wrapper .pricing-cta .btn-primary:hover {
    background: linear-gradient(135deg, #1a62a0 0%, #144d80 100%) !important;
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(34, 124, 203, 0.4);
}

/* Loading & Error States */
.govalid-pricing-loading,
.govalid-pricing-error {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.govalid-pricing-loading .spinner-border {
    width: 3rem;
    height: 3rem;
    color: #227CCB;
}

/* Entrance Animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pricing-card {
    animation: slideInUp 0.6s ease-out backwards;
}

.pricing-card:nth-child(1) {
    animation-delay: 0.1s;
}

.pricing-card:nth-child(2) {
    animation-delay: 0.2s;
}

.pricing-card:nth-child(3) {
    animation-delay: 0.3s;
}

.pricing-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* Responsive Design */
@media (max-width: 1199px) {
    .pricing-plan-name {
        font-size: 24px;
    }

    .pricing-price h2 {
        font-size: 36px;
    }
}

@media (max-width: 991px) {
    .govalid-pricing-cards-container {
        gap: 20px;
    }

    .pricing-card .card-body {
        padding: 28px 20px 24px;
    }
}

@media (max-width: 767px) {
    .govalid-pricing-wrapper {
        padding: 20px 15px;
    }

    /* Keep single row on mobile with horizontal scroll */
    .govalid-pricing-cards-container {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .govalid-pricing-wrapper .govalid-pricing-cards-container>div {
        flex: 0 0 auto;
        min-width: 280px;
        max-width: 300px;
        scroll-snap-align: start;
    }

    .pricing-plan-name {
        font-size: 22px;
    }

    .pricing-price h2 {
        font-size: 32px;
    }

    .pricing-card:hover {
        transform: translateY(-4px);
    }

    .pricing-card.featured:hover {
        transform: translateY(-6px) scale(1);
    }
}

/* =======================
   Standalone Search Box
   ======================= */
.govalid-faq-search-standalone {
    margin: 20px 0;
}

.govalid-faq-search-standalone .govalid-faq-search-container {
    max-width: 600px;
    margin: 0 auto;
}

.govalid-faq-search-standalone .search-results-info {
    text-align: center;
}

/* Large style */
.govalid-faq-search-standalone .input-group-lg .form-control {
    font-size: 18px;
    padding: 14px;
}

.govalid-faq-search-standalone .input-group-lg .input-group-text {
    font-size: 20px;
}