/* Satoshi Font Faces */
@font-face {
    font-family: 'Satoshi';
    src: url('fonts/Satoshi-Light.woff2') format('woff2'),
         url('fonts/Satoshi-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Satoshi';
    src: url('fonts/Satoshi-Regular.woff2') format('woff2'),
         url('fonts/Satoshi-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Satoshi';
    src: url('fonts/Satoshi-Medium.woff2') format('woff2'),
         url('fonts/Satoshi-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Satoshi';
    src: url('fonts/Satoshi-Bold.woff2') format('woff2'),
         url('fonts/Satoshi-Bold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Satoshi';
    src: url('fonts/Satoshi-Black.woff2') format('woff2'),
         url('fonts/Satoshi-Black.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Satoshi';
    src: url('fonts/Satoshi-Black.woff2') format('woff2'),
         url('fonts/Satoshi-Black.woff') format('woff');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Satoshi';
    src: url('fonts/Satoshi-Black.woff2') format('woff2'),
         url('fonts/Satoshi-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Satoshi', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #ffffff;
    background-color: #000000;
    padding: 2rem;
    margin: 0;
}

html {
    background-color: #000000;
    margin: 0;
    padding: 0;
}

#pdf-content {
    max-width: 210mm; /* A4 width */
    margin: 0 auto;
    background: #000000;
    padding: 0;
    width: 100%;
}

/* Cover Page */
.cover-page {
    min-height: 297mm; /* A4 height */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    border-radius: 0;
    padding: 4rem 2rem;
    page-break-after: always;
    position: relative;
    margin: 0;
}

/* Table of Contents */
.toc-page {
    min-height: 297mm;
    background: #000000;
    padding: 3rem 2rem;
    page-break-after: always;
    margin: 0;
}

.toc-content {
    max-width: 100%;
}

.toc-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2rem;
    text-align: center;
}

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

.toc-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    page-break-inside: avoid;
}

.toc-item:last-child {
    border-bottom: none;
}

.toc-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.toc-link:hover {
    color: #ffffff;
}

.toc-section-name {
    flex: 1;
}

.toc-page-number {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    margin-left: 1rem;
}

.toc-subsection {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.page-break-after {
    page-break-after: always;
}

.cover-content {
    text-align: center;
    width: 100%;
}

.cover-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cover-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-weight: 400;
}

.cover-date {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.cover-date-small {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2rem;
}

/* Sections */
section {
    margin-bottom: 3rem;
    page-break-inside: avoid;
    break-inside: avoid;
    margin-left: 0;
    margin-right: 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    page-break-after: avoid;
    break-after: avoid;
    margin-top: 0;
    padding-top: 1rem;
}

.section-intro {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.7;
    page-break-after: avoid;
    break-after: avoid;
}

/* Requirement Groups */
.requirement-group {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    page-break-inside: avoid;
    break-inside: avoid;
    page-break-before: auto;
}

.group-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.form-item {
    margin-bottom: 2rem;
    page-break-inside: avoid;
    break-inside: avoid;
}

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

.form-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

/* Checkbox & Radio Groups */
.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-label,
.radio-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"],
.radio-label input[type="radio"] {
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
    accent-color: #ffffff;
    cursor: pointer;
    flex-shrink: 0;
    touch-action: manipulation; /* Improve touch responsiveness on all devices */
}

.inline-input {
    margin-left: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: #ffffff;
    font-family: 'Satoshi', sans-serif;
    font-size: 0.9rem;
    width: 200px;
}

.text-input,
.textarea-input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    color: #ffffff;
    font-family: 'Satoshi', sans-serif;
    font-size: 1rem;
    resize: vertical;
}

.text-input::placeholder,
.textarea-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.textarea-input {
    min-height: 120px;
    line-height: 1.6;
}

/* Project Cards */
.project-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    page-break-inside: avoid;
    break-inside: avoid;
    page-break-before: auto;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.project-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
}

.project-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.project-content {
    color: rgba(255, 255, 255, 0.9);
}

.project-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.project-features {
    margin-bottom: 1.5rem;
}

.project-features h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.project-features ul {
    list-style: none;
    padding-left: 0;
}

.project-features li {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    line-height: 1.6;
}

.project-features li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.8);
}

.project-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Enterprise Project Styling */
.enterprise-project {
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.1);
}

.enterprise-project .project-price {
    background: rgba(255, 255, 255, 0.15);
    font-size: 1.6rem;
}

.project-roi {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
    border-radius: 0.5rem;
}

.project-roi h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.roi-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

/* Pricing Summary */
.pricing-summary {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
    page-break-inside: avoid;
    break-inside: avoid;
}

.summary-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.summary-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.summary-price {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.summary-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    text-align: center;
    margin-top: 1rem;
}

/* ROI Section */
.roi-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
    page-break-inside: avoid;
    break-inside: avoid;
}

.roi-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.roi-intro {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.roi-examples {
    margin-top: 1.5rem;
}

.roi-example {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
}

.roi-example h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.roi-example p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

/* Pricing Note Section */
.pricing-note-section {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
    page-break-inside: avoid;
    break-inside: avoid;
}

.pricing-note-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.pricing-note-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.pricing-note-text strong {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

/* Document Footer */
.document-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    page-break-inside: avoid;
    break-inside: avoid;
}

.footer-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Page Break */
.page-break {
    page-break-before: always;
    break-before: page;
    margin-top: 2rem;
    margin-bottom: 0;
}

.page-break-before {
    page-break-before: always;
    break-before: page;
}

.page-break-after {
    page-break-after: always;
    break-after: page;
}

/* Download Button */
.download-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.download-button {
    background: rgba(255, 255, 255, 1);
    color: #000000;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-family: 'Satoshi', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.download-button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* Print Styles & PDF Optimization */
@media print {
    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        color-adjust: exact;
    }

    html, body {
        background: #000000 !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100%;
        height: 100%;
    }

    .download-container {
        display: none !important;
    }

    #pdf-content {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #000000 !important;
    }

    .cover-page,
    .toc-page {
        min-height: 297mm;
        background: #000000 !important;
        margin: 0;
        padding: 3rem 2rem;
    }

    section {
        page-break-inside: avoid;
        break-inside: avoid;
        background: #000000 !important;
    }

    .project-card,
    .requirement-group,
    .pricing-summary,
    .roi-section,
    .pricing-note-section {
        page-break-inside: avoid;
        break-inside: avoid;
        background: rgba(255, 255, 255, 0.05) !important;
    }

    .section-title,
    .group-title {
        page-break-after: avoid;
        break-after: avoid;
    }
}

/* Responsive */
@media screen and (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .cover-title {
        font-size: 2.5rem;
    }

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

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

    .project-header {
        flex-direction: column;
        gap: 1rem;
    }

    /* Mobile: Increase touch target sizes for checkboxes and radio buttons */
    .checkbox-label,
    .radio-label {
        padding: 0.5rem 0;
        min-height: 44px; /* Minimum touch target size */
        align-items: center; /* Center align for better touch experience */
    }

    .checkbox-label input[type="checkbox"],
    .radio-label input[type="radio"] {
        width: 24px;
        height: 24px;
        margin-top: 0;
        touch-action: manipulation; /* Improve touch responsiveness */
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2); /* Visual feedback on tap */
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border: 2px solid rgba(255, 255, 255, 0.5);
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        position: relative;
        cursor: pointer;
    }

    /* Custom checkbox styling for mobile */
    .checkbox-label input[type="checkbox"]:checked {
        background-color: #ffffff;
        border-color: #ffffff;
    }

    .checkbox-label input[type="checkbox"]:checked::after {
        content: '';
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -60%) rotate(45deg);
        width: 5px;
        height: 10px;
        border: solid #000000;
        border-width: 0 2px 2px 0;
    }

    /* Custom radio button styling for mobile */
    .radio-label input[type="radio"] {
        border-radius: 50%;
    }

    .radio-label input[type="radio"]:checked {
        background-color: #ffffff;
        border-color: #ffffff;
    }

    .radio-label input[type="radio"]:checked::after {
        content: '';
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: #000000;
    }

    /* Ensure entire label is clickable on mobile */
    .checkbox-label span,
    .radio-label span {
        flex: 1;
        padding-left: 0.5rem;
    }
}

/* Form Submit Button & States */
.form-submit-container {
    margin-top: 3rem;
    margin-bottom: 2rem;
    text-align: center;
    page-break-inside: avoid;
    break-inside: avoid;
}

/* White Button Styling (matching homepage) */
.white-button {
    background: rgba(255, 255, 255, 1) !important;
    color: #000000 !important;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-family: 'Satoshi', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    z-index: 10;
    min-width: 250px;
}

.white-button:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.white-button:active {
    transform: translateY(0);
}

.white-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Rolling Animation (matching homepage) */
.rolling-anim {
    position: relative;
}

.rolling-anim .rolling-original {
    visibility: hidden;
}

.rolling-anim .rolling-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    white-space: nowrap;
    font: inherit;
    color: inherit;
    text-transform: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    display: grid;
    place-items: center;
}

.rolling-anim .rolling-text {
    display: inline-flex;
    gap: 0.02em;
    line-height: 1;
    transform: translateY(var(--roll-nudge, 0));
}

.rolling-anim .rolling-letter {
    display: inline-block;
    overflow: hidden;
    height: calc(1em + 0.3em);
    line-height: calc(1em + 0.3em);
}

.rolling-anim .rolling-stack {
    display: grid;
}

.rolling-anim .rolling-stack > span {
    grid-area: 1/1;
    transform: translateY(0%);
    opacity: 1;
    display: block;
    height: inherit;
    line-height: inherit;
}

.rolling-anim .rolling-letter .rolling-stack > span:last-child {
    transform: translateY(100%);
    opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
    .rolling-anim .rolling-stack > span {
        will-change: transform, opacity;
        transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1), opacity 400ms ease;
    }
    .rolling-anim:hover .rolling-letter .rolling-stack > span:first-child {
        transform: translateY(-100%);
        opacity: 0;
        transition-delay: calc(var(--i) * 22ms);
    }
    .rolling-anim:hover .rolling-letter .rolling-stack > span:last-child {
        transform: translateY(0%);
        opacity: 1;
        transition-delay: calc(var(--i) * 22ms + 40ms);
    }
}

.submit-loading {
    display: inline-block;
}

/* Form Errors & Success */
.form-errors {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(235, 80, 135, 0.1);
    border: 1px solid rgba(235, 80, 135, 0.3);
    border-radius: 8px;
    color: #ffffff;
}

.form-errors ul {
    margin: 0;
    padding-left: 1.5rem;
    list-style: disc;
}

.form-errors li {
    margin-bottom: 0.5rem;
}

.form-success {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
}

/* Other Input Fields */
.other-input {
    margin-left: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #ffffff;
    font-family: 'Satoshi', sans-serif;
    font-size: 0.9rem;
    width: 200px;
}

.other-input:focus {
    outline: none;
    border-color: #eb5087;
    background: rgba(255, 255, 255, 0.15);
}

.other-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Form Validation States - Removed green borders on valid inputs */
.text-input:invalid,
.textarea-input:invalid,
input[type="email"]:invalid,
input[type="url"]:invalid {
    border-color: rgba(235, 80, 135, 0.5);
}

/* Contact Section */
.contact-section {
    margin-bottom: 3rem;
}

