﻿/*Onboard ver 1.0
    Created by: Jake of Marmak
    Created on: 2026-07-24
    Changes:
        - 2026-07-24: Initial creation
        - 2026-07-27: Reduced label and field sizes
*/
:root {
    --ink: #07182d;
    --muted: #667085;
    --line: #e6edf5;
    --soft: #f7fbff;
    --blue: #007aff;
    --cyan: #18b7ff;
    --purple: #7c3aed;
    --green: #10b981;
    --orange: #f59e0b;
    --red: #ef4444;
    --shadow: 0 24px 70px rgba(16, 42, 67, .12);
    --radius: 28px
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at 12% -10%, #dff3ff 0, transparent 35%), radial-gradient(circle at 88% 0, #f0eaff 0, transparent 35%), #fff;
    min-height: 100vh;
    font-size: 13px;
}

button, input, select, textarea {
    font: inherit
}

button {
    cursor: pointer;
    border: 0
}

a {
    color: #0757a8;
    font-weight: 850;
    text-decoration: none
}

.shell {
    max-width: 1280px;
    margin: auto;
    padding: 26px
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .84);
    backdrop-filter: blur(22px);
    border-bottom: 1px solid rgba(230, 237, 245, .7);
    padding: 12px 22px;
    margin: -26px -26px 20px;
    border-radius: var(--radius) var(--radius) 0 0
}

.brand {
    display: flex;
    gap: 10px;
    align-items: center
}

.logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

    .logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

.brand h1 {
    font-size: 16px;
    margin: 0
}

.brand p {
    margin: 1px 0 0;
    color: var(--muted);
    font-size: 12px
}

.card {
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(225, 235, 246, .95);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    backdrop-filter: blur(22px)
}

.intro {
    padding: 8px 14px;
    margin-bottom: 6px;
    text-align: center
}

    .intro h2 {
        font-size: 20px;
        line-height: 1.2;
        letter-spacing: -0.6px;
        margin: 2px 0 2px
    }

    .intro p {
        margin: 0;
        color: var(--muted);
        font-size: 12px
    }

.packageToggle {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 12px 0 18px
}

.package {
    position: relative;
    min-height: 110px;
    text-align: left;
    padding: 14px 16px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(16, 42, 67, .05);
    transition: .2s;
    cursor: pointer;
    width: 100%;
}

    .package:hover {
        transform: translateY(-2px)
    }

    .package.active {
        border-color: transparent;
        color: #fff;
        box-shadow: 0 16px 35px rgba(0, 122, 255, .22)
    }

    .package:nth-child(1).active {
        background: linear-gradient(135deg, #0ea5e9, #22c55e)
    }

    .package:nth-child(2).active {
        background: linear-gradient(135deg, #6366f1, #14b8a6)
    }

    .package:nth-child(3).active {
        background: linear-gradient(135deg, #007aff, #5b7cfa)
    }

    .package:nth-child(4).active {
        background: linear-gradient(135deg, #111827, #7c3aed)
    }

    .package b {
        display: block;
        font-size: 14px;
        margin-bottom: 4px
    }

    .package span {
        font-size: 12px;
        line-height: 1.3;
        color: inherit;
        opacity: .78
    }

    .package.disabled {
        opacity: 0.7;
        cursor: default;
        pointer-events: none;
        filter: grayscale(0.3);
    }

    .package .coming-soon {
        display: block;
        margin-top: 6px;
        font-weight: 800;
        font-size: 12px;
        color: #b45309;
        background: #fef3c7;
        padding: 2px 8px;
        border-radius: 999px;
        text-align: center;
        letter-spacing: 0.3px;
    }

.grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 18px
}

.mainForm {
    padding: 18px 20px
}

.side {
    position: sticky;
    top: 84px;
    height: max-content;
    padding: 16px 18px
}

.section {
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 14px 16px;
    background: #fff;
    margin-bottom: 12px
}

.sectionHead {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px
}

.section h3 {
    margin: 0;
    font-size: 16px
}

.section p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 12px
}

.row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px
}

.row3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px
}

.field {
    margin-bottom: 8px
}

    .field label {
        display: block;
        font-size: 11px;
        color: #344054;
        font-weight: 700;
        margin-bottom: 4px
    }

    .field input, .field select, .field textarea {
        width: 100%;
        border: 1px solid #d9e3ee;
        border-radius: 12px;
        padding: 8px 11px;
        background: #fbfdff;
        outline: none;
        font-size: 13px;
        transition: border-color 0.2s, box-shadow 0.2s;
    }

    .field textarea {
        min-height: 60px;
        resize: vertical;
        font-size: 13px;
    }

        .field input:focus, .field select:focus, .field textarea:focus {
            border-color: var(--blue);
            box-shadow: 0 0 0 3px rgba(0, 122, 255, .09)
        }

.miniBtn {
    padding: 7px 12px;
    border-radius: 11px;
    background: #eef6ff;
    color: #0757a8;
    font-weight: 800;
    border: none;
    cursor: pointer;
    font-size: 12px;
}

.danger {
    background: #fff1f2;
    color: #be123c
}

.ghost {
    background: #f2f4f7;
    color: #344054
}

.item {
    border: 1px solid #e8eef6;
    border-radius: 14px;
    padding: 10px 12px;
    background: #fbfdff;
    margin-bottom: 8px
}

.itemTop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px
}

.itemTitle {
    font-size: 12px;
    font-weight: 900;
    color: #475467
}

.ctaRow {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center
}

.primary {
    padding: 11px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #007aff, #18b7ff);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(0, 122, 255, .22);
    border: none;
    cursor: pointer;
    font-size: 13px;
}

.secondary {
    padding: 11px 16px;
    border-radius: 14px;
    background: #0b1f36;
    color: #fff;
    font-weight: 900;
    border: none;
    cursor: pointer;
    font-size: 13px;
}

.outline {
    padding: 11px 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--line);
    font-weight: 900;
    color: #344054;
    cursor: pointer;
    font-size: 13px;
}

.notice {
    border: 1px solid #dbeafe;
    background: #eff6ff;
    color: #1e3a8a;
    border-radius: 14px;
    padding: 10px;
    font-size: 12px;
    line-height: 1.4
}

.warn {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e
}

.addOn {
    border: 1px solid #e9d5ff;
    background: linear-gradient(135deg, #faf5ff, #fff);
    border-radius: 16px;
    padding: 12px;
    margin-top: 10px
}

    .addOn label {
        display: flex;
        gap: 10px;
        align-items: flex-start;
        font-weight: 900
    }

    .addOn input {
        width: 16px;
        height: 16px;
        margin-top: 2px
    }

.optionalBadge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #047857;
    font-size: 10px;
    font-weight: 900;
    margin-left: 6px
}

.advancedToggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f7fbff, #fff);
    border: 1px solid var(--line);
    font-weight: 900;
    color: var(--ink);
    cursor: pointer;
    font-size: 13px;
}

.advancedBody {
    display: none;
    margin-top: 10px
}

    .advancedBody.show {
        display: block
    }

.small {
    font-size: 11px;
    color: var(--muted)
}

.muted {
    color: var(--muted)
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 12px
}

    .table th, .table td {
        text-align: left;
        border-bottom: 1px solid var(--line);
        padding: 6px 8px
    }

.paymentPanel {
    display: none
}

    .paymentPanel.show {
        display: block
    }

.stripeBox {
    border: 1px dashed #9ecbff;
    background: #f1f8ff;
    border-radius: 14px;
    padding: 12px;
    color: #075985;
    font-size: 12px
}

.checkline {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 10px;
    border: 1px solid var(--line);
    background: #fbfdff;
    border-radius: 14px
}

    .checkline input {
        width: 16px;
        height: 16px;
        margin-top: 1px
    }

    .checkline label {
        font-size: 13px;
    }

.hide {
    display: none !important
}

.thankyou {
    display: none
}

    .thankyou.show {
        display: block
    }

.thankCard {
    max-width: 750px;
    margin: 24px auto;
    text-align: center;
    padding: 22px
}

.checkmark {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 18px;
    background: linear-gradient(135deg, #10b981, #18b7ff);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 28px;
    font-weight: 950
}

.addressBadge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 900;
    color: #047857;
    background: #ecfdf3;
    border-radius: 999px;
    padding: 4px 8px
}

.req:after {
    content: " *";
    color: #ef4444
}

.toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    background: #0b1f36;
    color: #fff;
    padding: 12px 16px;
    border-radius: 14px;
    box-shadow: var(--shadow);
    display: none;
    z-index: 50;
    font-size: 13px;
}

    .toast.show {
        display: block
    }

.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 900;
    background: #eef6ff;
    color: #0757a8
}

.portal {
    display: block
}

    .portal.hide {
        display: none
    }

.validation-summary {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 12px;
    padding: 10px 14px;
    color: #991b1b;
    margin-bottom: 14px;
    display: none;
}

    .validation-summary ul {
        margin: 4px 0;
        padding-left: 20px
    }

.field-validation-error {
    color: #dc2626;
    font-size: 11px;
    display: block;
    margin-top: 3px;
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.status-pending {
    background: #fef3c7;
    color: #92400e
}

.status-approved {
    background: #d1fae5;
    color: #065f46
}

.status-rejected {
    background: #fee2e2;
    color: #991b1b
}

.status-synced {
    background: #dbeafe;
    color: #1e40af
}

@media(max-width:980px) {
    .grid {
        grid-template-columns: 1fr
    }

    .packageToggle {
        grid-template-columns: 1fr 1fr
    }

    .side {
        position: relative;
        top: 0
    }

    .row, .row3 {
        grid-template-columns: 1fr
    }

    .intro h2 {
        font-size: 18px
    }

    .topbar {
        position: relative;
        margin: -16px -16px 16px;
        padding: 12px 14px;
        flex-wrap: wrap
    }

    .shell {
        padding: 16px
    }
}

@media(max-width:480px) {
    .packageToggle {
        grid-template-columns: 1fr
    }

    .intro h2 {
        font-size: 16px
    }

    .topbar {
        flex-direction: column;
        text-align: center
    }

    .brand {
        flex-direction: column;
        text-align: center
    }

    .logo {
        width: 40px;
        height: 40px
    }
}

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    z-index: 999;
    justify-content: center;
    align-items: center;
}

    .loading-overlay.show {
        display: flex;
    }

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--line);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.refresh-btn {
    background: #f2f4f7;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 12px;
}

    .refresh-btn:hover {
        background: #e6edf5;
    }

.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.viewer-link {
    color: var(--blue);
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    background: #eef6ff;
    border: 1px solid #dbeafe;
    text-decoration: none;
    font-size: 12px;
}

    .viewer-link:hover {
        background: #dbeafe;
    }


   /*Disabled Fileupload temp*/
#layoutFiles {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
    background: #f0f2f5;
}