/* ========== PDFBUDDY BRAND STYLES ========== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* ========== PDF EDITOR STYLES ========== */
/* Editor Layout */
.editor-body {
    margin: 0;
    font-family: Poppins, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.editor-header {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 5px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.editor-logo {
    height: 40px;
}

.editor-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* "Zurück zum Quiz" — only for funnels declaring editor.back_route. */
.editor-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #dee1ea;
    border-radius: 8px;
    background: #fff;
    color: #3689f5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.editor-back-btn:hover {
    border-color: #3689f5;
    background: #f5f8ff;
}

.editor-back-btn:focus-visible {
    outline: 2px solid #3689f5;
    outline-offset: 2px;
}

/* Icon spacing here, not inline, so a compact header can drop the label. */
.editor-download-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    flex: 0 0 auto;
}

.editor-main-menu-icon {
    margin-right: 6px;
    flex: 0 0 auto;
}

/* ---- Compact header (opt-in: funnels.<key>.editor.compact_header) ----
   Content below is sized calc(100vh - 55px), so the header must stay one row;
   its buttons shed labels instead. title/aria-label keep the meaning. */
@media (max-width: 900px) {
    .editor-header--compact .editor-back-btn {
        padding: 10px 12px;
        gap: 0;
    }

    .editor-header--compact .editor-back-label {
        display: none;
    }
}

@media (max-width: 560px) {
    .editor-header--compact .editor-header-left {
        gap: 8px;
    }

    .editor-header--compact .editor-back-btn {
        padding: 8px 10px;
    }

    .editor-header--compact .editor-download-btn,
    .editor-header--compact .editor-main-menu-btn {
        padding: 10px 12px;
        justify-content: center;
    }

    /* No trailing gap, so each icon sits centred in its square button */
    .editor-header--compact .editor-download-icon,
    .editor-header--compact .editor-main-menu-icon {
        margin-right: 0;
    }

    .editor-header--compact .editor-download-label,
    .editor-header--compact .editor-main-menu-label {
        display: none;
    }
}

.editor-main-menu-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.editor-main-menu-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.editor-download-btn {
    background: #264bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.editor-download-btn:hover {
    background: #1d3fcc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(38, 75, 255, 0.3);
}

/* Header actions of the in-house editor: Search / Print / Download icons +
   Done. Only that editor renders .editor-header-actions, so the rules below
   never reach the other engines' headers. */
.editor-header-actions {
    display: flex;
    align-items: center;
    gap: 40px;
}

.editor-quick-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.editor-quick-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.editor-quick-btn:hover {
    background: #eef2f8;
}

.editor-quick-btn:focus-visible {
    outline: 2px solid #3689f5;
    outline-offset: 2px;
}

.editor-quick-icon {
    display: block;
}

.editor-quick-sep {
    width: 1px;
    height: 28px;
    background: #dee1ea;
}

.editor-done-btn {
    padding: 14px 29px;
    border: none;
    border-radius: 8px;
    background: #3689f5;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.editor-done-btn:hover {
    background: #1d6fd8;
}

.editor-done-btn:focus-visible {
    outline: 2px solid #1d6fd8;
    outline-offset: 2px;
}

/* A funnel that saves before it sells shows both exits. SAVE keeps the file and is secondary;
   Download buys it and keeps the primary weight. Same box as the solid button — the border
   replaces 1px of padding, so the two sit at identical heights. Colours: Figma Primary/Outline
   and Primary/Grey (the icon follows via currentColor). */
.editor-done-btn--secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border: 1px solid #dee1ea;
    background: #fff;
    color: #8181a5;
}

.editor-save-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.editor-done-btn--secondary:hover {
    background: #f5f5fa;
}

.editor-header-actions--dual {
    gap: 12px;
}

/* Desktop gets the icon row + Done; mobile keeps the labelled button as is. */
@media (min-width: 769px) {
    .editor-header-actions .editor-download-btn {
        display: none;
    }

    /* Both exits are named here, so the labelled Download comes back. */
    .editor-header-actions--dual .editor-download-btn {
        display: inline-flex;
    }
}

@media (max-width: 768px) {
    .editor-quick-actions,
    .editor-done-btn {
        display: none;
    }

    .editor-header-actions--dual .editor-done-btn {
        display: inline-flex;
    }
}

/* A phone fits the logo and both exits only when Download sheds its label (Save is named in the
   funnel's language — "Enregistrer" — and keeps it); title/aria-label keep Download's meaning. */
@media (max-width: 560px) {
    .editor-header-actions--dual {
        gap: 8px;
    }

    /* Both 38px tall: the border takes 1px of Save's padding, the icon sets Download's height. */
    .editor-header-actions--dual .editor-done-btn--secondary {
        padding: 7px 15px;
        line-height: 22px;
    }

    .editor-header-actions--dual .editor-download-btn {
        padding: 11px 12px;
    }

    .editor-header-actions--dual .editor-download-icon {
        width: 16px;
        height: 16px;
        margin-right: 0;
    }

    .editor-header-actions--dual .editor-download-label,
    .editor-header-actions--dual .editor-save-icon {
        display: none;
    }
}

/* A member's header also carries Main Menu; with it, Main Menu and Save shed their labels too.
   title/aria-label keep their meaning. */
@media (max-width: 560px) {
    .editor-header--member .editor-main-menu-btn {
        padding: 10px 12px;
        justify-content: center;
    }

    .editor-header--member .editor-main-menu-icon {
        margin-right: 0;
    }

    .editor-header--member .editor-main-menu-label,
    .editor-header--member .editor-header-actions--dual .editor-save-label {
        display: none;
    }

    /* 38px, like Download: 2px border + 8px padding around the 18px icon. */
    .editor-header--member .editor-header-actions--dual .editor-done-btn--secondary {
        padding: 8px 12px;
    }

    .editor-header--member .editor-header-actions--dual .editor-save-icon {
        display: block;
    }
}

.editor-content {
    height: calc(100vh - 55px);
    overflow: hidden;
}

/* Main Editor Container */
.main-editor-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
}

/* Combined Responsive Toolbar */
.combined-toolbar {
    background: white;
    border-bottom: 1px solid #ddd;
    padding: 12px;
}

.desktop-toolbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* Editor Tools Section */
.editor-tools {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    justify-content: center;
}

/* PDF Controls Section */
.pdf-controls-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.pdf-controls-inline button {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.pdf-controls-inline span {
    font-weight: 500;
    font-size: 14px;
}

/* Main Content Area */
.main-content-area {
    flex: 1;
    display: flex;
}

/* Page Thumbnails Sidebar */
.page-sidebar {
    width: 200px;
    background: #e9ecef;
    border-right: 1px solid #ddd;
    overflow-y: auto;
    padding: 10px;
}

.page-sidebar-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #555;
}

/* PDF Display Area */
.pdf-display-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f8f9fa;
    overflow: auto;
    position: relative;
}

.loading-message {
    padding: 40px;
    color: #666;
    font-size: 18px;
}

.pdf-canvas {
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: white;
    max-width: 100%;
    height: auto;
    cursor: grab;
}

.pdf-canvas:active {
    cursor: grabbing;
}

/* Separator */
.toolbar-separator {
    width: 1px;
    height: 24px;
    background: #ddd;
    margin: 0 8px;
}

/* Flexible Tool Button Styling */
:root {
    --tool-btn-width: 60px;
    --tool-btn-height: 50px;
    --tool-btn-padding: clamp(8px, 1.5vw, 15px);
    --tool-icon-size: clamp(20px, 3vw, 28px);
    --tool-gap: clamp(3px, 0.5vw, 8px);
}

.tool-btn {
    width: var(--tool-btn-width) !important;
    height: var(--tool-btn-height) !important;
    padding: var(--tool-btn-padding) !important;
    border: 1px solid #ddd !important;
    background: white !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}

.tool-btn svg {
    width: var(--tool-icon-size) !important;
    height: var(--tool-icon-size) !important;
    color: inherit;
}

.tool-btn:hover {
    background: #f0f0f0 !important;
    border-color: #ccc !important;
    transform: translateY(-1px) !important;
}

.tool-btn.active {
    background: #e3f2fd !important;
    border-color: #2196f3 !important;
    color: #1976d2 !important;
}

.editor-tools {
    gap: var(--tool-gap) !important;
}

/* Page Thumbnail Styling */
.page-thumbnail {
    width: 100%;
    max-width: 160px;
    margin-bottom: 10px;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-thumbnail:hover {
    border-color: #007bff;
    transform: scale(1.02);
}

.page-thumbnail.active {
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.page-thumbnail canvas {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
}

.page-number {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-sidebar.desktop-only {
        display: none !important;
    }

    .editor-content {
        height: calc(100vh - 55px) !important;
    }
}

/* Smaller screens get more compact spacing */
@media (max-width: 1100px) {
    .desktop-toolbar {
        gap: 20px !important;
    }

    .combined-toolbar {
        padding: 10px !important;
    }
}

@media (max-width: 900px) {
    :root {
        --tool-btn-width: 50px;
        --tool-btn-height: 50px;
        --tool-icon-size: clamp(19px, 3.2vw, 27px);
    }

    .desktop-toolbar {
        flex-direction: column !important;
        gap: 12px !important;
    }
}

@media (max-width: 768px) {
    :root {
        --tool-btn-width: 50px;
        --tool-btn-height: 50px;
        --tool-icon-size: clamp(18px, 3.5vw, 26px);
    }

    .editor-header {
        padding: 5px 20px;
    }

    .editor-logo {
        height: 35px;
    }

    .editor-download-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .combined-toolbar {
        padding: 10px !important;
    }

    .editor-content {
        height: calc(100vh - 55px) !important;
    }
}

@media (max-width: 600px) {
    :root {
        --tool-btn-width: 50px;
        --tool-btn-height: 50px;
    }

    .mobile-hide {
        display: none !important;
    }

    .combined-toolbar {
        padding: 8px !important;
    }

    .pdf-controls-inline button {
        padding: 4px 8px !important;
        font-size: 12px !important;
    }

    .pdf-controls-inline span {
        font-size: 12px !important;
    }

    #zoomLevel {
        font-size: 12px !important;
        min-width: 35px !important;
    }

    /* Mobile PDF adjustments */
    .pdf-display-area {
        padding: 10px !important;
    }

    .pdf-canvas {
        width: 100% !important;
        max-width: 100% !important;
    }

    .editor-content {
        height: calc(100dvh - 50px) !important; /* Dynamic viewport height for mobile */
    }

    .pdf-editor-wrapper {
        height: 100% !important;
        min-height: 400px !important;
    }

    #pdfjs-express-container {
        height: 100% !important;
        min-height: 400px !important;
    }
}

@media (max-width: 450px) {
    :root {
        --tool-btn-width: 45px;
        --tool-btn-height: 45px;
        --tool-icon-size: clamp(16px, 4vw, 24px);
    }
}

@media (max-width: 400px) {
    :root {
        --tool-btn-width: 40px;
        --tool-btn-height: 40px;
        --tool-icon-size: clamp(16px, 4vw, 24px);
    }

    .editor-header {
        padding: 5px 15px;
    }
}

@media (max-width: 350px) {
    .very-small-hide {
        display: none !important;
    }
}

/* Conversion Popup */
.conversion-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex; /* Default to visible for PDFWORD funnel */
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Full-height scrollable state when popup is too large */
.conversion-popup-overlay.scrollable {
    align-items: flex-start;
    padding: 0;
    overflow: hidden; /* Prevent overlay from scrolling */
}

.conversion-popup-overlay.scrollable .conversion-popup {
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 0;
    border-radius: 0;
    padding-top: 30px;
    padding-bottom: 60px; /* Extra bottom padding to ensure content can scroll fully */
    padding-left: 30px;
    padding-right: 30px;
    box-sizing: border-box;
    /* Disable smooth scrolling for instant scroll */
    scroll-behavior: auto !important;
    -webkit-overflow-scrolling: touch;
    /* Ensure content can scroll */
    position: relative;
    /* Prevent flash during transitions */
    transition: none;
}

/* Hide only if explicitly set via inline style */
.conversion-popup-overlay[style*="display: none"] {
    display: none !important;
}

.conversion-popup {
    background: white;
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    font-family: Poppins, sans-serif;
}

/* Close Button */
.conversion-popup-close {
    position: absolute;
    top: 5px;
    right: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #999;
    transition: all 0.2s ease;
    z-index: 10;
    opacity: 0.5;
}

.conversion-popup-close:hover {
    background: #f5f5f5;
    color: #666;
    opacity: 0.8;
}

.conversion-popup-close:active {
    background: #f0f0f0;
    opacity: 1;
}

.conversion-popup-close svg {
    display: block;
}

.popup-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    font-family: Poppins, sans-serif;
}

.popup-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    font-family: Poppins, sans-serif;
}

.format-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.format-btn {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #333;
    position: relative;
    min-height: 60px;
    font-family: Poppins, sans-serif;
}

.format-btn:hover {
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.format-btn.selected {
    border-color: #264bff;
    background: #f0f4ff;
    color: #264bff;
    box-shadow: 0 2px 12px rgba(38, 75, 255, 0.15);
}

.format-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 16px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.format-btn.selected .format-radio {
    border-color: #264bff;
    background: #264bff;
}

.format-btn.selected .format-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.format-content {
    display: flex;
    align-items: center;
    flex: 1;
}

.format-name {
    font-size: 16px;
    font-weight: 600;
    margin-right: 12px;
    flex: 1;
    font-family: Poppins, sans-serif;
}

.format-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.filename-section {
    margin-bottom: 25px;
}

.filename-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    text-align: left;
    font-family: Poppins, sans-serif;
}

.filename-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    font-family: Poppins, sans-serif;
}

.filename-input:focus {
    outline: none;
    border-color: #264bff;
    box-shadow: 0 0 0 3px rgba(38, 75, 255, 0.1);
}

.download-btn {
    width: 100%;
    padding: 16px 24px;
    background: #264bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: Poppins, sans-serif;
}

.download-btn:hover {
    background: #1d3fcc;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(38, 75, 255, 0.4);
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .conversion-popup-overlay {
        padding: 15px;
    }

    .conversion-popup {
        padding: 20px 15px;
        margin: 0;
        max-width: none;
    }

    .conversion-popup-close {
        top: 0px;
        right: 0px;
    }

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

    .format-buttons {
        gap: 8px;
    }

    .format-btn {
        padding: 12px 14px;
        min-height: 50px;
    }

    .format-name {
        font-size: 14px;
    }

    .format-icon {
        width: 20px;
        height: 20px;
    }

    .format-radio {
        width: 16px;
        height: 16px;
        margin-right: 10px;
    }

    .format-btn.selected .format-radio::after {
        width: 5px;
        height: 5px;
    }

    .download-btn {
        font-size: 15px;
        padding: 12px 18px;
    }
}

/* Processing State */
.popup-processing {
    text-align: center;
    padding: 20px 0;
    font-family: Poppins, sans-serif;
}

.processing-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    font-family: Poppins, sans-serif;
}

.progress-container {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-bar {
    height: 100%;
    background: var(--button-color, #264bff);
    border-radius: 4px;
    width: 0%;
    transition: width 0.1s ease;
}

.processing-text {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    font-family: Poppins, sans-serif;
}

/* Email State */
.popup-email {
    text-align: center;
    font-family: Poppins, sans-serif;
}

.email-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    font-family: Poppins, sans-serif;
}

.email-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    font-family: Poppins, sans-serif;
}

.email-section {
    margin-bottom: 0;
}

.email-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    text-align: left;
    font-family: Poppins, sans-serif;
}

.email-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    font-family: Poppins, sans-serif;
}

.email-input:focus {
    outline: none;
    border-color: var(--button-color, #264bff);
    box-shadow: 0 0 0 3px rgba(38, 75, 255, 0.1);
}

.final-download-btn {
    width: 100%;
    padding: 16px 24px;
    background: var(--button-color, #264bff);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: Poppins, sans-serif;
}

.final-download-btn:hover {
    background: var(--button-color-hover, #1d3fcc);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(38, 75, 255, 0.4);
}

.final-download-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Plan Selection State */
.popup-plans {
    text-align: center;
    font-family: Poppins, sans-serif;
}

.document-ready {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px 20px;
    background: #f0fdf4;
    border: 1px solid #22c55e;
    border-radius: 8px;
    font-family: Poppins, sans-serif;
}

.checkmark-icon {
    flex-shrink: 0;
}

.ready-text {
    font-size: 16px;
    font-weight: 600;
    color: #15803d;
}

.plans-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    font-family: Poppins, sans-serif;
}

.plans-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.plan-option {
    position: relative;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    font-family: Poppins, sans-serif;
}

.plan-option:hover {
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.plan-option.selected {
    border-color: var(--button-color, #264bff);
    background: #f0f4ff;
    box-shadow: 0 2px 12px rgba(38, 75, 255, 0.15);
}

.plan-badge {
    position: absolute;
    top: -8px;
    right: 15px;
    background: #22c55e;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    font-family: Poppins, sans-serif;
    text-transform: uppercase;
}

.plan-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin: 0 auto 15px;
    position: relative;
    transition: all 0.2s ease;
}

.plan-option.selected .plan-radio {
    border-color: var(--button-color, #264bff);
    background: var(--button-color, #264bff);
}

.plan-option.selected .plan-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.plan-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
    font-family: Poppins, sans-serif;
}

.plan-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--button-color, #264bff);
    margin-bottom: 8px;
    font-family: Poppins, sans-serif;
}

.plan-description {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    font-family: Poppins, sans-serif;
}

.continue-btn {
    width: 100%;
    padding: 16px 24px;
    background: var(--button-color, #264bff);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: Poppins, sans-serif;
}

.continue-btn:hover {
    background: var(--button-color-hover, #1d3fcc);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(38, 75, 255, 0.4);
}

/* Prevent hover effects during resize to avoid visual artifacts */
.conversion-popup-overlay.scrollable .continue-btn:hover {
    transform: none;
    box-shadow: none;
}

.continue-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Checkout State */
.popup-checkout {
    font-family: Poppins, sans-serif;
}

/* Override checkout form styles to fit in popup */
.popup-checkout .checkout-wrapper {
    background: none;
    padding: 0;
    margin: 0;
}

.popup-checkout .checkout-container {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    max-width: none;
}

.popup-checkout .checkout-section-title {
    font-family: Poppins, sans-serif;
    font-size: 16px;
    margin-bottom: 15px;
    margin-top: 20px;
    text-align: left;
}

.popup-checkout .checkout-section-title:first-child {
    margin-top: 0;
}

.popup-checkout .input-group {
    margin-bottom: 15px;
}

.popup-checkout input:focus,
.popup-checkout select:focus {
    border-color: var(--button-color, #264bff) !important;
    box-shadow: 0 0 0 3px rgba(38, 75, 255, 0.1) !important;
    outline: none !important;
}

.popup-checkout #checkout-btn {
    background: var(--button-color, #264bff) !important;
    border-radius: 8px;
    font-family: Poppins, sans-serif;
    font-size: 16px;
    padding: 14px 24px;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popup-checkout #checkout-btn:hover {
    opacity: 0.8 !important;
    transform: none !important;
    box-shadow: none !important;
}

.popup-checkout .validation-message {
    font-family: Poppins, sans-serif;
    font-size: 12px;
    text-align: left;
}

.popup-checkout .input-group > div[style*="color"] {
    text-align: left !important;
}

/* Fix for dynamically created name validation errors */
.popup-checkout .input-group div {
    text-align: left;
}

.popup-checkout .input-group div[style*="margin-top"] {
    text-align: left !important;
}

.popup-checkout .expiry-cvv-container {
    display: flex;
    gap: 12px;
}

.popup-checkout .expiry-cvv-container .input-group {
    flex: 1;
}

.checkout-summary {
    background: #f8f9ff;
    border: 2px solid var(--button-color, #264bff);
    border-radius: 12px;
    padding: 10px 20px;
    margin-bottom: 15px;
    text-align: center;
}

.checkout-summary-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-family: Poppins, sans-serif;
}

.checkout-summary-plan {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
    font-family: Poppins, sans-serif;
}

.checkout-summary-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--button-color, #264bff);
    font-family: Poppins, sans-serif;
}

/* Mobile adjustments for plans */
@media (max-width: 480px) {
    .plans-container {
        gap: 12px;
    }

    .plan-option {
        padding: 16px;
    }

    .plan-title {
        font-size: 16px;
    }

    .plan-price {
        font-size: 20px;
    }

    .plan-description {
        font-size: 13px;
    }

    .continue-btn {
        font-size: 16px;
        padding: 14px 20px;
    }

    .checkout-summary {
        padding: 16px;
    }

    .checkout-summary-plan {
        font-size: 16px;
    }

    .checkout-summary-price {
        font-size: 20px;
    }
}

/* Hide states */
.popup-state {
    display: none;
}

.popup-state.active {
    display: block;
}

/* ========== THANK YOU PAGE STYLES ========== */

/* Thank You Page Layout */
.thankyou-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: Poppins, sans-serif;
}

.thankyou-product-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 40px;
    text-align: center;
}

.thankyou-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    font-family: Poppins, sans-serif;
}

/* Simple Order Details (like VIN) */
.order-details {
    margin-bottom: 20px;
    font-size: 1rem;
}

.order-details p {
    margin: 4px 0;
}

.order-details .order-label {
    font-weight: bold;
    color: #555;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-details span {
    font-weight: 600;
    color: var(--button-color, #264bff);
}

/* Product Block (EXACT VIN styling) */
.product-block {
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    background: #ffffff;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.08);
    text-align: left;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.product-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.status-tag {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-tag.ready {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.delivery-info {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

/* Thank You Download Button - Same as Popup */
.product-block .download-btn {
    width: 100%;
    padding: 16px 24px;
    background: var(--button-color, #264bff);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: Poppins, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0;
}

.product-block .download-btn:hover:not(:disabled) {
    background: var(--button-color-hover, #1d3fcc);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(38, 75, 255, 0.4);
}

.product-block .download-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.product-block .download-text {
    color: white;
}

/* Contact/Support Box (EXACT VIN styling) */
.login-access-box {
    border: 1px solid #dcdcdc;
    background-color: #ffffff;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.08);
    margin-bottom: 15px;
}

.login-access-title {
    font-size: 1rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 20px;
}

.login-button {
    display: inline-block;
    background-color: var(--button-color, #264bff);
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.login-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.login-note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 15px;
    margin-bottom: 0;
}

.login-note a {
    color: var(--button-color, #264bff);
    text-decoration: none;
    font-weight: 600;
}

.login-note a:hover {
    text-decoration: underline;
}

/* Bundle box: the member-area button, kept smaller than the download so the file stays the point */
.bundle-box .login-access-title {
    margin-bottom: 10px;
}

.bundle-text {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 10px;
}

.bundle-remaining {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--button-color, #264bff);
    margin: 0 0 20px;
}

.bundle-box .login-button {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* At phone width the uppercase label wraps and the button grows to the download button's size */
@media (max-width: 480px) {
    .bundle-box .login-button {
        font-size: 14px;
        padding: 12px 18px;
        letter-spacing: 0.3px;
    }
}


/* Additional Info Cards */
.additional-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.info-card {
    border: 1px solid #dcdcdc;
    background-color: #ffffff;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.info-card:hover {
    border-color: var(--button-color, #264bff);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(38, 75, 255, 0.1);
}

.info-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    font-family: Poppins, sans-serif;
}

.info-card p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .thankyou-wrapper {
        padding: 15px;
    }

    .thankyou-product-card {
        padding: 25px 20px;
    }

    .thankyou-title {
        font-size: 24px;
    }

    .file-info {
        flex-direction: column;
        text-align: center;
    }

    .file-details {
        text-align: center;
    }

    .download-button {
        font-size: 18px;
        padding: 18px 25px;
    }

    .additional-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .thankyou-product-card {
        padding: 20px 15px;
    }

    .thankyou-title {
        font-size: 22px;
    }

    .download-section {
        padding: 20px;
    }

    .download-button {
        font-size: 16px;
        padding: 16px 20px;
    }
}

/* ========== END THANK YOU PAGE STYLES ========== */

/* PDF Editor Loading and Error States */
.editor-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 1000;
}

.editor-loading.hidden {
    display: none;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid var(--custom-elements-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: #6b7280;
    font-size: 14px;
}

.editor-error {
    padding: 40px;
    text-align: center;
    color: #ef4444;
}

.editor-error h3 {
    margin-bottom: 16px;
    color: #dc2626;
}

.editor-error p {
    margin-bottom: 24px;
    color: #6b7280;
}

.retry-button {
    background: var(--custom-elements-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.retry-button:hover {
    opacity: 0.9;
}

/* PDF Editor Wrapper - Full Height */
.pdf-editor-wrapper {
    width: 100%;
    height: 100%;
    min-height: 600px;
    position: relative;
}

/* PDF.js Express container */
#pdfjs-express-container {
    width: 100%;
    height: 100%;
    min-height: 600px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
}

/* ========== END PDF EDITOR STYLES ========== */
/*
 * BRAND DESIGN SYSTEM:
 * - Primary Color: #264bff (Brand Blue)
 * - Header/Footer: #eff2ff (Light Blue-Gray)
 * - Border Radius: 8px (Consistent across all elements)
 * - Shadows: 0 2px 8px rgba(0,0,0,0.08) (Light), 0 4px 16px rgba(0,0,0,0.12) (Enhanced)
 * - Spacing: 15px, 20px, 30px increments
 * - Font: Poppins
 * - Focus Ring: 3px rgba(38, 75, 255, 0.1)
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

body {
    margin: 0;
    font-family: Poppins, sans-serif;
    background-color: #f2f5f9;
}

/*This is to make the spacing if content is small nice (footer at the right place)*/
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    overflow-x: hidden;
}


main {
    flex: 1;
}

button, input, select, textarea {
    font-family: inherit;
}

/*funnel header*/
.funnel-header {
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    order: -1; /* Ensure header appears first */
    position: relative;
    z-index: 100;
}

header img {
    height: 40px;
}

.header-contact-bar {
    color: #000;
    background-color: #eff2ff;
    text-align: center;
    font-size: 0.95rem;
    border-top: 1px #264bff40 solid;
    border-bottom: 1px #264bff40 solid;
    padding: 0px 10px;
}

.header-contact-bar a {
    color: #000;
    text-decoration: underline;
}

/*main content*/
main {
    padding: 30px 16px;
}

/*funnel footer*/
.footer-contact-bar {
    background-color: #eff2ff;
    color: #000;
    text-align: center;
    font-size: 0.95rem;
    border-top: 1px #264bff40 solid;
    border-bottom: 1px #264bff40 solid;
    padding: 0px 10px;
}

.footer-contact-bar a {
    color: #000;
    text-decoration: underline;
}

.footer {
    background-color: #eff2ff;
    color: #000;
    padding: 20px 10px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.footer-left,
.footer-right {
    flex: 1;
    min-width: 220px;
}

.footer-logo {
    height: 40px;
    max-width: 80%;
    margin-bottom: 0.75rem;
    display: block;
}

.footer-help-link {
    display: inline-block;
    font-weight: bold;
    text-decoration: none;
    color: #000;
    font-size: 0.95rem;
}

.footer-right strong {
    display: block;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-right ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-right ul li {
    margin-bottom: 1.2rem;
}

.footer-right a {
    color: #000;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    max-width: 1200px;
    margin: 2rem auto 0;
}

.payment-logos {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.payment-logos img {
    height: 50px;
}


/* Responsive */
@media (max-width: 768px) {
    header img {
        height: 40px;
    }

    .footer-left {
        display: flex;
        flex-direction: column;
    }

    .footer-logo {
        margin-right: auto;
        margin-bottom: 0;
    }

    .footer-help-link {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .footer-right {
        text-align: left;
        width: 100%;
    }

    .payment-logos img {
        height: 50px; /* override the smaller size */
    }
}


@media (max-width: 480px) {
    header img {
        height: 40px;
    }
}

/*MAIN CONTENT AND LAYOUT STYLE*/
.main-support-bar {
    background-color: #eff2ff;
    color: #000;
    text-align: center;
    font-size: 0.95rem;
    border-bottom: 1px #264bff40 solid;
    padding: 0px 10px;
}

.main-support-bar a {
    color: #000;
    text-decoration: underline;
}

/* Navbar container */
.main-navbar {
    background-color: var(--header-bg);
    color: var(--font-color);
    padding: 10px 10px;
}

.main-navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.header-logo {
    height: 40px;
    display: block;
}

/* Nav Sections */
.main-navbar-left,
.main-navbar-center,
.main-navbar-right {
    display: flex;
    align-items: center;
}

.main-navbar-center {
    flex: 1;
    justify-content: center;
}

/* Nav Links */
.main-nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav-links li a {
    color: var(--font-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
}

/* Right side buttons */
.main-navbar-right {
    gap: 20px;
}

.main-cancel-link {
    color: var(--font-color);
    text-decoration: none;
    font-size: 0.95rem;
}

.main-login-button {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.main-login-button:hover {
    opacity: 0.8;
}

/* Hamburger menu button */
.main-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--font-color);
    cursor: pointer;
}

.main-menu-toggle .dt-burger {
    margin: 6px 4px;
    color: inherit;
}

/* Start hidden, 0 height */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background-color: var(--header-bg);
    text-align: center;
    padding: 0 10px; /* no vertical padding yet */
}

/* When active, expand */
.mobile-menu.active {
    max-height: 300px; /* or something larger if needed */
    padding-top: 20px;
    padding-bottom: 20px;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-nav-links .mobile-nav-link {
    color: var(--font-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
}

/* Show toggle and hide normal nav on small screens */
@media (max-width: 768px) {
    .main-navbar-container {
        flex-direction: row; /* ← updated */
        justify-content: space-between; /* ← ensures logo left, button right */
        align-items: center;
        gap: 0; /* optional, remove vertical spacing */
    }

    .main-navbar-center,
    .main-navbar-right {
        display: none;
    }

    .main-menu-toggle {
        display: block;
    }

    .mobile-menu.active {
        display: block;
    }

    .header-logo {
        height: 40px;
    }

    .main-nav-links {
        gap: 16px;
        font-size: 0.9rem;
    }

    .main-navbar-right {
        justify-content: center;
    }
}

/* ========== MAIN PAGE CONTENT STYLES ========== */
/* Used on: home.blade.php (and other main layout pages) */
/* Purpose: Hero sections, containers, and generic page layouts */

.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0; /* ensure no extra side padding; rely on main's padding */
}

.hero-section {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 40px 0 40px; /* unified vertical rhythm */
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.hero-content {
    flex: 1 1 50%;
    width: 50%;
}

.hero-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1c1c1c;
    margin-bottom: 20px;
}

.hero-subtext {
    font-size: 1.2rem;
    color: #4a4a4a;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Mobile-only upload button hidden by default */
.mobile-upload-btn {
    display: none;
}

.hero-button {
    background-color: var(--button-color);
    color: white;
    padding: 12px 30px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.hero-button:hover {
    opacity: 0.95;
}

.hero-image {
    flex: 1 1 45%;
    text-align: center;
    min-width: 300px;
    margin-top: 40px; /* adds space between button and image on mobile */
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}


/* Mobile styles */
@media screen and (max-width: 768px) {
    .home-container {
        padding: 0 15px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-section {
        flex-direction: column;
        padding: 20px 0 20px; /* rely on main container gutters */
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-content {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-heading {
        font-size: 1.8rem; /* smaller heading */
        text-align: center;
    }

    .hero-subtext {
        font-size: 1rem;
        text-align: center;
    }

    .hero-image {
        margin-top: 60px; /* more space from the button */
    }

    /* Hide drag-and-drop on mobile; show standalone mobile upload button */
    /* BUT keep pdfmerge drop zone visible */
    .drag-drop-area:not(.pdfmerge-drop-zone) {
        display: none !important;
    }

    .mobile-upload-btn {
        display: inline-block !important;
        margin: 0 auto 10px;
    }
}


/*Main page content style reviews and trust badges section*/
.trust-section {
    background-color: #fff;
    padding: 20px 0; /* unified vertical rhythm */
    text-align: center;
    border-radius: 10px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.08);
    margin: 40px 0;
}

.trust-header {
    margin-bottom: 40px;
}

.trust-title {
    font-size: 2.5rem; /* Match hero-heading */
    font-weight: 700;
    color: #1c1c1c;
    margin: 0 0 10px 0; /* remove default top margin to balance top spacing */
}

.trust-rating {
    font-size: 1.2rem;
    color: #555;
}

/* Review stars sizing and spacing */
.trust-rating .rating-star {
    width: 20px;
    height: 20px;
    vertical-align: -3px;
    margin-right: 0; /* spacing handled by .rating-stars */
}

/* Review card stars - ensure consistent sizing */
.review-stars .rating-star {
    width: 16px;
    height: 16px;
    display: inline-block;
    flex-shrink: 0;
}

.rating-stars {
    display: inline-flex;
    gap: 1px;
    vertical-align: middle;
    margin-right: 6px; /* space before the numeric rating */
}

.trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}


.trust-badge {
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
    .trust-title {
        font-size: 1.8rem;
    }

    .trust-rating {
        font-size: 1rem;
    }

    /* Reduce padding on mobile to feel less boxed-in */
    .trust-section {
        padding: 20px 0; /* rely on main container gutters */
    }

    .trust-badges {
        flex-direction: row; /* Force horizontal on mobile */
        justify-content: center;
        gap: 20px;
    }

    .trust-badge {
        max-width: 80px;
    }

}

/* Extra-small devices: even tighter sides */
@media screen and (max-width: 360px) {
    .trust-section {
        padding: 16px 0; /* rely on main container gutters */
    }
}

/*Main Page Content Features Sectino*/
.features-section {
    text-align: center;
    margin: 40px 0; /* unified vertical rhythm */
}

.features-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1c1c1c;
    margin-bottom: 10px;
}

.features-subtext {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/*Main Page Content - 3 Steps Section*/
.steps-section {
    text-align: center;
    margin: 20px 0; /* reduce top gap below header */
    padding: 16px 0;
}

.steps-title {
    font-size: 2.5rem; /* match trust-title and features-title */
    font-weight: 700;
    color: #1c1c1c;
    margin-bottom: 10px;
}

.steps-subtext {
    font-size: 1.1rem;
    color: #666;
    margin: 0 auto 40px;
    max-width: 800px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.08);
    text-align: left;
}

.step-icon {
    height: 40px;
    width: auto;
    margin-bottom: 12px;
}

.step-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1c1c1c;
    margin: 0 0 6px 0;
}

.step-description {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

@media screen and (max-width: 768px) {
    .steps-title {
        font-size: 1.8rem;
    }

    .steps-subtext {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .step-icon {
        height: 36px;
    }
}

/*Main Page Content - Insight Section (Text/Image split)*/
.insight-section {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr; /* slightly larger text column */
    gap: 30px;
    align-items: center;
    max-width: 1200px;
    margin: 40px auto; /* unified vertical rhythm */
    padding: 20px 0;
}

.insight-title {
    font-size: 2.5rem; /* match other H2s */
    font-weight: 700;
    color: #1c1c1c;
    margin: 0 0 10px 0;
}

.insight-subtext {
    font-size: 1.1rem;
    color: #4a4a4a;
    line-height: 1.7;
    margin: 0;
}

.insight-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

@media screen and (max-width: 900px) {
    .insight-section {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 40px auto;
    }

    .insight-title {
        font-size: 1.8rem;
    }

    .insight-subtext {
        font-size: 1rem;
    }
}

/* (removed) Global mobile side paddings override — rely on main container gutters */

/* Subtext visibility toggles */
.subtext-desktop {
    display: block;
}

.subtext-mobile {
    display: none;
}

@media screen and (max-width: 768px) {
    .subtext-desktop {
        display: none !important;
    }

    .subtext-mobile {
        display: block !important;
    }
}

/*Main Page Content - Expect Section (6 feature boxes)*/
.expect-section {
    text-align: center;
    margin: 40px 0; /* unified vertical rhythm */
    padding: 20px 0;
}

.expect-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1c1c1c;
    margin: 0 0 10px 0;
}

.expect-subtext {
    font-size: 1.1rem;
    color: #666;
    margin: 0 auto 40px;
    max-width: 900px;
}

.expect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.expect-card {
    background-color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 20px;
    text-align: left;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.expect-icon {
    height: 40px;
    width: auto;
    margin-bottom: 12px;
}

.expect-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1c1c1c;
    margin: 0 0 8px 0;
}

.expect-card-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

@media screen and (max-width: 768px) {
    .expect-title {
        font-size: 1.8rem;
    }

    .expect-subtext {
        font-size: 1rem;
    }

    .expect-icon {
        height: 36px;
    }
}

/* Force 3 columns on desktop for a 3x2 layout */
@media screen and (min-width: 992px) {
    .expect-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/*Main Page Content - VIN CTA Section*/
.cta-vin-section {
    margin: 40px 0;
    padding: 20px 0;
}

.cta-vin-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.08);
    max-width: 700px; /* align with hero form width */
    margin: 0 auto;
    padding: 24px;
    text-align: center;
}

.cta-vin-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1c1c1c;
    margin: 0 0 8px 0;
}

.cta-vin-subtext {
    font-size: 1.05rem;
    color: #555;
    margin: 0 0 18px 0;
}

.cta-vin-form {
    display: grid;
    grid-template-columns: 1fr; /* stack like the top form */
    gap: 12px;
    max-width: 600px; /* similar to hero form width */
    margin: 0 auto;
    align-items: stretch;
}

/* Match primary CTA button styling to the VIN form button */
.cta-vin-form .hero-button,
.cta-vin-card .hero-button,
.pricing-cta-button {
    width: 100%;
    padding: 12px 0; /* mirror top form button for identical height */
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    background-color: var(--button-color);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    box-sizing: border-box;
    text-align: center;
    display: block;
}

@media screen and (max-width: 768px) {
    .cta-vin-title {
        font-size: 1.8rem;
    }

    .cta-vin-subtext {
        font-size: 1rem;
    }

    .cta-vin-form {
        grid-template-columns: 1fr;
    }
}

/* Reviews Section */
.reviews-section {
    margin: 40px 0;
    padding: 20px 0;
}

.reviews-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1c1c1c;
    text-align: center;
    margin: 0 0 20px 0;
}

.reviews-viewport {
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    padding: 8px 0;
}

.reviews-viewport::before, .reviews-viewport::after {
    content: "";
    position: absolute;
    top: 0;
    width: 24px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.reviews-viewport::before {
    left: 0;
    background: linear-gradient(to right, rgba(248, 249, 250, 1) 0%, rgba(248, 249, 250, 0) 100%);
}

.reviews-viewport::after {
    right: 0;
    background: linear-gradient(to left, rgba(248, 249, 250, 1) 0%, rgba(248, 249, 250, 0) 100%);
}

.reviews-track {
    display: flex;
    gap: 20px;
    align-items: stretch;
    will-change: transform;
}

.review-card {
    flex: 0 0 360px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    padding: 16px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    background: transparent;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.review-meta {
    display: flex;
    flex-direction: column;
}

.review-name {
    font-weight: 700;
    color: #1c1c1c;
}

.review-text {
    color: #555;
    line-height: 1.6;
    margin: 0;
    font-size: 0.98rem;
}

/* Stepwise slide: show ~3 cards on desktop, move by one at intervals */
.reviews-track {
    transition: transform 600ms ease;
}

@media screen and (max-width: 768px) {
    .review-card {
        flex-basis: calc(100% - 32px);
    }

    /* one full card visible, small breathing room */
    .reviews-title {
        font-size: 1.8rem;
    }

    .reviews-viewport {
        padding: 6px 0;
    }

    .reviews-viewport::before, .reviews-viewport::after {
        width: 12px;
    }
}

/* Support Section */
.support-section {
    padding: 20px 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    margin: 40px 0;
}

.support-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.support-avatars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 14px;
}

.support-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--custom-elements-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    margin-left: -10px;
}

.support-avatar:first-child {
    margin-left: 0;
}

.support-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1c1c1c;
    margin: 0 0 6px 0;
}

.support-subtext {
    font-size: 1.05rem;
    color: #555;
    margin: 0 0 16px 0;
}

.support-cta {
    margin-top: 16px;
}

.support-inline-link {
    color: #1c1c1c;
    font-weight: 700;
    text-decoration: underline;
}

.support-inline-link:hover {
    text-decoration: underline;
    opacity: 0.9;
}

.support-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 10px auto 0;
}

.support-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 0;
    background: transparent;
    box-shadow: none;
}

.support-icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.support-stat-strong {
    font-weight: 800;
    color: #1c1c1c;
    font-size: 1.8rem;
    line-height: 1;
}

.support-stat-sub {
    color: #666;
    font-size: 1rem;
}

@media screen and (max-width: 768px) {
    .support-title {
        font-size: 1.8rem;
    }

    .support-wrapper {
        padding: 0;
    }

    .support-avatars {
        margin-bottom: 10px;
    }

    .support-avatar {
        width: 44px;
        height: 44px;
        margin-left: -8px;
        border-width: 2px;
    }

    .support-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .support-icon {
        width: 44px;
        height: 44px;
    }

    .support-stat-strong {
        font-size: 1.6rem;
    }
}

.feature-card {
    background-color: #f9fbff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.08);
    text-align: left;
}

.feature-icon {
    height: 40px;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1c1c1c;
}

.feature-description {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

@media screen and (max-width: 768px) {
    .features-title {
        font-size: 1.8rem; /* match .hero-heading */
    }

    .features-subtext {
        font-size: 1rem; /* match .hero-subtext */
    }
}

/*Main content trusted section*/
.trusted-section {
    text-align: center;
    padding: 60px 0px;
    margin: 0;
}

.trusted-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.trusted-subtext {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
}

.trusted-logos-wrapper {
    margin: 0 auto;
    padding: 0px;
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.trusted-logos-wrapper::before,
.trusted-logos-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.trusted-logos-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #f8f9fa 0%, transparent 100%);
}

.trusted-logos-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #f8f9fa 0%, transparent 100%);
}

.trusted-logos-wrapper::-webkit-scrollbar {
    display: none; /* Chrome/Safari */

}

.trusted-logos {
    display: flex;
    gap: 40px;
    justify-content: flex-start;
    align-items: center;
    min-width: fit-content;
    padding: 10px 10px;
    animation: scroll-logos 40s linear infinite;

}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.trusted-logos img {
    height: 40px;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    margin: 0;
    padding: 0;
}

.trusted-logos img:hover {
    opacity: 1;
}

/* Optional: auto-scrolling animation on mobile */
@media screen and (max-width: 768px) {
    .trusted-logos {
        animation: scroll-logos 70s linear infinite;
    }

    @keyframes scroll-logos {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-50%);
        }
    }
    .trusted-title {
        font-size: 1.8rem;
    }

    .trusted-subtext {
        font-size: 1rem;
    }
}

.cta-button-wrapper {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

.cta-button {
    background-color: #264bff;
    color: white;
    padding: 16px 40px; /* bigger button */
    font-size: 1.1rem; /* larger text */
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    display: inline-block;
    min-width: 220px; /* make it wider */
}

.cta-button:hover {
    opacity: 0.8;
}

/* ========== COMPLIANCE/PRICING PAGE STYLES ========== */
/* Used on: pricing.blade.php, legal pages */
/* Purpose: Pricing cards, compliance content, simple page layouts */
.compliance-pricing-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.compliance-pricing-box {
    background-color: #ffffff;
    border: none; /* align with brand card style */
    max-width: 500px;
    width: 100%;
    padding: 20px 10px;
    border-radius: 10px; /* match other white cards */
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.compliance-pricing-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.compliance-pricing-subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
}

.compliance-pricing-price-line {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 12px;
}

.compliance-pricing-amount {
    font-size: 2rem;
    font-weight: 700;
    color: #1c1c1c;
}

.compliance-pricing-period {
    font-size: 1rem;
    color: #555;
}

.compliance-pricing-trial-note {
    font-size: 1rem;
    color: #777;
    margin-bottom: 24px;
}

.compliance-pricing-trial {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 8px;
}

.compliance-pricing-price {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.compliance-pricing-features {
    text-align: left;
    margin: 0 auto 30px;
    padding-left: 0;
    list-style: none;
    max-width: 400px; /* narrower */
}

.compliance-pricing-features li {
    margin-bottom: 14px;
    font-size: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.emoji {
    font-size: 1.1rem;
    line-height: 1.4;
    flex-shrink: 0;
}

/* Pricing CTA button */
.pricing-cta-button {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 24px;
    background-color: var(--button-color);
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
}

.pricing-cta-button:hover {
    opacity: 0.95;
}

.checkout-box-modern-header {
    margin-bottom: 24px;
    text-align: center;
}

.checkout-box-modern-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1c1c1c;
}

.checkout-box-modern-price-line {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 12px;
}

.checkout-box-modern-amount {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1c1c1c;
}

.checkout-box-modern-period {
    font-size: 1rem;
    color: #666;
}

.checkout-box-modern-trial {
    display: inline-block;
    background-color: #f1f5f9;
    color: #444;
    font-size: 0.95rem;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 500;
    margin-bottom: 8px;
}

.checkout-box-modern-after-trial {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1c1c1c;
    margin-top: 8px;
    text-align: center;
}

/*main help section and simple pages */
.simple-page-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.08);
    text-align: left;
}

/* Cancel page list uses global typography (match help). Only normalize list spacing */
.cancel-list {
    list-style: disc inside;
    margin: 0 0 10px 0;
    padding: 0;
    font-size: 1.2rem;
    line-height: 1.6;
}

.cancel-list li {
    margin: 6px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.help-subtext {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.faq-heading {
    margin-top: 40px;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.faq-question {
    background: #f9f9f9;
    border: none;
    width: 100%;
    text-align: left;
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.faq-answer {
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding-bottom: 16px;
}

.intextemail {
    color: #000;
    font-weight: 600;
}

@media screen and (max-width: 768px) {
    .section-title, .faq-heading {
        font-size: 1.8rem;
    }
}

/* ========== PDFBUDDY BRAND SPECIFIC STYLES ========== */

/* === DOCUMENT UPLOAD FORM STYLES === */
/* Document-focused Font */
.checkout-wrapper body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", "Ubuntu", sans-serif;
}

/* Centered Checkout Box */
.checkout-wrapper .checkout-container {
    background: white;
    width: 100%;
    box-sizing: border-box;
    padding: 0px;
}

/* Section Titles */
.checkout-section-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #444A4F !important; /* Grey color */
    margin: 10px 0 10px; /* Spacing for all except first */
}

/* Remove extra space at the top of the first section */
.checkout-section-title:first-of-type {
    margin-top: 0;
}

/* Input Fields */
.input-group {
    margin-bottom: 12px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    box-sizing: border-box;
    color: #111; /* Darker text for better readability */
}

/* Placeholder Text */
.input-group input::placeholder,
.input-group select {
    color: #6B6B6B; /* Darker placeholder text */
}

/* Side-by-Side Inputs */
.input-row {
    display: flex;
    gap: 10px;
}

.input-row .input-group {
    flex: 1;
}

/* Error Message Box */
.checkout-error {
    background-color: #fef6f6; /* Light red background */
    color: #400404; /* Text color */
    border: 1px solid #fdd8d8;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 500;
}

/*Country Selection*/
select {
    font-size: 14px;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-color: white !important;
}

/* Default card field styling */
#cardNumber, #cardExpiry, #cardSecurityCode {
    border: 1px solid #dcdcdc;
    transition: border 0.3s ease-in-out;
}

/* Standardized error messages for all fields */
.validation-message {
    color: #dc2727;
    font-size: 12px; /* Matches name validation */
    margin-top: 0px;
    padding: 0px;
}

/* Fix error message positioning */
#card-error-message {
    font-size: 12px;
    color: #dc2727;
    text-align: left;
    position: relative; /* No forced margins, just proper positioning */
    margin-top: -5px;
    margin-bottom: 5px;
}

/* Softer red border for invalid fields */
.invalid-field {
    border: 1px solid #e74c3c !important; /* Softer red */
    background-color: rgba(231, 76, 60, 0.05); /* Light red background */
    transition: border 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

/* Submit Button */
/* Button Styling */
#checkout-btn,
.loading-btn {
    position: relative;
    width: 100%;
    height: 48px;
    background-color: var(--button-color);
    color: white;
    font-weight: 600;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#checkout-btn:hover {
    opacity: 0.8;
}

.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -8px;
    margin-left: -8px;
    /* transform: translate(-50%, -50%); */
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid white;
    border-radius: 50%;
    width: 17px;
    height: 17px;
    animation: spin 0.8s linear infinite;
    pointer-events: none;
    z-index: 2;
}

#checkout-btn.loading .btn-text {
    opacity: 0.4;
}

.hidden {
    display: none;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* === DOCTOOL HOME PAGE - HERO SECTION === */
/* Used on: home.blade.php */
/* Layout: Two-column hero with document form on left, features on right */

.vin-form-wrapper {
    margin-top: 30px;
    margin-bottom: 20px;
}

.vin-form-wrapper .hero-button {
    width: 100%;
    padding: 12px 0;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    background-color: var(--button-color); /* From brands.php */
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    box-sizing: border-box;
}

.vin-form-wrapper .hero-button:hover {
    opacity: 0.95;
}

.vin-input {
    width: 100%;
    padding: 12px 20px;
    font-size: 18px;
    font-weight: 500;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    background-color: #fff;
    color: #1c1c1c;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.vin-input:focus {
    outline: none;
    border-color: var(--button-color); /* From brands.php */
    box-shadow: 0 0 0 3px rgba(38, 75, 255, 0.1); /* Consistent brand shadow */
}

.vin-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* === DOCTOOL HOME PAGE - FEATURE LIST === */
/* Used on: home.blade.php */
/* Purpose: Right-side feature list with blue checkmarks */

.hero-features {
    flex: 1 1 50%;
    width: 50%;
    margin-top: 0;
    display: block;
    position: relative;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px; /* Consistent spacing */
    max-width: 400px; /* Consistent container width */
    width: 100%;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background-color: #fff;
    border-radius: 8px; /* Consistent brand radius */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); /* Consistent brand shadow */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12); /* Enhanced shadow on hover */
}

.feature-tick {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.feature-text {
    font-size: 16px; /* Consistent px units */
    font-weight: 500;
    color: #1c1c1c;
    line-height: 1.5;
}

/* === RESPONSIVE DESIGN - DOCTOOL HOME PAGE === */
@media screen and (max-width: 768px) {
    .hero-features {
        margin-top: 15px;
        margin-bottom: 10px;
    }

    .feature-list {
        gap: 8px;
        max-width: none; /* Full width on mobile */
    }

    .feature-item {
        padding: 10px 16px;
    }

    .feature-text {
        font-size: 15px; /* Consistent px units */
    }

    .vin-input {
        padding: 12px 20px;
        font-size: 16px; /* Consistent px units */
    }
}

/* ========== END DOCTOOL BRAND SPECIFIC STYLES ========== */

/*LANDING PAGE HEADER AND DESCRIPTION*/

.lp-heading-wrapper {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 20px;
}

.lp-heading-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
}

.lp-heading-subtext {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    margin-bottom: 10px;
}

.lp-heading-divider {
    width: 100%;
    max-width: 120px;
    height: 3px;
    background-color: #ccc;
    margin: 0 auto;
    border-radius: 1px;
}

/* ========== MEMBER AREA STYLES ========== */
/* Used on: member/*.blade.php pages */
/* Purpose: Member dashboard, navigation, profile management */

/* Member Header */
.member-header {
    color: var(--font-color);
    background-color: var(--header-bg);
    padding: 10px 0;
}

.member-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.member-title {
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(0, 0, 0, 0.7);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Member Navigation - Separate section with white background */
.member-nav {
    background: white;
    border-bottom: 1px solid #e0e6ed;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 0;
}

.member-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.member-nav li {
    margin: 0;
}

.member-nav a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-size: 14px;
    border-radius: 6px;
    margin: 0 4px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
}

.member-nav a:hover {
    background: #edf2f7;
    color: #2d3748;
}

.member-nav a.active {
    background: var(--button-color);
    color: white;
}

.member-profile {
    margin-left: auto;
    display: flex;
    align-items: center;
    padding: 8px;
    gap: 15px;
}

.member-email {
    background: #f7fafc;
    color: #4a5568;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

.logout-btn {
    background: #e53e3e;
    color: white;
    padding: 12px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
    font-size: 14px;
    border: 1px solid #e53e3e;
    display: flex;
    align-items: center;
    gap: 6px;
}

.logout-btn:hover {
    background: #c53030;
}

/* Member Content */
.member-content {
    padding: 40px 20px;
    background: #f8f9fa;
}

.member-footer {
    background: white;
    color: #6a737d;
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #e1e4e8;
    font-size: 14px;
    margin-top: auto;
}

.member-footer a {
    color: #6a737d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.member-footer a:hover {
    color: var(--button-color);
}

/* Content Cards */
.content-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    border: 1px solid #e0e6ed;
}

.content-title {
    color: #2d3748;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.btn-primary {
    background: #edf2f7;
    color: #4a5568;
    padding: 12px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary:hover {
    background: var(--button-color);
    color: white;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.dashboard-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #e0e6ed;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease;
}

.dashboard-card:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.dashboard-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.dashboard-card-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    fill: var(--button-color);
}

.dashboard-card h3 {
    margin: 0;
    color: #2d3748;
    font-size: 1.3rem;
    font-weight: 600;
}

.dashboard-card p {
    color: #718096;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Mobile Responsiveness for Member Area */
@media (max-width: 768px) {
    .member-nav ul {
        flex-direction: column;
        align-items: stretch;
    }

    .member-nav a {
        padding: 12px 16px;
        margin: 2px 4px;
        font-size: 13px;
        justify-content: center;
    }

    .member-profile {
        margin-left: 0;
        margin-top: 15px;
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }

    .member-email {
        margin-right: 0;
        font-size: 12px;
        text-align: center;
    }

    .member-header {
        padding: 2rem 0;
    }

    .member-title {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    .member-header-content {
        flex-direction: column;
        gap: 10px;
    }

    .content-card {
        padding: 25px 20px;
        margin-bottom: 20px;
    }

    .content-title {
        font-size: 1.8rem;
    }

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

/* DOCUMENT FORM STYLING */
/* === Document Form Unified Styling === */
.itainfolpinput-wrapper {
    width: 100%;
    max-width: 600px;
    margin: auto;
    padding: 10px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;

}

.form-container {
    max-width: 100%;
    margin: auto;
}

/* Labels + Inputs */
.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 5px;
}

input {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    font-weight: 400;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    background-color: #fff;
    color: #111;
    box-sizing: border-box;
}

input::placeholder {
    color: #6b6b6b;
}

input:focus {
    border-color: #999;
    outline: none;
}

/* Document Type Buttons */
.inline-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.inline-button {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    text-align: center;
    color: #333;
    background-color: #f1f1f1;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    font-weight: 600;
    border-radius: 4px;
}

.inline-button.active {
    background-color: var(--button-color);
    color: #fff;
}

/* Main Submit Button */
.submitform-button {
    width: 100%;
    padding: 12px 0;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    background-color: var(--button-color);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    box-sizing: border-box;
}

.submitform-button:hover {
    opacity: 0.95;
}

.hidden {
    display: none;
}

/* Responsive Layouts */
@media (max-width: 750px) {
    .form-group-inline {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .half-width {
        width: 100%;
    }
}

@media (min-width: 751px) {
    .form-group-inline {
        display: flex;
        gap: 2%; /* better than px, scales with container */
    }

    .half-width {
        width: 49%;
    }
}

/* ========== END DOCTOOL FORM STYLES ========== */

/* ========== PDFWORD FUNNEL STYLES ========== */

/* Benefits in left side */
.hero-benefits {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
    text-align: left;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.benefit-checkbox {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.benefit-text {
    font-size: 16px;
    line-height: 1.5;
    color: var(--font-color);
    text-align: left;
}

.benefit-text strong {
    font-weight: 600;
}

/* Drag & Drop Area in right side */
.drag-drop-area {
    border: 3px dashed #ddd;
    border-radius: 16px;
    padding: 50px 20px;
    text-align: center;
    background: #fafbfc;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

/* Ensure bottom CTA drag-drop sits in normal flow on desktop */
.cta-vin-section .drag-drop-area {
    position: static !important;
    top: auto !important;
    transform: none !important;
}

.drag-drop-area:hover {
    border-color: #ccc;
    background: #f8f9ff;
}

.drag-drop-area.drag-over {
    border-color: var(--button-color) !important;
    background: #e6f0ff !important;
    border-width: 3px;
}

.upload-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 4px;
}

.upload-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--font-color);
}

.upload-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
}

.upload-info {
    font-size: 13px;
    color: #999;
    margin-bottom: 0;
}

/* Upload Progress Popup */
#uploadPopup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.upload-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-popup-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
}

@media (max-width: 480px) {
    .upload-popup-content {
        width: calc(100% - 32px) !important; /* 16px side gutters */
        margin: 0 16px !important;
        padding: 24px !important; /* comfortable mobile padding */
        box-sizing: border-box;
    }
}

.upload-popup-content .upload-icon,
.upload-popup-content .upload-popup-icon {
    margin-bottom: 20px;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}

.upload-popup-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--font-color);
}

.upload-progress-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.upload-progress-bar {
    flex: 1;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.upload-progress-fill {
    height: 100%;
    background: var(--button-color);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.upload-percentage {
    font-size: 16px;
    font-weight: 600;
    color: var(--button-color);
    min-width: 45px;
    text-align: right;
}

.file-input {
    display: none;
}

.upload-or {
    font-size: 14px;
    color: #999;
    margin-bottom: 4px;
    font-weight: 500;
}

.browse-button {
    background: var(--button-color);
    color: white;
    border: none;
    padding: 16px 80px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2px;
}

.browse-button:hover {
    background: #1d3fcc;
    transform: translateY(-2px);
}

/* File Selected State */
.file-selected {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    border: 2px solid var(--custom-elements-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    width: 100%;
}

.file-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.file-info {
    flex: 1;
    text-align: left;
}

.file-name {
    display: block;
    font-weight: 600;
    color: var(--font-color);
    margin-bottom: 4px;
}

.file-size {
    display: block;
    font-size: 14px;
    color: #666;
}

.remove-file {
    background: #ff4757;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.convert-button {
    width: 100%;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    margin-top: 16px;
}

.convert-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.convert-button:disabled:hover {
    background: #ccc;
    transform: none;
}

/* Feature Points Section removed */

/* Mobile adjustments */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        flex-wrap: wrap;
        align-items: stretch;
    }

    .hero-content {
        flex: 1 1 100%;
        max-width: 100%;
        margin-bottom: 20px;
        width: 100%;
        text-align: center;
    }

    /* Keep benefits left-aligned even when hero text is centered */
    .hero-content .hero-benefits,
    .hero-content .hero-benefits .benefit-item,
    .hero-content .hero-benefits .benefit-text {
        text-align: left;
    }

    .hero-features {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
    }

    .drag-drop-area {
        padding: 30px 20px;
        min-height: 280px;
        position: static;
        top: auto;
        transform: none;
        display: none !important;
    }

    .mobile-upload-btn {
        display: inline-block !important;
        margin: 0 auto 10px;
    }
}


/* ========== END PDFWORD FUNNEL STYLES ========== */

/* Stripe Secure Badge - for checkout form */
.stripe-secure-badge {
    text-align: center;
    margin-top: 0px;
    padding: 0 0;
}

.stripe-badge-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Checkout Terms Text */
.checkout-terms-text {
    font-size: 9pt;
    color: #d0d0d0;
    text-align: center;
    margin-top: 5px;
    line-height: 1.4;
    padding: 0 10px;
}

.checkout-terms-text a {
    color: #d0d0d0;
    text-decoration: underline;
}

.checkout-terms-text a:hover {
    color: #d0d0d0;
}

#termsPrice {
    color: #c0c0c0;
}

/* Email Privacy Notice */
.email-privacy-notice {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 0 5px;
    text-align: left;
}

.email-privacy-notice svg {
    flex-shrink: 0;
}

.email-privacy-notice .privacy-text {
    font-size: 9pt;
    color: #404040;
    line-height: 1.4;
    flex: 1;
}

@media (max-width: 410px) {
    .email-privacy-notice .privacy-text {
        font-size: 8pt;
    }
}

/* ========== PDFMERGE FUNNEL STYLES ========== */
.pdfmerge-section {
    flex-direction: column;
    padding-top: 10px; /* Reduced padding */
    padding-left: 0;
    padding-right: 0;
}

.pdfmerge-content-full {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    padding: 0 5px 100px 5px; /* Minimal padding, just bottom for sticky button */
}

.pdfmerge-centered {
    text-align: center;
}

.pdfmerge-title-centered {
    text-align: center;
    margin-top: 5px; /* Reduced gap from header */
    margin-bottom: 10px;
    padding: 0 5px; /* Minimal padding */
}

.pdfmerge-subtitle-centered {
    text-align: center;
    margin-bottom: 15px;
    padding: 0 5px; /* Minimal padding */
}

.pdfmerge-drop-zone {
    position: static !important;
    top: auto !important;
    transform: none !important;
    min-height: auto !important;
    transition: none !important; /* Remove animation */
}

/* Also remove transitions from child elements inside pdfmerge drop zone */
.pdfmerge-drop-zone * {
    transition: none !important;
}

/* Hide pdfmerge drop zone on mobile, show mobile button instead */
@media (max-width: 768px) {
    .pdfmerge-drop-zone {
        display: none !important;
    }

    .pdfmerge-section .mobile-upload-btn {
        display: inline-block !important;
    }
}

.pdfmerge-file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
    width: 100%;
    justify-content: flex-start;
}

.pdfmerge-file-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: white;
    border: 2px solid var(--custom-elements-color);
    border-radius: 12px;
    cursor: move;
    transition: all 0.2s ease;
    width: 200px; /* Bigger width to accommodate larger preview */
    flex-shrink: 0;
    position: relative;
    touch-action: none; /* Prevent default touch behaviors for better drag control */
}

.pdfmerge-file-item:hover {
    border-color: var(--button-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pdfmerge-file-item.dragging {
    opacity: 0.7;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.pdfmerge-file-item.drag-over {
    border-color: var(--button-color);
    background: #e6f0ff;
}

.pdfmerge-file-preview {
    width: 180px; /* Bigger width */
    height: 240px; /* Bigger height */
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdfmerge-file-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fill the container, no gaps */
    display: block;
}

.pdfmerge-file-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #999;
    font-weight: 600;
}

.pdfmerge-file-info {
    width: 100%;
    text-align: center;
}

.pdfmerge-file-name {
    font-weight: 600;
    color: var(--font-color);
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.85rem;
}

.pdfmerge-file-size {
    font-size: 0.85rem;
    color: #666;
}

.pdfmerge-remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 5px 10px;
    line-height: 1;
    transition: color 0.2s ease;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdfmerge-remove-btn:hover {
    color: #e74c3c;
}

.pdfmerge-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.pdfmerge-continue-btn {
    font-size: 1.1rem;
    padding: 15px 40px;
    font-weight: 600;
}

.pdfmerge-arrow {
    margin-left: 10px;
    font-size: 1.2em;
    display: inline-block;
    transition: transform 0.2s ease;
}

.pdfmerge-continue-btn:hover .pdfmerge-arrow {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .pdfmerge-file-item {
        flex-direction: column;
        text-align: center;
        width: calc(50% - 2px); /* Two items per row, minimal gap */
        min-width: 0; /* Allow flex shrinking */
    }

    .pdfmerge-file-list {
        display: flex;
        flex-wrap: wrap;
        gap: 4px; /* Smaller gap between cards */
        width: 100%;
        box-sizing: border-box;
        justify-content: center; /* Center items on mobile */
        padding: 0 2px; /* Minimal padding from screen edges */
    }

    .pdfmerge-file-preview {
        width: 100%; /* Use full card width */
        max-width: 100%; /* Remove max-width constraint */
        height: auto; /* Auto height to maintain aspect ratio */
        aspect-ratio: 3 / 4; /* Maintain reasonable aspect ratio */
        margin: 0 auto;
    }

    .pdfmerge-file-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Fill the container, no gaps */
        display: block;
    }

    .pdfmerge-content-full {
        padding: 0 2px; /* Minimal padding from screen edges */
        width: 100% !important;
        max-width: 100% !important;
        padding-bottom: 90px; /* Less padding on mobile */
    }

    .pdfmerge-actions {
        padding: 15px 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .pdfmerge-continue-btn {
        font-size: 1rem;
        padding: 12px 30px;
        width: 100%;
        max-width: 400px;
    }

    .pdfmerge-section {
        width: 100%;
        padding: 0;
    }

    .pdfmerge-title-centered,
    .pdfmerge-subtitle-centered {
        padding: 0 5px; /* Minimal padding */
    }
}

/* ========== END PDFMERGE FUNNEL STYLES ========== */

/* ========== CHECKOUT PAGE STYLES ========== */
/* Funnel Center Wrapper */
.funnel-center-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 20px;
}

/* Pricing Box */
.pricingbox {
    text-align: center;
    padding: 10px 0;
    margin-bottom: 10px;
    height: auto;
}

.pricing-title {
    color: #000;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 6px 0;
}

.discount-badge {
    border: 1px solid red;
    background-color: #FFE6ED;
    color: red;
    font-weight: 700;
    font-size: 10px;
    border-radius: 5px;
    width: fit-content;
    padding: 2px 6px;
    margin: 0 auto 8px auto;
}

.pricing-amount {
    color: #000;
    font-weight: 600;
    font-size: 16px;
    margin: 0;
}

.original-price {
    color: #cfcfcf;
    text-decoration: line-through;
    font-weight: 600;
    margin-left: 6px;
}

/* Checkout Box Wrapper */
.checkout-box-wrapper {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    border: none;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    margin: 10px auto 0;
}

.checkout-security-title {
    margin-top: 10px;
    font-weight: 600;
    font-size: 14px;
}

.checkout-security-subtitle {
    margin-top: 10px;
    font-weight: 400;
    font-size: 12px;
    margin-bottom: 10px;
}

/* Trial Disclaimer Box */
.trialdisclaimerbox {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    border: none;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    margin: 14px auto 0;
    font-size: 0.92rem;
    color: #555;
}

.trial-disclaimer-title {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: #888;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 6px;
    margin-bottom: 10px;
}

.trialfeaturelist {
    list-style: none;
    padding-left: 8px;
    margin: 0;
}

.trialfeaturelist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 6px;
    line-height: 1.45;
    font-size: 0.8rem;
}

.trialfeaturelist .trialtick {
    color: #888;
    font-weight: bold;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.tc-updated-field {
    text-align: right;
    width: 100%;
    display: block;
}

/* ========== END CHECKOUT PAGE STYLES ========== */

/* ========== MEMBER AREA STYLES ========== */

/* Member Header */
.member-header {
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.member-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.member-header .logo img {
    height: 40px;
    width: auto;
}

.member-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background 0.2s;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Member Navigation */
.member-nav {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 0;
}

.member-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.member-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0;
}

.member-nav li {
    margin: 0;
}

.member-nav a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    color: #64748b;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.member-nav a:hover {
    background-color: #f8fafc;
}

.member-nav a.active {
    background-color: #f8fafc;
}

.member-nav svg {
    width: 20px;
    height: 20px;
}

/* Member Content */
.member-content {
    flex: 1;
    min-height: calc(100vh - 200px);
    background: #f8fafc;
    padding: 2rem 0;
}

.member-main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Content Card */
.content-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.content-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1rem 0;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.dashboard-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dashboard-card-highlight {
    border: 2px solid #e2e8f0;
}

.new-feature-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #10b981;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.dashboard-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dashboard-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.dashboard-card p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

/* Member Buttons */
.member-btn-primary {
    display: inline-block;
    background: #1a202c;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.member-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Member Stats */
.member-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.member-stat-item {
    background: white;
    padding: 1.25rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.member-stat-item h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.member-stat-item p {
    color: #64748b;
    margin: 0;
    font-size: 0.85rem;
}

/* Member Quick Form */
.member-quick-form {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
}

.member-form-row {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.member-form-group {
    flex: 1;
    min-width: 250px;
}

.member-form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.member-form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.member-form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.member-form-help {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.75rem;
}

/* Member Welcome Text */
.member-welcome-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}

.member-help-text {
    color: #64748b;
    margin-bottom: 2rem;
}

/* Info Box */
.info-box {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.info-box h3 {
    color: #0369a1;
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
}

/* Support Grid */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.support-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.support-card svg {
    width: 32px;
    height: 32px;
    margin-bottom: 0.75rem;
}

.support-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.support-card p {
    color: #64748b;
    margin: 0;
    font-size: 0.9rem;
}

/* Member Section Heading */
.member-section-heading {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1.5rem 0;
}

/* Member Contact Text */
.member-contact-text {
    color: #475569;
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.member-contact-text:last-child {
    margin-bottom: 0;
}

/* Member Contact Card */
.member-contact-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.member-contact-icon {
    width: 64px;
    height: 64px;
    background: #e0f2fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.member-contact-icon svg {
    width: 32px;
    height: 32px;
    color: #0284c7;
}

.member-contact-title {
    color: #1e293b;
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
}

.member-contact-desc {
    color: #64748b;
    margin: 0 0 1.5rem 0;
}

/* FAQ Member Styles */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item-member {
    background: #f8fafc;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question-member {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: background 0.2s;
}

.faq-question-member:hover {
    background: #f1f5f9;
}

.faq-question-member h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
}

.faq-icon {
    font-size: 1.25rem;
    font-weight: 300;
    color: #64748b;
    width: 24px;
    text-align: center;
}

.faq-content-member {
    display: none;
    padding: 0 1.25rem 1rem;
}

.faq-content-member p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Member Responsive */
@media (max-width: 768px) {
    .member-header-content {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .member-title {
        font-size: 1.25rem;
    }

    .member-nav ul {
        flex-direction: column;
    }

    .member-nav a {
        padding: 0.75rem 1rem;
    }

    .member-main-container {
        padding: 0 1rem;
    }

    .content-card {
        padding: 1.25rem;
    }

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

    .member-form-row {
        flex-direction: column;
    }

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

/* ========== END MEMBER AREA STYLES ========== */

/* ========== EMAIL STATE V2 (popup-email-v2.blade.php) ========== */

/* Shell overrides — scoped to the v2 email step only, so the format/processing/
   plan/checkout states and every other funnel keep the default 500px shell. */
.conversion-popup:has(#emailState.active .popup-email--v2) {
    max-width: 620px;
    border-radius: 20px;
    padding: 32px 100px 30px;
    box-sizing: border-box; /* base .conversion-popup is content-box */
}

.conversion-popup:has(#emailState.active .popup-email--v2) .conversion-popup-close {
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    padding: 0;
    opacity: 1;
    color: #8181A5;
}

.popup-email--v2 {
    text-align: left;
    font-family: Poppins, sans-serif;
}

.popup-email--v2 .v2-title {
    margin: 0 0 20px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    color: #1C1D21;
}

.popup-email--v2 .v2-file {
    margin-bottom: 20px;
    padding: 12px 20px;
    border-radius: 12px;
    background: #F5F5FA;
}

.popup-email--v2 .v2-file-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.popup-email--v2 .v2-file-icon {
    flex: none;
    display: block;
    width: 40px;
    height: 40px;
}

.popup-email--v2 .v2-file-name {
    font-size: 13.26px;
    font-weight: 700;
    line-height: 1.5;
    color: #1C1D21;
    word-break: break-all;
}

.popup-email--v2 .v2-file-size {
    font-size: 13px;
    line-height: 1.5;
    color: #8181A5;
}

.popup-email--v2 .v2-field {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.popup-email--v2 .v2-label {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #1C1D21;
}

.popup-email--v2 .v2-input {
    width: 100%;
    height: 52px;
    padding: 14px 20px;
    border: 1px solid #DEE1EA;
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    font-size: 16px;
    color: #1C1D21;
    box-sizing: border-box;
}

.popup-email--v2 .v2-input::placeholder {
    color: #8181A5;
}

.popup-email--v2 .v2-input:focus {
    outline: none;
    border-color: #3689F5;
}

/* Inset matches the Figma frame: rows start 7px in, dividers stop 31px short. */
.popup-email--v2 .v2-benefits {
    margin: 0 0 20px 7px;
    padding: 0;
    list-style: none;
}

.popup-email--v2 .v2-benefit {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: #8181A5;
}

/* Every row carries its own divider, including the last one. */
.popup-email--v2 .v2-benefit {
    padding-bottom: 8px;
    border-bottom: 1px solid #F5F5FA;
}

.popup-email--v2 .v2-benefit + .v2-benefit {
    margin-top: 8px;
}

.popup-email--v2 .v2-benefit svg {
    flex: none;
}

.popup-email--v2 .v2-benefit--accent {
    color: #3689F5;
}

.popup-email--v2 .v2-submit {
    width: 100%;
    height: 48px;
    margin: 0 0 24px;
    padding: 8px 48px;
    border: none;
    border-radius: 8px;
    background: #3689F5;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    color: #fff;
    text-align: center;
    text-transform: none; /* base .final-download-btn uppercases */
    letter-spacing: 0;
    cursor: pointer;
}

.popup-email--v2 .v2-submit:hover {
    background: #2b7ae0;
}

.popup-email--v2 .v2-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.popup-email--v2 .v2-footer {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
    color: #8181A5;
}

.popup-email--v2 .v2-footer a {
    color: inherit;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .conversion-popup:has(#emailState.active .popup-email--v2) {
        padding: 28px 20px 24px;
        border-radius: 16px;
    }

    .popup-email--v2 .v2-title {
        font-size: 20px;
    }

    .popup-email--v2 .v2-benefits {
        margin: 0 0 20px;
    }
}

/* Inline error under the email field (both popup-email templates) */
.popup-email-error {
    margin: 0;
    color: #D92D20;
    font-family: Poppins, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
}

.popup-email .email-input.is-invalid,
.popup-email--v2 .v2-input.is-invalid {
    border-color: #D92D20;
}

/* default template: the field block has no gap, so space the message manually */
.popup-email .popup-email-error {
    margin-top: 8px;
}

/* Guided/Manual switcher (Figma 3804:156710) — the W-9 desktop walkthrough only
   (funnels.<funnel>.type.desktop_mode === 'guided'; the wrapping <aside> that renders any of this
   is otherwise empty, see editor.blade.php's header-left-extra yield). Wiring in
   w9-guided-onboarding.js. */
.pte-mode-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #DEE1EA;
    border-radius: 8px;
}

/* Hidden by w9-guided-onboarding.js below the field panel's breakpoint; the display:flex above
   would otherwise beat the UA's own [hidden] rule. */
.pte-mode-toggle[hidden] {
    display: none;
}

/* Only the active side is a padded pill — the inactive one is bare label text, which is what
   puts the pill flush against its own end of the track (Figma 3804:156730: 149px wide, not 169).
   The 10px breathing room on the inactive end is its margin, so it moves with the selection. */
.pte-mode-toggle__btn {
    padding: 6px 0;
    border: 0;
    border-radius: 8px;
    background: none;
    color: #8181A5;
    font-family: Poppins, Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.pte-mode-toggle__btn:not(.is-active):first-child {
    margin-left: 10px;
}

.pte-mode-toggle__btn:not(.is-active):last-child {
    margin-right: 10px;
}

.pte-mode-toggle__btn.is-active {
    padding: 6px 10px;
    background: #3689F5;
    color: #fff;
}

.pte-mode-toggle__btn:focus-visible {
    outline: 2px solid #3689F5;
    outline-offset: 2px;
}

/* W-9 desktop walkthrough: entry popup (Figma 3806:157064) and the one-time "Switch anytime"
   hint (3948:36292). Appended to <body> by w9-guided-onboarding.js, not #pdf-editor — hence
   unscoped here, like the toggle above. */
.pte-w9-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(28, 29, 33, 0.45);
}

.pte-w9-popup {
    box-sizing: border-box;
    width: 688px;
    max-width: 100%;
    padding: 40px;
    background: #fff;
    border-radius: 20px;
    font-family: Poppins, Helvetica, Arial, sans-serif;
}

.pte-w9-popup__eyebrow {
    margin: 0 0 8px;
    color: #3689F5;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pte-w9-popup__title {
    margin: 0 0 12px;
    color: #1C1D21;
    font-size: 18px;
    font-weight: 600;
}

.pte-w9-popup__subtitle {
    margin: 0 0 25px;
    color: #8181A5;
    font-size: 14px;
}

.pte-w9-popup__options {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.pte-w9-popup__option {
    position: relative;
    box-sizing: border-box;
    flex: 1 1 260px;
    min-width: 0;
    padding: 15px;
    border: 1px solid #DEE1EA;
    border-radius: 12px;
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.pte-w9-popup__option--guided {
    border-color: #3689F5;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 2px 3px rgba(0, 0, 0, 0.15);
}

.pte-w9-popup__option:hover {
    border-color: #3689F5;
}

.pte-w9-popup__option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: #F5F5FA;
}

.pte-w9-popup__option-icon--check {
    background: #DDE5FF;
}

.pte-w9-popup__badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 10px;
    border-radius: 6px;
    background: #F5F5FA;
    color: #3689F5;
    font-size: 12px;
    font-weight: 600;
}

.pte-w9-popup__option-title {
    display: block;
    margin-top: 20px;
    color: #11161E;
    font-size: 16px;
    font-weight: 700;
}

.pte-w9-popup__option-text {
    display: block;
    margin-top: 4px;
    color: #8D8D8F;
    font-size: 12px;
    line-height: 1.4;
}

.pte-w9-popup__footer {
    margin: 24px 0 0;
    color: #8181A5;
    font-size: 12px;
    text-align: center;
}

.pte-switch-hint {
    position: fixed;
    z-index: 2000;
    box-sizing: border-box;
    width: 357px;
    max-width: calc(100vw - 24px);
    padding: 20px 20px 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(28, 29, 33, 0.18);
    font-family: Poppins, Helvetica, Arial, sans-serif;
}

.pte-switch-hint__arrow {
    position: absolute;
    top: -12px;
    left: var(--pte-switch-hint-arrow-x, 24px);
    width: 54px;
    height: 13px;
    fill: #fff;
    overflow: visible;
}

.pte-switch-hint__close {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    line-height: 0;
}

.pte-switch-hint__title {
    margin: 0 0 8px;
    color: #1C1D21;
    font-size: 12px;
    font-weight: 700;
}

.pte-switch-hint__text {
    margin: 0;
    color: #8181A5;
    font-size: 12px;
    line-height: 1.5;
}

.pte-switch-hint__footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.pte-switch-hint__btn {
    padding: 8px 20px;
    border: 0;
    border-radius: 8px;
    background: #3689F5;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* W-9 mobile guided bar: the tour introducing its controls, appended to <body> by
   w9-guided-onboarding.js's initMobileGuidedTour(). A first hint above the bar (Figma
   3814:157210) then two pointed steps (Figma 3948:35331 "Step 1/2", 3948:35598 "Step 2/2"), same
   card language as .pte-switch-hint above but pointing down at a bar instead of up at a header.
   Type runs a step up from the Figma 12px: a 390px phone screen reads 12px Poppins as fine print,
   and the tour is the one thing on it a first-time visitor has to actually read. */

/* Dimmed page behind the cards (Figma 3948:35690). The layer swallows taps; on a pointed step it
   turns transparent and .pte-guided-tour-spot — sized to the control by the script — paints the
   dim as an oversized shadow, leaving a hole exactly over the control. */
.pte-guided-tour-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1990;
    background: rgba(129, 129, 165, 0.8);
}

.pte-guided-tour-backdrop.is-clear {
    background: transparent;
}

.pte-guided-tour-spot {
    position: fixed;
    z-index: 1991;
    box-sizing: border-box;
    border-radius: 8px;
    box-shadow: 0 0 0 200vmax rgba(129, 129, 165, 0.8);
    pointer-events: none;
}

.pte-guided-tour-spot[hidden] {
    display: none;
}

.pte-guided-tour-close {
    position: absolute;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    line-height: 0;
}

.pte-guided-tour-close img {
    display: block;
}

/* The first hint: full-width card sitting just above the form bar (`bottom` set by the script). */
.pte-guided-tour-hint {
    position: fixed;
    z-index: 2000;
    left: 4px;
    right: 4px;
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 36px 16px 12px;
    background: #fff;
    border: 1px solid #DEE1EA;
    border-radius: 12px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15), 0 1px 1.5px rgba(0, 0, 0, 0.3);
    font-family: Poppins, Helvetica, Arial, sans-serif;
}

.pte-guided-tour-hint .pte-guided-tour-close {
    top: 14px;
    right: 14px;
}

.pte-guided-tour-hint__icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(244, 190, 94, 0.2);
}

.pte-guided-tour-hint__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.pte-guided-tour-hint__title {
    margin: 0;
    color: #1C1D21;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.pte-guided-tour-hint__text {
    margin: 0;
    color: #8181A5;
    font-size: 14px;
    line-height: 1.45;
}

.pte-guided-tour-step {
    position: fixed;
    z-index: 2000;
    box-sizing: border-box;
    width: calc(100vw - 24px);
    max-width: 357px;
    padding: 20px 20px 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(28, 29, 33, 0.18);
    font-family: Poppins, Helvetica, Arial, sans-serif;
}

.pte-guided-tour-step__arrow {
    position: absolute;
    bottom: -12px;
    left: var(--pte-guided-tour-arrow-x, 24px);
    width: 54px;
    height: 13px;
    fill: #fff;
    overflow: visible;
}

.pte-guided-tour-close--step {
    top: 10px;
    right: 14px;
}

.pte-guided-tour-step__title {
    margin: 0 28px 8px 0;
    color: #1C1D21;
    font-size: 16px;
    font-weight: 700;
}

.pte-guided-tour-step__text {
    margin: 0;
    color: #8181A5;
    font-size: 14px;
    line-height: 1.45;
}

.pte-guided-tour-step__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    gap: 12px;
}

.pte-guided-tour-step__count {
    padding: 8px 12px;
    border: 1px solid #DEE1EA;
    border-radius: 8px;
    color: #8181A5;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.pte-guided-tour-step__btn {
    padding: 8px 20px;
    border: 0;
    border-radius: 8px;
    background: #3689F5;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
