/* Minimalist & Normal Corporate Proposal Stylesheet */

:root {
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-offset: #f1f5f9;
    
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-dark: #0f172a;
    --primary-dark-hover: #1e293b;
    
    --border-color: #e2e8f0;
    --border-dark: #cbd5e1;
    --border-radius: 8px;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: 'Plus Jakarta Sans', var(--font-family);
}

/* Base resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-body);
    background-image: radial-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--text-secondary);
    font-family: var(--font-family);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography styling */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 { font-size: 2.2rem; line-height: 1.2; }
h2 { font-size: 1.5rem; margin-bottom: 10px; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
h5 { font-size: 1rem; font-weight: 600; }

p {
    margin-bottom: 16px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
.header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-container {
    width: 90%;
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.brand-bold {
    font-weight: 800;
}

.proposal-title-tag {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

/* Document Container */
.proposal-document {
    padding: 40px 0;
}

.document-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: 5px solid var(--primary-color);
    border-radius: var(--border-radius);
    max-width: 960px;
    width: 90%;
    margin: 0 auto;
    padding: 60px 80px;
    box-shadow: 0 10px 40px -15px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.02);
}

/* Sections */
.doc-section {
    margin-bottom: 50px;
}

.doc-section h2 {
    margin-bottom: 8px;
}

.divider {
    height: 2px;
    background: linear-gradient(to right, var(--primary-color) 40px, var(--border-color) 40px);
    margin-bottom: 24px;
}

.doc-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.doc-text-secondary {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Hero Section */
.doc-hero {
    margin-bottom: 50px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 40px;
}

/* Partnership Badge */
.partnership-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-offset);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.825rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.partner-firm {
    font-weight: 600;
}

.partner-plus {
    color: var(--primary-color);
    font-weight: 700;
}

.doc-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-color);
    background-color: #eff6ff;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.doc-title {
    margin-bottom: 8px;
}

.doc-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Metadata Table */
.meta-table-box {
    margin-top: 24px;
}

.meta-table {
    width: 100%;
    border-collapse: collapse;
}

.meta-table th, .meta-table td {
    padding: 14px 16px;
    font-size: 0.9rem;
    border: none;
    border-bottom: 1px solid var(--border-color);
}

.meta-table tr:last-child th, .meta-table tr:last-child td {
    border-bottom: none;
}

.meta-table th {
    background-color: transparent;
    font-weight: 500;
    color: var(--text-muted);
    text-align: left;
    width: 20%;
}

.meta-table td {
    color: var(--text-primary);
    font-weight: 600;
    width: 30%;
}

.status-badge {
    background-color: #dcfce7;
    color: #166534;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    background-color: #166534;
    border-radius: 50%;
    display: inline-block;
    animation: status-pulse 1.8s infinite ease-in-out;
}

@keyframes status-pulse {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

/* Services deliverables list */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.service-block {
    border-bottom: 1px solid var(--border-color);
    padding: 30px 24px;
    margin-left: -24px;
    margin-right: -24px;
    border-left: 4px solid transparent;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-block:hover {
    background-color: var(--bg-offset);
    border-left: 4px solid var(--primary-color);
    padding-left: 32px;
}

/* Service colors custom styles */
.web-service:hover { border-left-color: #2563eb; }
.branding-service:hover { border-left-color: #7c3aed; }
.video-service:hover { border-left-color: #e11d48; }
.marketing-service:hover { border-left-color: #059669; }

.service-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
}

.web-service .service-icon-wrapper { background-color: #eff6ff; color: #2563eb; }
.branding-service .service-icon-wrapper { background-color: #f5f3ff; color: #7c3aed; }
.video-service .service-icon-wrapper { background-color: #fff1f2; color: #e11d48; }
.marketing-service .service-icon-wrapper { background-color: #ecfdf5; color: #059669; }

.service-icon-wrapper i {
    width: 18px;
    height: 18px;
}

.service-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.service-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.service-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.service-price small {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
    display: inline-block;
    margin-left: 4px;
}

.service-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.bullets-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
    margin-top: 10px;
    list-style: none;
}

.bullets-list li {
    font-size: 0.925rem;
    position: relative;
    padding-left: 20px;
}

.bullets-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 6px;
    height: 10px;
    border: solid var(--primary-color);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Value Added Bonuses Row */
.bonuses-row {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.bonus-box {
    flex: 1;
    background-color: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.bonus-box:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.04);
}

.bonus-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: #f0fdf4;
    color: #15803d;
    margin-bottom: 16px;
}

.bonus-icon-wrapper i {
    width: 20px;
    height: 20px;
}

.bonus-box h4 {
    margin-bottom: 10px;
    padding-right: 60px;
}

.bonus-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.free-tag {
    position: absolute;
    top: 24px;
    right: 24px;
    background-color: #dbeafe;
    color: #1e40af;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Why Partner list */
.reasons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.reason-item {
    background-color: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.reason-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.02);
}

.reason-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.reason-icon {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}

.reason-item h5 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.reason-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.wide-item {
    grid-column: span 2;
}

/* Calculator Section */
.planner-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    align-items: start;
}

.planner-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-row {
    display: flex;
    align-items: flex-start;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.option-row:hover {
    background-color: var(--bg-body);
}

.option-row.selected {
    border-color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.02);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.03);
}

.option-row input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    margin-top: 3px;
    margin-right: 14px;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-dark);
    border-radius: 4px;
    background-color: var(--bg-card);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.option-row input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.option-row input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.option-row input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.opt-desc {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.opt-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.opt-cost {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.opt-cost small {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* Option Group wrapping (for Reels count) */
.option-group {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.option-group.selected {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.03);
}

.option-group.selected .option-row {
    background-color: rgba(37, 99, 235, 0.02);
}

.option-group .option-row {
    border: none;
    margin-bottom: 0;
    border-radius: 0;
    border-bottom: 1px solid var(--border-color);
}

.qty-control {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background-color: var(--bg-body);
}

.qty-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-right: auto;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-dark);
    background-color: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

#qty-val {
    width: 36px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.qty-total {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-left: 16px;
}

/* Planner Summary Card */
.planner-summary {
    position: sticky;
    top: 100px;
}

.summary-card {
    background-color: var(--bg-body);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.summary-card h3 {
    font-size: 1.15rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
}

.summary-table td, .summary-table th {
    padding: 8px 0;
    font-size: 0.9rem;
}

.summary-table td {
    color: var(--text-muted);
}

.summary-table .text-right {
    text-align: right;
    font-weight: 600;
    color: var(--text-primary);
}

.summary-table .total-row {
    border-top: 1px solid var(--border-color);
}

.summary-table .total-row th {
    padding-top: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: left;
}

.summary-table .total-row .text-primary {
    color: var(--primary-color);
    font-size: 1.15rem;
}

.summary-table .combined-total-row {
    border-top: 2px double var(--border-color);
    background-color: rgba(37, 99, 235, 0.02);
}

.summary-table .combined-total-row th {
    padding-top: 12px;
    padding-bottom: 12px;
    padding-left: 8px;
    font-size: 1rem;
}

.summary-table .combined-total-row .text-primary {
    font-size: 1.25rem;
    padding-right: 8px;
}

/* Acceptance Form Section */
.confirmation-section {
    background-color: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px;
}

.confirm-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.confirm-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background-color: #eff6ff;
    color: var(--primary-color);
    flex-shrink: 0;
}

.confirm-icon-wrapper i {
    width: 22px;
    height: 22px;
}

.confirm-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.confirm-form {
    margin-top: 30px;
}

.form-row {
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input, .form-group textarea {
    border: 1px solid var(--border-dark);
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 0.95rem;
    background-color: var(--bg-card);
    width: 100%;
    color: var(--text-primary);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: none;
}

.form-submit-row {
    margin-top: 28px;
    margin-bottom: 12px;
}

.btn-submit {
    background-color: var(--primary-dark);
    color: #ffffff;
    border: none;
    padding: 16px 28px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-submit:hover {
    background-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit i {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.btn-submit:hover i {
    transform: translateX(3px);
}

.disclaimer-text {
    font-size: 0.775rem;
    color: var(--text-muted);
    text-align: center;
}

/* Footer styling */
.footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    color: var(--text-muted);
}

.footer-container {
    width: 90%;
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.footer-logo {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.footer-services-tag {
    font-size: 0.8rem;
}

.footer-right {
    text-align: right;
    font-size: 0.8rem;
}

.footer-right p {
    margin-bottom: 4px;
}

.footer-right p:last-child {
    margin-bottom: 0;
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .document-container {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .document-container {
        padding: 30px 20px;
        width: 95%;
    }
    
    .meta-table th, .meta-table td {
        display: block;
        width: 100% !important;
    }
    
    .meta-table th {
        border-bottom: none;
        padding-top: 10px;
        padding-bottom: 4px;
    }
    
    .meta-table td {
        padding-top: 4px;
        padding-bottom: 12px;
    }
    
    .bullets-list {
        grid-template-columns: 1fr;
    }
    
    .bonuses-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .reasons-grid {
        grid-template-columns: 1fr;
    }
    
    .wide-item {
        grid-column: span 1;
    }
    
    .planner-layout {
        grid-template-columns: 1fr;
    }
    
    .planner-summary {
        position: static;
    }
    
    .service-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .header-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-right {
        text-align: center;
    }
    
    .service-block {
        margin-left: 0;
        margin-right: 0;
        padding: 24px 0;
        border-radius: 0;
    }
    
    .service-block:hover {
        background-color: transparent;
        padding-left: 12px;
    }
}
