/* ===== POD Print Plugin — Frontend Styles v3 ===== */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=DM+Sans:wght@400;500;600&display=swap');

:root {
    --pod-primary:   #6366f1;
    --pod-primary2:  #4f46e5;
    --pod-accent:    #f59e0b;
    --pod-accent2:   #d97706;
    --pod-col:       3;
    --pod-radius:    18px;
    --pod-radius-sm: 10px;
    --pod-shadow:    0 2px 16px rgba(0,0,0,.07);
    --pod-shadow-lg: 0 12px 40px rgba(99,102,241,.22);
    --pod-cart-btn:  var(--pod-accent);
    --pod-cart-btn2: var(--pod-accent2);
    --pod-cart-text: #fff;
    --pod-card-img-height: 200px;
}

.pod-wrap *, .pod-wrap *::before, .pod-wrap *::after { box-sizing: border-box; }
.pod-wrap { font-family: 'DM Sans', sans-serif; width: 100%; max-width: 100%; }

/* ── Single service inline mode ── */
.pod-inline-wrap { font-family: 'DM Sans', sans-serif; width: 100%; max-width: 100%; }
.pod-inline-wrap *, .pod-inline-wrap *::before, .pod-inline-wrap *::after { box-sizing: border-box; }
.pod-inline-form-card {
    background: #fff; border-radius: 16px;
    box-shadow: var(--pod-shadow); border: 1px solid #e8eaef; padding: 24px;
    width: 100%;
}
.pod-inline-form-card h2 {
    font-family: 'Syne', sans-serif;
    font-size: 20px; font-weight: 700;
    color: #0f172a; margin: 0 0 20px;
    display: flex; align-items: center; gap: 8px;
}
.pod-inline-form-card h2 i { color: var(--pod-accent); }

/* ── Banner ─────────────────────────────────────────────────── */
.pod-banner {
    background: linear-gradient(135deg, var(--pod-primary), #8b5cf6);
    color: #fff;
    text-align: center;
    padding: 13px 20px;
    border-radius: var(--pod-radius);
    margin-bottom: 28px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .4px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}

/* ── Header ─────────────────────────────────────────────────── */
.pod-header { text-align: center; margin-bottom: 40px; }
.pod-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
    background: linear-gradient(135deg, var(--pod-primary), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 10px;
    line-height: 1.15;
}
.pod-subtitle { color: #6b7280; font-size: 16px; margin: 0; font-weight: 500; }

/* ── Grid ───────────────────────────────────────────────────── */
.pod-services-grid {
    display: grid;
    grid-template-columns: repeat(var(--pod-col), 1fr);
    gap: 26px;
}
@media (max-width: 1024px) { .pod-services-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px)  { .pod-services-grid { grid-template-columns: 1fr; } }

/* ── Card ───────────────────────────────────────────────────── */
.pod-service-card {
    background: #fff;
    border-radius: var(--pod-radius);
    box-shadow: var(--pod-shadow);
    border: 1px solid #e8eaef;
    overflow: hidden;
    transition: box-shadow .3s ease, transform .3s ease;
    display: flex;
    flex-direction: column;
}
.pod-service-card:hover {
    box-shadow: var(--pod-shadow-lg);
    transform: translateY(-4px);
}

/* ── Cover: always shown — image or gradient ────── */
.pod-card-cover {
    position: relative;
    width: 100%;
    height: var(--pod-card-img-height);
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--pod-primary), #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
}
.pod-card-cover img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform .5s ease;
}
.pod-service-card:hover .pod-card-cover img { transform: scale(1.05); }

/* Icon shown when no image — centered in gradient */
.pod-card-cover-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.85);
    font-size: 56px;
    width: 100%;
    height: 100%;
}
/* Make sure FA icon is visible */
.pod-card-cover-icon i,
.pod-card-cover-icon .fas,
.pod-card-cover-icon .far,
.pod-card-cover-icon .fab {
    font-size: 56px;
    color: rgba(255,255,255,.85);
    display: block;
    line-height: 1;
}

/* Small icon badge always visible bottom-left of cover */
.pod-cover-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: rgba(255,255,255,.20);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}
.pod-cover-badge i,
.pod-cover-badge .fas,
.pod-cover-badge .far,
.pod-cover-badge .fab {
    color: #fff;
    font-size: 16px;
}

/* ── Card Body ──────────────────────────────────────────────── */
.pod-card-body {
    padding: 20px 20px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.pod-card-body h3 {
    font-family: 'Syne', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px;
}
.pod-card-body p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* ── Price ──────────────────────────────────────────────────── */
.pod-price-badge {
    display: flex;
    align-items: baseline;
    gap: 4px;
    padding: 14px 0 8px;
}
.pod-price {
    font-family: -apple-system, 'Segoe UI', system-ui, sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--pod-primary);
    letter-spacing: -.3px;
    line-height: 1;
}
.pod-price-type { font-size: 12px; color: #94a3b8; font-weight: 500; }

/* ── Order Now Toggle Button ────────────────────────────────── */
.pod-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    margin: auto 0 20px;
    background: linear-gradient(135deg, var(--pod-primary), var(--pod-primary2));
    color: #fff;
    border: none;
    border-radius: var(--pod-radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: .2px;
}
.pod-toggle-btn:hover { opacity: .92; transform: scale(1.01); }
.pod-toggle-icon { transition: transform .3s; }
.pod-toggle-btn.active .pod-toggle-icon { transform: rotate(180deg); }
.pod-toggle-btn.active {
    background: linear-gradient(135deg, #64748b, #475569);
}

/* ── Form Area ──────────────────────────────────────────────── */
.pod-form-area {
    padding: 16px 20px 4px;
    border-top: 1px solid #f1f5f9;
    background: #fafbff;
}

/* ── Upload Zone ─────────────────────────────────────────────── */
.pod-upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 26px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color .25s, background .25s;
    margin: 0 0 14px;
    background: #f8fafc;
}
.pod-upload-zone:hover,
.pod-upload-zone.dragover {
    border-color: var(--pod-primary);
    background: #eef2ff;
}
.pod-upload-zone i.fa-cloud-upload-alt {
    font-size: 32px;
    color: var(--pod-primary);
    margin-bottom: 8px;
    display: block;
}
.pod-upload-zone p { margin: 3px 0; font-size: 13px; color: #374151; }
.pod-hint { font-size: 11.5px !important; color: #94a3b8 !important; }
.pod-file-input { display: none; }
.pod-browse-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 18px;
    background: var(--pod-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s;
    font-family: 'DM Sans', sans-serif;
}
.pod-browse-btn:hover { opacity: .85; }

/* ── Preview Thumbs ─────────────────────────────────────────── */
.pod-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.pod-preview-item {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    overflow: visible;
}
.pod-preview-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}
.pod-preview-file {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    height: 100%; font-size: 10px; color: #64748b;
    padding: 4px; text-align: center;
}
.pod-preview-file i { font-size: 20px; color: #ef4444; margin-bottom: 2px; }
.pod-remove-file {
    position: absolute;
    top: -7px; right: -7px;
    width: 19px; height: 19px;
    background: #ef4444; color: #fff;
    border: none; border-radius: 50%;
    font-size: 10px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    padding: 0; z-index: 10;
}
.pod-upload-progress {
    width: 100%; height: 3px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-bottom: 10px;
}
.pod-upload-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--pod-primary), #8b5cf6);
    border-radius: 2px;
    transition: width .3s;
    width: 0%;
}

/* ── Service Options Fields ─────────────────────────────────── */
.pod-fields {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 14px 16px;
    margin-bottom: 14px;
}
.pod-fields h4 {
    font-size: 13px; font-weight: 700;
    color: #374151; margin: 0 0 12px;
    display: flex; align-items: center; gap: 6px;
    text-transform: uppercase; letter-spacing: .5px;
}
.pod-field-row { margin-bottom: 12px; }
.pod-field-row:last-child { margin-bottom: 0; }
.pod-field-row label {
    display: block; font-size: 12px;
    font-weight: 600; color: #475569; margin-bottom: 5px;
    text-transform: uppercase; letter-spacing: .4px;
}
.pod-req { color: #ef4444; }
.pod-field {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px; color: #0f172a;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    font-family: 'DM Sans', sans-serif;
}
.pod-field:focus {
    border-color: var(--pod-primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,.10);
}

/* ── Price Preview ─────────────────────────────────────────── */
.pod-price-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    background: linear-gradient(135deg, #eef2ff, #ede9fe);
    border-radius: 10px;
    margin-bottom: 14px;
    border: 1px solid #ddd6fe;
}
.pod-calc-label { font-size: 13px; color: #5b21b6; font-weight: 600; }
.pod-calc-amount {
    font-family: -apple-system, 'Segoe UI', system-ui, sans-serif;
    font-size: 21px; font-weight: 800; color: var(--pod-primary);
}

/* ── Add to Cart Button ─────────────────────────────────────── */
.pod-add-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--pod-cart-btn), var(--pod-cart-btn2));
    color: var(--pod-cart-text);
    border: none;
    border-radius: var(--pod-radius-sm);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 14px;
    transition: opacity .2s, transform .15s, box-shadow .2s;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: .3px;
    box-shadow: 0 4px 16px rgba(245,158,11,.3);
}
.pod-add-cart-btn:hover:not(:disabled) {
    opacity: .93;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245,158,11,.4);
}
.pod-add-cart-btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }

/* ── Messages ──────────────────────────────────────────────── */
.pod-msg {
    font-size: 13px; border-radius: 8px;
    text-align: center; transition: all .3s;
    margin-bottom: 14px;
}
.pod-msg.success { padding: 10px; background: #d1fae5; color: #065f46; }
.pod-msg.error   { padding: 10px; background: #fee2e2; color: #991b1b; }
.pod-cart-link { font-weight: 700; color: #065f46 !important; text-decoration: underline; }

/* ── WhatsApp CTA ─────────────────────────────────────────── */
.pod-whatsapp-cta { text-align: center; margin-top: 40px; }
.pod-wa-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 32px;
    background: #25d366; color: #fff;
    text-decoration: none; border-radius: 50px;
    font-size: 15px; font-weight: 700;
    transition: background .2s, transform .2s;
    box-shadow: 0 4px 20px rgba(37,211,102,.3);
    font-family: 'DM Sans', sans-serif;
}
.pod-wa-btn:hover { background: #128c7e; transform: translateY(-2px); }
.pod-wa-btn i { font-size: 22px; }

/* ── Detail Page ─────────────────────────────────────────── */
.pod-back-btn {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--pod-primary); text-decoration: none;
    font-size: 14px; font-weight: 600; margin-bottom: 24px;
    padding: 8px 14px; border: 1.5px solid var(--pod-primary);
    border-radius: 8px; transition: background .2s, color .2s;
    font-family: 'DM Sans', sans-serif;
}
.pod-back-btn:hover { background: var(--pod-primary); color: #fff; }
.pod-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
    align-items: start;
    width: 100%;
}
@media (max-width: 768px) { .pod-detail-layout { grid-template-columns: 1fr; } }

/* Each column must fill its grid cell */
.pod-detail-info,
.pod-detail-form-col {
    width: 100%;
    min-width: 0; /* prevent overflow in grid */
}

/* Form card fills full column width */
.pod-detail-form-card {
    width: 100%;
    box-sizing: border-box;
}

/* All inputs/selects inside form card take full width */
.pod-detail-form-card input,
.pod-detail-form-card select,
.pod-detail-form-card textarea,
.pod-detail-form-card .pod-upload-zone,
.pod-detail-form-card .pod-add-cart-btn,
.pod-detail-form-card .pod-price-preview {
    width: 100%;
    box-sizing: border-box;
}

/* Full width mode - sirf form dikhaye */
.pod-detail-layout.pod-layout-form-only {
    grid-template-columns: 1fr;
}
.pod-detail-layout.pod-layout-form-only .pod-detail-info {
    display: none;
}
.pod-detail-hero {
    border-radius: 16px; overflow: hidden; margin-bottom: 20px;
    height: var(--pod-card-img-height);
}
.pod-detail-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pod-detail-hero--icon {
    height: 160px;
    background: linear-gradient(135deg, var(--pod-primary), #8b5cf6);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 60px;
}
.pod-detail-title {
    font-family: 'Syne', sans-serif;
    font-size: 26px; font-weight: 800;
    color: #0f172a; display: flex;
    align-items: center; gap: 12px; margin-bottom: 12px;
}
.pod-detail-title i { color: var(--pod-primary); }
.pod-detail-desc { color: #64748b; font-size: 15px; line-height: 1.7; margin-bottom: 20px; }
.pod-detail-meta {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 12px; margin-bottom: 24px;
}
.pod-detail-meta-item {
    background: #f8fafc; border: 1px solid #e2e8f0;
    border-radius: 10px; padding: 12px 14px;
}
.pod-dm-label { display: block; font-size: 11px; color: #94a3b8; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.pod-dm-value { display: block; font-size: 20px; font-weight: 800; color: #0f172a; font-family: 'Syne', sans-serif; margin: 4px 0 2px; }
.pod-dm-sub { font-size: 11px; color: #94a3b8; }
.pod-detail-form-card {
    background: #fff; border-radius: 16px;
    box-shadow: var(--pod-shadow); border: 1px solid #e8eaef; padding: 24px;
    width: 100%; box-sizing: border-box;
}
.pod-detail-form-card h2 {
    font-family: 'Syne', sans-serif;
    font-size: 20px; font-weight: 700;
    color: #0f172a; margin: 0 0 20px;
    display: flex; align-items: center; gap: 8px;
}
.pod-detail-form-card h2 i { color: var(--pod-accent); }

/* ── Form-Only Mode: 100% fluid, no wrappers ────────────────── */
.pod-form-only-wrap {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--pod-shadow);
    border: 1px solid #e8eaef;
    padding: 24px;
    font-family: 'DM Sans', sans-serif;
}
.pod-form-only-wrap * { box-sizing: border-box; }
.pod-form-only-title {
    font-family: 'Syne', sans-serif;
    font-size: 20px; font-weight: 700;
    color: #0f172a; margin: 0 0 20px;
    display: flex; align-items: center; gap: 8px;
}
.pod-form-only-title i { color: var(--pod-accent); }
/* All child elements fill full width */
.pod-form-only-wrap .pod-upload-zone,
.pod-form-only-wrap .pod-fields,
.pod-form-only-wrap .pod-price-preview,
.pod-form-only-wrap .pod-add-cart-btn,
.pod-form-only-wrap .pod-field,
.pod-form-only-wrap select,
.pod-form-only-wrap input[type="number"],
.pod-form-only-wrap input[type="text"],
.pod-form-only-wrap textarea {
    width: 100%;
}
