/* GIPI NAPKINS CUSTOMIZER STYLES */
:root {
    --gn-primary: #0056b3;
    --gn-primary-dark: #004085;
    --gn-accent: #ff9800;
    --gn-success: #28a745;
    --gn-bg-light: #f8f9fa;
    --gn-card-bg: #ffffff;
    --gn-border: #e2e8f0;
    --gn-text: #2d3748;
    --gn-text-muted: #718096;
    --gn-radius: 12px;
    --gn-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.gn-container {
    max-width: 1240px;
    margin: 30px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--gn-text);
}

/* HERO SECTION */
.gn-hero {
    background: linear-gradient(135deg, #0b2545 0%, #134074 100%);
    color: #ffffff;
    padding: 40px 30px;
    border-radius: var(--gn-radius);
    margin-bottom: 35px;
    box-shadow: 0 10px 25px rgba(11, 37, 69, 0.25);
    text-align: center;
}
.gn-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: #e0f2fe;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 15px;
}
.gn-hero-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff !important;
    margin: 0 0 12px 0;
    line-height: 1.25;
}
.gn-hero-subtitle {
    font-size: 16px;
    color: #cbd5e1;
    max-width: 800px;
    margin: 0 auto 25px auto;
    line-height: 1.5;
}
.gn-features-ribbon {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.gn-feature-pill {
    background: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* MAIN LAYOUT */
.gn-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 30px;
    align-items: start;
}
@media (max-width: 991px) {
    .gn-grid {
        grid-template-columns: 1fr;
    }
}

/* CARDS */
.gn-card {
    background: var(--gn-card-bg);
    border: 1px solid var(--gn-border);
    border-radius: var(--gn-radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--gn-shadow);
}
.gn-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--gn-border);
    padding-bottom: 14px;
}
.gn-step-badge {
    width: 38px;
    height: 38px;
    background: var(--gn-primary);
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}
.gn-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #1e293b;
}
.gn-card-desc {
    font-size: 13px;
    color: var(--gn-text-muted);
    margin: 0;
}

/* STEP 1: FORMATS GRID */
.gn-formats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
}
.gn-format-card {
    border: 2px solid var(--gn-border);
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
}
.gn-format-card:hover {
    border-color: #93c5fd;
    transform: translateY(-2px);
}
.gn-format-card.active {
    border-color: var(--gn-primary);
    background: #f0f7ff;
    box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.2);
}
.gn-f-tag {
    font-size: 11px;
    font-weight: 700;
    color: #0369a1;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.gn-f-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.3;
}
.gn-f-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 12px;
    color: var(--gn-text-muted);
    margin-bottom: 8px;
}
.gn-f-meta strong {
    color: #334155;
}
.gn-f-moq {
    font-size: 11px;
    background: #e2e8f0;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* STEP 2: COLOR OPTIONS */
.gn-color-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.gn-color-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 2px solid var(--gn-border);
    border-radius: 10px;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.2s;
    flex: 1 1 calc(50% - 12px);
    min-width: 200px;
}
.gn-color-item:hover {
    border-color: #cbd5e1;
}
.gn-color-item.active {
    border-color: var(--gn-primary);
    background: #f0f7ff;
}
.gn-swatch-box {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.1);
}
.gn-color-meta {
    display: flex;
    flex-direction: column;
}
.gn-color-meta-name {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}
.gn-color-meta-price {
    font-size: 12px;
    color: var(--gn-text-muted);
}

/* STEP 3: LOGO UPLOAD & PRINT COLOR */
.gn-upload-zone {
    border: 2px dashed #94a3b8;
    background: #f8fafc;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 16px;
}
.gn-upload-zone:hover {
    border-color: var(--gn-primary);
    background: #f0f7ff;
}
.gn-upload-icon {
    font-size: 36px;
    margin-bottom: 6px;
}
.gn-upload-text strong {
    display: block;
    font-size: 15px;
    color: #1e293b;
    margin-bottom: 4px;
}
.gn-upload-text span {
    display: block;
    font-size: 12px;
    color: var(--gn-text-muted);
    margin-bottom: 12px;
}
.gn-btn-upload {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
}
.gn-file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 13px;
    color: #065f46;
}
.gn-remove-file {
    background: transparent;
    border: none;
    color: #dc2626;
    font-weight: 700;
    cursor: pointer;
}
.gn-print-colors-sec {
    margin-top: 20px;
}
.gn-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1e293b;
}
.gn-print-colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
}
.gn-pcolor-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--gn-border);
    border-radius: 8px;
    cursor: pointer;
    background: #ffffff;
    font-size: 12px;
    font-weight: 600;
}
.gn-pcolor-btn.active {
    border-color: var(--gn-primary);
    background: #eff6ff;
    color: var(--gn-primary);
    font-weight: 700;
}
.gn-pcolor-swatch {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.2);
    flex-shrink: 0;
}
.gn-hint {
    font-size: 12px;
    color: var(--gn-text-muted);
    margin-top: 10px;
}
.gn-mockup-controls {
    display: flex;
    gap: 20px;
    background: #f8fafc;
    padding: 14px;
    border-radius: 8px;
    margin-top: 16px;
}
.gn-ctrl-row {
    flex: 1;
}
.gn-ctrl-row label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
}
.gn-select {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 12px;
}

/* STEP 4: QUANTITY & STEPPER */
.gn-qty-calc {
    background: #f8fafc;
    padding: 18px;
    border-radius: 10px;
}
.gn-qty-inputs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.gn-stepper {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}
.gn-step-btn {
    width: 38px;
    height: 38px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 20px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gn-step-btn:hover {
    background: #f1f5f9;
}
.gn-input-boxes {
    width: 80px;
    height: 38px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
}
.gn-qty-total-pcs label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gn-text-muted);
}
.gn-pcs-val {
    font-size: 24px;
    font-weight: 800;
    color: var(--gn-primary);
    margin-top: 2px;
}
.gn-moq-warning {
    margin-top: 14px;
    padding: 10px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 8px;
    font-size: 13px;
}

/* RIGHT COLUMN - LIVE PREVIEW & STICKY QUOTE */
.gn-col-preview {
    position: sticky;
    top: 20px;
}

.gn-preview-card {
    background: #ffffff;
    border: 1px solid var(--gn-border);
    border-radius: var(--gn-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--gn-shadow);
}
.gn-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.gn-preview-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}
.gn-preview-badge {
    font-size: 11px;
    font-weight: 700;
    background: #e0f2fe;
    color: #0369a1;
    padding: 3px 8px;
    border-radius: 4px;
}

/* TABLE STAGE & NAPKIN MOCKUP */
.gn-preview-stage-wrap {
    background: radial-gradient(circle, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 10px;
    padding: 30px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 380px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.06);
}
.gn-table-surface {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* NAPKIN ELEMENT */
.gn-napkin {
    position: relative;
    width: 220px;
    height: 220px;
    background-color: #FFFFFF;
    border-radius: 4px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 5px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* PAPTEX FABRIC TEXTURE OVERLAY */
.gn-napkin-texture {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image: radial-gradient(#000 0.75px, transparent 0.75px);
    background-size: 4px 4px;
    pointer-events: none;
}
.gn-napkin-crease {
    position: absolute;
    inset: 0;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

/* POCKET FLAP */
.gn-napkin-pocket {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
    background: inherit;
    box-shadow: 0 -3px 8px rgba(0, 0, 0, 0.05);
}
.gn-cutlery-shadow {
    position: absolute;
    top: -20px;
    left: 20%;
    width: 60%;
    height: 24px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.12), transparent);
    border-radius: 4px;
}

/* LOGO STAMP */
.gn-logo-stamp {
    position: absolute;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.05));
}
.gn-logo-stamp img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: filter 0.2s;
}
.gn-logo-placeholder {
    border: 1px dashed rgba(0, 0, 0, 0.3);
    padding: 6px 10px;
    border-radius: 4px;
    text-align: center;
}
.gn-logo-placeholder span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    opacity: 0.6;
}

/* FOOTNOTE */
.gn-preview-footnote {
    font-size: 11px;
    color: var(--gn-text-muted);
    line-height: 1.4;
    margin-top: 12px;
}

/* SUMMARY & PRICING CARD */
.gn-summary-card {
    background: #ffffff;
    border: 1px solid var(--gn-border);
    border-radius: var(--gn-radius);
    padding: 24px;
    box-shadow: var(--gn-shadow);
}
.gn-sum-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #1e293b;
}
.gn-sum-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.gn-sum-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #475569;
}
.gn-sum-row strong {
    color: #1e293b;
}
.gn-sum-divider {
    border: 0;
    height: 1px;
    background: var(--gn-border);
    margin: 6px 0;
}
.gn-price-line {
    font-size: 14px;
}
.gn-unit-price {
    font-size: 16px;
    color: #0369a1;
}
.gn-grand-total-row {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    align-items: baseline;
    margin-top: 4px;
}
.gn-grand-total {
    font-size: 26px;
    font-weight: 900;
    color: #0f172a;
}
.gn-vat-notice {
    font-size: 11px;
    color: var(--gn-text-muted);
    text-align: right;
    margin-top: -6px;
}

/* ACTIONS */
.gn-actions-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}
.gn-btn-order {
    background: #0056b3;
    color: #ffffff;
    border: none;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}
.gn-btn-order:hover {
    background: #004085;
}
.gn-btn-quote {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}
.gn-btn-quote:hover {
    background: #e2e8f0;
}
.gn-support-box {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--gn-border);
    text-align: center;
    font-size: 12px;
    color: var(--gn-text-muted);
}
.gn-call-link {
    display: block;
    margin-top: 4px;
    font-weight: 700;
    color: #0056b3;
    text-decoration: none;
}

/* MODAL */
.gn-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gn-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}
.gn-modal-dialog {
    position: relative;
    background: #ffffff;
    border-radius: var(--gn-radius);
    max-width: 580px;
    width: 90%;
    padding: 26px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    z-index: 10;
    max-height: 90vh;
    overflow-y: auto;
}
.gn-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gn-border);
    padding-bottom: 12px;
    margin-bottom: 16px;
}
.gn-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
}
.gn-modal-close {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #64748b;
}
.gn-modal-intro {
    font-size: 13px;
    color: #475569;
    margin-bottom: 18px;
    line-height: 1.4;
}
.gn-form-row {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
}
@media (max-width: 600px) {
    .gn-form-row {
        flex-direction: column;
        gap: 10px;
    }
}
.gn-form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}
.gn-form-group label {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #1e293b;
}
.gn-input, .gn-textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
}
.gn-btn-submit {
    background: #0056b3;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
}
.gn-btn-submit:hover {
    background: #004085;
}
.gn-quote-status {
    margin-top: 12px;
    font-size: 13px;
    text-align: center;
}
