/**
 * RFP Guide Page Styles
 * Category-specific guidance for creating RFPs
 * URL: /{vertical}/{category-slug}/rfp-guide/
 */

/* ==========================================================================
   Page Color Override
   ========================================================================== */

body.light-theme {
    color: var(--color-primary);
}

body.light-theme .ai-input-outer .modal-form .ai-input-form-inner,
body.light-theme .ai-input-outer .modal-form,
body.light-theme .ai-input-outer .ai-input-form {
    background-color: rgb(248 249 237) !important;
}

body.light-theme #header-outer.at-top.transparent .modal-form .ai-input-form-inner {
    background-color: rgb(148 172 165 / 11%) !important;
}

body.light-theme .ai-input-outer .ai-input::placeholder {
    color: rgba(190, 189, 170, 0.8) !important;
}

#header-outer.at-top a#logo:before,
#header-outer a#logo:before {
    content: none !important;
}

#header-outer.at-top a#logo img,
#header-outer a#logo img {
    display: block !important;
}

/* ==========================================================================
   Article Container
   ========================================================================== */

.rfp-guide-article {
    max-width: var(--max-width-60);
    margin: 0 auto;
    padding: 2rem 1rem 10rem;
    color: var(--text-primary);
}

/* ==========================================================================
   Top Bar (Breadcrumbs)
   ========================================================================== */

.rfp-guide-top-bar {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.rfp-guide-breadcrumbs {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.rfp-guide-breadcrumbs a {
    color: var(--text-gray);
    text-decoration: none;
}

.rfp-guide-breadcrumbs a:hover {
    color: var(--text-primary);
}

.rfp-guide-breadcrumbs .separator {
    margin: 0 0.5rem;
    opacity: 0.5;
}

.rfp-guide-breadcrumbs .current {
    color: var(--text-primary);
}

/* ==========================================================================
   Article Header
   ========================================================================== */

.rfp-guide-header {
    margin: 4rem 0;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 3rem;
}

.rfp-guide-header h1 {
    font-size: 4rem;
    line-height: 4.5rem;
    margin-bottom: 0.5rem;
}

.rfp-guide-subtitle {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.rfp-guide-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.rfp-guide-meta .reading-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rfp-guide-meta .reading-time::before {
    content: '';
    width: 1rem;
    height: 1rem;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23252827" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="M12 6v6l4 2"/></svg>') no-repeat center;
    background-size: contain;
    opacity: 0.3;
}

.rfp-guide-summary p {
    font-size: 1.15rem;
    line-height: 1.7;
}

/* ==========================================================================
   Section Styling
   ========================================================================== */

.rfp-guide-section {
    margin-bottom: 8rem;
}

.rfp-guide-section .section-title {
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.rfp-guide-section h2:not(.section-title) {
    font-size: 1.6rem;
    line-height: 1.3;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

/* ==========================================================================
   Category Context Section
   ========================================================================== */

.rfp-context-content {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.rfp-context-content p {
    margin-bottom: 1.5rem;
}

.rfp-key-considerations {
    list-style: none;
    padding: 1.5rem;
    border-radius: var(--border-radius-p);
    background: white;
    box-shadow: 0 3px 32px 0 #c4c3b647;
    margin: 0;
}

.rfp-key-considerations li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-primary);
    list-style: none;
}

.rfp-key-considerations li:last-child {
    margin-bottom: 0;
}

.rfp-key-considerations li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 0.4rem;
    height: 0.4rem;
    background: color-mix(in srgb, var(--color-primary) 50%, transparent);
    border-radius: 50%;
}

/* ==========================================================================
   RFP/RFI/RFQ Definitions Section
   ========================================================================== */

.definitions-intro {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.rfp-definitions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.rfp-definition-card {
    background: var(--color-light-2);
    border-radius: var(--border-radius-p);
    padding: 2rem;
}

.rfp-definition-card h3 {
    font-size: 1.5rem;
}

.rfp-definition-card span {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.rfp-definition-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-body);
    margin: 0;
}

.definitions-context {
    margin-top: 3rem;
}

/* ==========================================================================
   Requirements Checklist Section
   ========================================================================== */

.checklist-intro {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.rfp-requirements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.rfp-requirements-category {
    background: #fcfff6;
    border-radius: var(--border-radius-p);
    padding: 2rem 0;
}

.rfp-requirements-category h3 {
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
}

.rfp-requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rfp-requirements-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-body);
}

.rfp-requirements-list li:last-child {
    margin-bottom: 0;
}

.checkbox-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
    border: 2px solid color-mix(in srgb, var(--color-primary) 20%, transparent);
    border-radius: 3px;
}

/* ==========================================================================
   Questions Section (Scrollable with Sticky Nav)
   ========================================================================== */

.rfp-questions-wrapper {
    display: flex;
    gap: 2rem;
}

.rfp-questions-nav {
    position: sticky;
    top: 0;
    flex-shrink: 0;
    align-self: flex-start;
    width: 14rem;
}

.rfp-questions-nav a {
    display: block;
    padding: 0.5rem 0;
    margin-bottom: 0.25rem;
    border-left: 3px solid transparent;
    color: color-mix(in srgb, var(--text-black) 80%, transparent);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.rfp-questions-nav a:hover {
    color: var(--text-black);
}

.rfp-questions-nav a.active {
    color: var(--text-link)
}

.rfp-copy-all-btn {
    margin-top: 1.5rem !important;
}

.rfp-copy-all-btn.copied {
    background: #1e7e34;
}

.rfp-questions-content {
    flex: 1;
    max-height: 50rem;
    overflow-y: auto;
    padding-right: 1rem;
    scroll-behavior: smooth;
    mask-image: linear-gradient(0deg, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 1) 3rem);
}

.rfp-questions-content.scrolling {
    mask-image: linear-gradient(0deg, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 1) 3rem, rgba(0, 0, 0, 1) calc(100% - 3rem), rgba(0, 0, 0, 0) 100%);
}

.rfp-questions-content.bottom {
    mask-image: linear-gradient(0deg, rgba(0, 0, 0, 1) calc(100% - 3rem), rgba(0, 0, 0, 0) 100%);
}

/* Custom scrollbar for questions container */
.rfp-questions-content::-webkit-scrollbar {
    width: 6px;
}

.rfp-questions-content::-webkit-scrollbar-track {
    background: var(--color-light-2);
    border-radius: 3px;
}

.rfp-questions-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.rfp-questions-content::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.rfp-question-section {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-light);
}

.rfp-question-section:first-child {
    padding-top: 0;
}

.rfp-question-section:last-child {
    border-bottom: none;
}

.question-section-header {
    margin-bottom: 1.5rem;
}

.question-section-header h3 {
    font-size: 1.6rem;
    line-height: 1.2;
}

.rfp-question-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rfp-question-item {
    padding: 1rem 0;
}

.rfp-question-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.question-text {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0.25rem;
}

.question-context {
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ==========================================================================
   Compliance Section
   ========================================================================== */

.compliance-intro {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.rfp-compliance-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.rfp-compliance-card {
    background: white;
    border-radius: var(--border-radius-p);
    padding: 1.5rem;
    box-shadow: 0 3px 32px 0 #c4c3b647;
}

.rfp-compliance-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.rfp-compliance-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-body);
    margin: 0;
}

/* ==========================================================================
   Evaluation Criteria Section
   ========================================================================== */

.evaluation-intro {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.rfp-eval-chart {
    margin-bottom: 2rem;
}

.rfp-eval-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.rfp-eval-bar:last-child {
    margin-bottom: 0;
}

.rfp-eval-label {
    width: 40%;
    flex-shrink: 0;
    padding-right: 1rem;
}

.criterion-name {
    display: block;
    font-size: 1.5rem;
    line-height: 1.3;
}

.criterion-desc {
    display: block;
    font-size: 0.8rem;
    margin-top: 0.125rem;
}

.rfp-eval-track {
    flex: 1;
    height: 0.5rem;
    margin-top: 0.75rem;
    border-radius: 100px;
    overflow: hidden;
}

.rfp-eval-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 100px;
    transition: width 1s ease-out;
}

.rfp-eval-percent {
    width: 5rem;
    text-align: right;
    font-size: 1rem;
    color: var(--color-primary);
}

.rfp-eval-adjust {
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-gray-light);
    color: var(--text-secondary);
}

.rfp-eval-adjust .adjust-intro {
    font-size: 0.9rem;
    padding-bottom: 0.6rem;
}

.rfp-eval-adjust ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rfp-eval-adjust li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    line-height: 1.5;
    list-style: none;
}

.rfp-eval-adjust li:last-child {
    margin-bottom: 0;
}

.rfp-eval-adjust li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 0.3rem;
    height: 0.3rem;
    background: color-mix(in srgb, var(--text-secondary) 50%, transparent);
    border-radius: 50%;
}

/* ==========================================================================
   Red Flags Section
   ========================================================================== */

.rfp-redflags-callout {
    padding: 2rem;
    border-radius: var(--border-radius-p-2);
    background: white;
    box-shadow: 0 3px 32px 0 #c4c3b647;
}

.rfp-redflags-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rfp-redflag-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-left: 2rem;
    margin-bottom: 1.25rem;
    position: relative;
}

.rfp-redflag-item:last-child {
    margin-bottom: 0;
}

.rfp-redflag-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.15rem;
    width: 1.1rem;
    height: 1.1rem;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23991b1b"><path d="M4 5v16h2V5H4zm4 0v9h12l-3-4.5L20 5H8z"/></svg>') no-repeat center;
    background-size: contain;
    opacity: 0.4;
}

.rfp-redflag-item h3 {
    font-size: 1rem;
    line-height: 1.2;
    margin: 0;
    color: #991b1b;
}

.rfp-redflag-item p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-body);
    margin: 0;
}

/* ==========================================================================
   Metrics Section
   ========================================================================== */

.metrics-intro {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.rfp-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.rfp-metric-card {
    background: white;
    border-radius: var(--border-radius-p);
    padding: 1rem 1.25rem;
    box-shadow: 0 3px 32px 0 #c4c3b647;
}

.rfp-metric-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.rfp-metric-card p {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-body);
    margin: 0;
    padding-bottom: 0.1rem;
}

/* ==========================================================================
   RFP Builder Promo Section (Mid-page CTA)
   ========================================================================== */

.rfp-builder-promo-section {
    margin-bottom: 5rem;
}

.rfp-builder-promo {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 3rem 4rem 4rem;
    background: var(--color-light-2);
    border-radius: var(--border-radius-p-2);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rfp-guide-section .rfp-builder-promo h2 {
    font-size: 2.3rem;
}

.rfp-builder-promo-cta.nectar-button.button-black {
    min-width: 20rem;
}

/* ==========================================================================
   Promo Section
   ========================================================================== */

.rfp-guide-promo-section {
    padding-top: 3rem;
    border-top: 1px solid var(--border-light);
}

.rfp-guide-promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.rfp-guide-promo-card {
    display: flex;
    flex-direction: column;
    padding: 3rem 4rem 4rem;
    background: var(--color-light-2);
    border-radius: var(--border-radius-p-2);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rfp-guide-promo-card:hover {
    transform: translateY(-2px);
}

.rfp-guide-promo-card .promo-card-content {
    flex: 1;
    margin-bottom: 1.5rem;
}

.rfp-guide-promo-card .promo-card-content h3 {
    font-size: 2.25rem;
    line-height: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.rfp-guide-promo-card .promo-card-content p {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-dark);
}

/* ==========================================================================
   Before Footer
   ========================================================================== */

.before-footer {
    background: var(--bg-dark) !important;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    .rfp-definitions-grid {
        grid-template-columns: 1fr;
    }

    .rfp-requirements-grid {
        grid-template-columns: 1fr;
    }

    .rfp-compliance-grid {
        grid-template-columns: 1fr;
    }

    .rfp-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .rfp-guide-article {
        padding: 1.5rem 1rem 5rem;
    }

    .rfp-guide-top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .rfp-guide-breadcrumbs {
        font-size: 0.8rem;
    }

    .rfp-guide-subtitle {
        font-size: 1.2rem;
    }

    .rfp-guide-section {
        margin-bottom: 5rem;
    }

    .rfp-guide-section .section-title {
        font-size: 2rem;
    }

    .rfp-questions-wrapper {
        flex-direction: column;
    }

    .rfp-questions-nav {
        display: none;
    }

    .rfp-copy-all-btn {
        width: auto;
        margin-top: 0;
        margin-left: auto;
    }

    .rfp-questions-content {
        max-height: none;
        padding-right: 0;
    }

    .rfp-eval-bar {
        flex-wrap: wrap;
    }

    .rfp-eval-label {
        width: 100%;
    }

    .rfp-eval-percent {
        width: 2.3rem;
        text-align: left;
    }

    .rfp-eval-track {
        flex: 1;
        min-width: 150px;
    }

    .rfp-metrics-grid {
        grid-template-columns: 1fr;
    }

    .rfp-redflags-callout {
        padding: 1.5rem;
    }

    .rfp-builder-promo {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
        gap: 1.5rem;
    }

    .rfp-builder-promo-content h2 {
        font-size: 1.5rem;
    }

    .rfp-builder-promo-content p {
        font-size: 0.95rem;
    }

    .rfp-guide-promo-grid {
        grid-template-columns: 1fr;
    }

    .rfp-guide-promo-card {
        padding: 2rem;
    }

    .rfp-guide-promo-card .promo-card-content h3 {
        font-size: 1.75rem;
        line-height: 2rem;
    }

    .rfp-builder-promo-cta.nectar-button.button-black {
        min-width: auto;
    }
}
