/* =======================================================
   Dhol.ai - Marriage Biodata Maker Stylesheet
   Premium, Indian Matrimonial Design System
   ======================================================= */

:root {
    --dhol-crimson: #C03248;
    --dhol-crimson-dark: #9E1F33;
    --dhol-crimson-light: #FDE8EB;
    --dhol-gold: #D4AF37;
    --dhol-gold-light: #FEF9E7;
    --dhol-dark: #0F172A;
    --dhol-slate: #334155;
    --dhol-gray-100: #F8FAFC;
    --dhol-gray-200: #E2E8F0;
    --dhol-gray-300: #CBD5E1;
    --dhol-gray-400: #94A3B8;
    --dhol-gray-500: #64748B;
    --dhol-radius: 16px;
    --dhol-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --dhol-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.07);
    --dhol-shadow-lg: 0 16px 40px rgba(192, 50, 72, 0.12);
}

/* Base Container & Hero */
.biodata-maker-page {
    background-color: #FAFAFA;
    color: var(--dhol-dark);
    overflow-x: hidden;
}

.bio-hero-section {
    position: relative;
    padding: 120px 0 60px 0;
    background: linear-gradient(135deg, #FFF5F6 0%, #FFFDF9 50%, #F8FAFC 100%);
    border-bottom: 1px solid var(--dhol-gray-200);
}

.bio-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: #FFF;
    border: 1px solid #FED7AA;
    color: #C2410C;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.08);
    margin-bottom: 20px;
}

.bio-hero-title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--dhol-dark);
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.bio-hero-title span {
    color: var(--dhol-crimson);
    position: relative;
}

.bio-hero-subtitle {
    font-size: 18px;
    color: var(--dhol-slate);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 580px;
}

.bio-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 40px;
}

.btn-bio-primary {
    background: linear-gradient(135deg, var(--dhol-crimson) 0%, var(--dhol-crimson-dark) 100%);
    color: #FFF !important;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    border: none;
    box-shadow: 0 8px 20px rgba(192, 50, 72, 0.28);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.btn-bio-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(192, 50, 72, 0.36);
    color: #FFF !important;
}

.btn-bio-secondary {
    background: #FFF;
    color: var(--dhol-dark) !important;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    border: 1px solid var(--dhol-gray-300);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-bio-secondary:hover {
    background: var(--dhol-gray-100);
    border-color: var(--dhol-gray-400);
    transform: translateY(-2px);
}

.bio-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
}

.bio-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dhol-slate);
}

.bio-trust-item i {
    font-size: 18px;
    color: var(--dhol-crimson);
}

/* Hero 3-Sample Stack 3D Presentation */
.bio-hero-sample-stack {
    position: relative;
    width: 100%;
    height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}

.bio-stack-card {
    position: absolute;
    width: 250px;
    background: #FFF;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.bio-stack-card .bio-stack-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.bio-stack-card.card-left {
    transform: translateX(-80px) translateY(12px) rotate(-8deg) scale(0.88);
    z-index: 1;
    opacity: 0.92;
}

.bio-stack-card.card-right {
    transform: translateX(80px) translateY(12px) rotate(8deg) scale(0.88);
    z-index: 2;
    opacity: 0.92;
}

.bio-stack-card.card-center {
    transform: translateX(0) translateY(-6px) rotate(0deg) scale(1);
    z-index: 3;
    box-shadow: 0 24px 56px rgba(192, 50, 72, 0.24), 0 6px 18px rgba(0,0,0,0.12);
    border-color: #D4AF37;
}

.bio-hero-sample-stack:hover .bio-stack-card.card-left {
    transform: translateX(-110px) translateY(8px) rotate(-12deg) scale(0.92);
}

.bio-hero-sample-stack:hover .bio-stack-card.card-right {
    transform: translateX(110px) translateY(8px) rotate(12deg) scale(0.92);
}

.bio-hero-sample-stack:hover .bio-stack-card.card-center {
    transform: translateX(0) translateY(-16px) scale(1.03);
}

.bio-stack-card:hover {
    z-index: 10 !important;
    transform: translateY(-20px) scale(1.05) rotate(0deg) !important;
    box-shadow: 0 30px 65px rgba(192, 50, 72, 0.3) !important;
    border-color: var(--dhol-crimson) !important;
}

.bio-stack-pill {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(6px);
    color: #FFF;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.2);
}

.bio-stack-badge {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #C03248, #9B1B30);
    color: #FFF;
    font-size: 11.5px;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(192, 50, 72, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.6);
}

/* Template Showcase Gallery */
.bio-templates-section {
    padding: 80px 0;
    background: #FFF;
}

.bio-section-title {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    color: var(--dhol-dark);
    margin-bottom: 12px;
}

.bio-section-desc {
    font-size: 16px;
    text-align: center;
    color: var(--dhol-gray-500);
    max-width: 650px;
    margin: 0 auto 40px auto;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.template-card {
    background: #FFF;
    border: 2px solid var(--dhol-gray-200);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.template-card:hover {
    transform: translateY(-6px);
    border-color: #6366F1;
    box-shadow: 0 16px 36px rgba(99, 102, 241, 0.16);
}

.template-card.active {
    border: 3px solid #6366F1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.25), 0 16px 36px rgba(99, 102, 241, 0.2);
}

.template-card-preview {
    height: 270px;
    background: #F8FAFC;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    border-bottom: 1px solid var(--dhol-gray-200);
}

/* Diagonal Corner Ribbon */
.template-corner-ribbon {
    position: absolute;
    top: 18px;
    left: -32px;
    width: 120px;
    background: #FF6B00;
    color: #FFF;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    padding: 3.5px 0;
    transform: rotate(-45deg);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
}

.template-corner-ribbon.ribbon-trending {
    background: #4F46E5;
}

.template-corner-ribbon.ribbon-premium {
    background: #059669;
}

.template-corner-ribbon.ribbon-popular {
    background: #FF6B00;
}

/* Active Checkmark Badge in center */
.template-selected-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 44px;
    height: 44px;
    background: #8B5CF6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    font-size: 22px;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
    z-index: 6;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.template-card.active .template-selected-badge {
    transform: translate(-50%, -50%) scale(1);
}

/* Bottom Category Banner Strip */
.template-card-bottom-bar {
    width: 100%;
    padding: 10px 14px;
    text-align: center;
    color: #FFF;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    background: #4F46E5;
    transition: background 0.2s;
}

/* Miniature Document inside Thumbnail */
.template-mini-sheet {
    width: 170px;
    height: 235px;
    background: #FFFEFA;
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    padding: 8px 7px;
    font-size: 7px;
    display: flex;
    flex-direction: column;
    border: 3px solid var(--tpl-primary, #C03248);
    position: relative;
    overflow: hidden;
}

.mini-sheet-inner {
    border: 1px dashed var(--tpl-accent, #D4AF37);
    padding: 5px 4px;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #FFF;
    box-sizing: border-box;
}

.mini-header {
    text-align: center;
    border-bottom: 0.8px solid var(--tpl-primary, #C03248);
    padding-bottom: 3px;
    margin-bottom: 4px;
}

.mini-om-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1px;
}

.mini-shloka {
    font-size: 5.5px;
    font-weight: 700;
    color: var(--tpl-primary, #C03248);
    line-height: 1;
}

.mini-name {
    font-size: 8.5px;
    font-weight: 800;
    color: var(--tpl-primary, #C03248);
    line-height: 1.1;
    margin-top: 1px;
}

.mini-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mini-sec-title {
    font-size: 5.5px;
    font-weight: 800;
    color: var(--tpl-primary, #C03248);
    text-transform: uppercase;
    text-align: center;
    border-bottom: 0.5px solid var(--tpl-accent, #D4AF37);
    padding-bottom: 1px;
    margin-top: 2px;
}

.mini-row {
    display: flex;
    justify-content: space-between;
    font-size: 5.5px;
    line-height: 1.2;
    color: #1E293B;
}

.mini-row .lbl {
    color: #64748B;
    font-weight: 600;
}

.mini-row .val {
    font-weight: 700;
    text-align: right;
    max-width: 65px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.template-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #FFF;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.15);
    z-index: 2;
}

.template-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(192, 50, 72, 0.3);
    opacity: 0;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.template-card:hover .template-hover-overlay {
    opacity: 1;
}

.btn-select-hover {
    background: #FFF;
    color: var(--dhol-crimson);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transform: translateY(6px);
    transition: transform 0.2s ease;
}

.template-card:hover .btn-select-hover {
    transform: translateY(0);
}

.template-card-info {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
    background: #FFF;
}

.template-card-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--dhol-dark);
}

.template-card-cat {
    font-size: 13px;
    color: var(--dhol-gray-500);
}

.template-use-btn {
    margin-top: 10px;
    width: 100%;
    padding: 8px 12px;
    background: var(--dhol-gray-100);
    border: 1px solid var(--dhol-gray-200);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dhol-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.template-card.active .template-use-btn,
.template-card:hover .template-use-btn {
    background: var(--dhol-crimson);
    color: #FFF;
    border-color: var(--dhol-crimson);
}

/* =======================================================
   BIODATA CREATOR APP CONTAINER
   ======================================================= */
.biodata-creator-app {
    padding: 60px 0 100px 0;
    background: #F1F5F9;
}

.biodata-creator-app .container {
    max-width: 1400px;
    width: 95%;
}

.creator-layout {
    display: grid;
    grid-template-columns: minmax(0, 48%) minmax(0, 52%);
    gap: 32px;
    align-items: start;
    width: 100%;
}

/* Left Form Column */
.creator-form-panel {
    background: #FFF;
    border-radius: 20px;
    border: 1px solid var(--dhol-gray-200);
    box-shadow: var(--dhol-shadow-md);
    padding: 32px 28px;
}

.step-progress-wrapper {
    margin-bottom: 28px;
}

.step-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.step-progress-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--dhol-crimson);
}

.step-progress-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--dhol-gray-500);
}

.step-progress-bar-track {
    height: 6px;
    background: var(--dhol-gray-200);
    border-radius: 10px;
    overflow: hidden;
}

.step-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--dhol-crimson) 0%, var(--dhol-gold) 100%);
    transition: width 0.4s ease;
}

.step-tabs-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--dhol-gray-200);
    scrollbar-width: thin;
}

.step-tab-btn {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dhol-gray-500);
    background: transparent;
    border: none;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.step-tab-btn.active {
    background: var(--dhol-crimson-light);
    color: var(--dhol-crimson);
    font-weight: 700;
}

.step-tab-btn.completed i {
    color: #16A34A;
}

/* Form Sections */
.form-step-pane {
    display: none;
}

.form-step-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.pane-heading {
    margin-bottom: 20px;
}

.pane-heading h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--dhol-dark);
    margin-bottom: 4px;
}

.pane-heading p {
    font-size: 13px;
    color: var(--dhol-gray-500);
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--dhol-slate);
    margin-bottom: 6px;
}

.form-label .req {
    color: var(--dhol-crimson);
    font-weight: 700;
}

.form-label .opt {
    font-size: 11px;
    font-weight: 500;
    color: var(--dhol-gray-400);
    margin-left: 4px;
}

.form-control-dhol {
    width: 100%;
    height: 46px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dhol-dark);
    background: #FFF;
    border: 1px solid var(--dhol-gray-300);
    border-radius: 10px;
    transition: all 0.2s;
}

.form-control-dhol:focus {
    border-color: var(--dhol-crimson);
    box-shadow: 0 0 0 3px var(--dhol-crimson-light);
    outline: none;
}

textarea.form-control-dhol {
    height: auto;
    min-height: 90px;
    resize: vertical;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
}

.btn-add-repeater {
    background: var(--dhol-gray-100);
    border: 1px dashed var(--dhol-gray-300);
    color: var(--dhol-slate);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.btn-add-repeater:hover {
    background: var(--dhol-crimson-light);
    border-color: var(--dhol-crimson);
    color: var(--dhol-crimson);
}

/* Photo Upload Box */
.photo-uploader-box {
    border: 2px dashed var(--dhol-gray-300);
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    background: #F8FAFC;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.photo-uploader-box:hover {
    border-color: var(--dhol-crimson);
    background: var(--dhol-crimson-light);
}

.photo-preview-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px;
    background: #FFF;
    border: 1px solid var(--dhol-gray-200);
    border-radius: 12px;
    margin-top: 12px;
}

.photo-preview-thumb {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--dhol-crimson);
}

.photo-actions {
    display: flex;
    gap: 10px;
}

.btn-photo-action {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid var(--dhol-gray-300);
    background: #FFF;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-photo-action.delete {
    color: #DC2626;
    border-color: #FCA5A5;
}

/* Form Nav Buttons */
.form-step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--dhol-gray-200);
}

.btn-step-prev {
    background: #FFF;
    border: 1px solid var(--dhol-gray-300);
    color: var(--dhol-slate);
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-step-prev:hover {
    background: var(--dhol-gray-100);
}

.btn-step-next {
    background: var(--dhol-crimson);
    border: none;
    color: #FFF;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(192, 50, 72, 0.24);
}

.btn-step-next:hover {
    background: var(--dhol-crimson-dark);
}

/* =======================================================
   RIGHT COLUMN: STICKY LIVE PREVIEW
   ======================================================= */
.creator-preview-panel {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.preview-panel-header {
    background: #FFF;
    border-radius: 14px;
    padding: 12px 18px;
    border: 1px solid var(--dhol-gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-header-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--dhol-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.template-quick-select {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid var(--dhol-gray-300);
    background: #FFF;
    color: var(--dhol-dark);
}

.preview-viewport-card {
    background: #0F172A;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 16px 16px;
    border-radius: 18px;
    padding: 24px 16px;
    box-shadow: 0 20px 48px rgba(0,0,0,0.22);
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    border: 1px solid #334155;
    scroll-behavior: smooth;
}

.preview-viewport-card::-webkit-scrollbar {
    width: 6px;
}

.preview-viewport-card::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 4px;
}

.preview-viewport-card::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 4px;
}

.preview-viewport-card::-webkit-scrollbar-thumb:hover {
    background: var(--dhol-crimson);
}

/* =======================================================
   BIODATA A4 SHEET DOCUMENT STYLES (TRADITIONAL & MODERN)
   ======================================================= */
.biodata-sheet-container {
    width: 100%;
    max-width: 530px;
    background: #FFFEFA;
    border: 9px solid var(--tpl-primary, #881337);
    outline: 2.5px solid var(--tpl-accent, #D4AF37);
    outline-offset: -5px;
    box-shadow: 0 16px 45px rgba(0,0,0,0.35);
    border-radius: 6px;
    padding: 22px 20px;
    box-sizing: border-box;
    margin: 0 auto;
    position: relative;
}

.bio-sheet-inner {
    border: 1.5px dashed var(--tpl-accent, #D4AF37);
    padding: 22px 20px;
    background: #FFFFFF;
    position: relative;
    border-radius: 4px;
}

/* Template Specific Sheet Frames */
.template-royal-vedic {
    border-color: #881337;
    outline-color: #D4AF37;
}

.template-emerald-elegance {
    border-color: #14532D;
    outline-color: #CA8A04;
}

.template-pastel-floral {
    border-color: #BE185D;
    outline-color: #F43F5E;
}

.template-ivory-classic {
    border-color: #1E3A8A;
    outline-color: #D97706;
}

.template-golden-luxury {
    border-color: #9A3412;
    outline-color: #F59E0B;
}

.template-sapphire-majestic {
    border-color: #0F172A;
    outline-color: #38BDF8;
}

/* Sheet Header */
.bio-header {
    text-align: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.bio-ganesha-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 4px;
}

.bio-header-shloka {
    font-size: 13px;
    font-weight: 700;
    color: var(--tpl-primary, #C03248);
    letter-spacing: 0.08em;
    margin-bottom: 4px;
    font-family: 'Playfair Display', serif;
}

.bio-candidate-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--tpl-primary, #C03248);
    margin: 4px 0 2px 0;
    letter-spacing: -0.01em;
}

.bio-candidate-tagline {
    font-size: 12px;
    font-weight: 500;
    color: var(--dhol-slate);
    margin: 0;
}

/* Photo Wrapper inside Biodata */
.bio-top-hero.has-photo {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.bio-photo-wrapper {
    width: 105px;
    height: 115px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid var(--tpl-accent, #D4AF37);
    outline: 2px solid var(--tpl-primary, #C03248);
    outline-offset: 2px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.bio-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Biodata Sections */
.bio-section {
    margin-bottom: 14px;
}

.bio-section-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 14px 0 8px 0;
}

.bio-heading-text {
    font-size: 13px;
    font-weight: 800;
    color: var(--tpl-primary, #C03248);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    padding: 0 4px;
    white-space: nowrap;
}

.bio-heading-line {
    flex: 1;
    height: 1.2px;
    background: linear-gradient(90deg, transparent, var(--tpl-accent, #D4AF37), var(--tpl-primary, #C03248), var(--tpl-accent, #D4AF37), transparent);
}

.bio-section-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 4px;
}

.bio-field-row {
    display: grid;
    grid-template-columns: 140px 14px 1fr;
    font-size: 12.5px;
    line-height: 1.45;
}

.bio-field-label {
    font-weight: 600;
    color: #475569;
}

.bio-field-colon {
    font-weight: 700;
    color: var(--tpl-primary, #C03248);
    text-align: center;
}

.bio-field-value {
    font-weight: 600;
    color: #0F172A;
}

.bio-paragraph-block {
    margin-bottom: 8px;
    font-size: 12.5px;
}

.bio-para-label {
    font-weight: 600;
    color: #334155;
    display: block;
    margin-bottom: 2px;
}

.bio-para-text {
    color: #0F172A;
    line-height: 1.5;
    margin: 0;
}

.bio-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 10px;
}

.bio-footer-divider {
    height: 1px;
    background: var(--tpl-primary, #C03248);
    opacity: 0.3;
    margin-bottom: 8px;
}

.bio-footer-text {
    font-size: 10px;
    color: #94A3B8;
    margin: 0;
}

.bio-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--dhol-gray-400);
}

.bio-empty-state i {
    font-size: 36px;
    color: var(--dhol-crimson);
    margin-bottom: 8px;
    display: block;
}

/* =======================================================
   FINAL PREVIEW MODAL & LEAD CAPTURE MODAL
   ======================================================= */
.dhol-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(6px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.dhol-modal-backdrop.show {
    display: flex;
}

.dhol-modal-box {
    background: #FFF;
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.25);
    overflow: hidden;
    animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.dhol-modal-header {
    padding: 24px 28px 16px 28px;
    border-bottom: 1px solid var(--dhol-gray-200);
    position: relative;
}

.dhol-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--dhol-gray-100);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dhol-slate);
    cursor: pointer;
    font-size: 18px;
}

.dhol-modal-body {
    padding: 28px;
}

/* FAQ Accordion */
.bio-faq-section {
    padding: 80px 0;
    background: #FFF;
}

.bio-accordion-item {
    border: 1px solid var(--dhol-gray-200);
    border-radius: 12px;
    margin-bottom: 14px;
    overflow: hidden;
    transition: all 0.2s;
}

.bio-accordion-header {
    padding: 18px 24px;
    background: #FFF;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--dhol-dark);
}

.bio-accordion-header i {
    transition: transform 0.3s;
    color: var(--dhol-crimson);
}

.bio-accordion-item.active .bio-accordion-header i {
    transform: rotate(180deg);
}

.bio-accordion-content {
    display: none;
    padding: 0 24px 18px 24px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--dhol-slate);
}

.bio-accordion-item.active .bio-accordion-content {
    display: block;
}

/* Mobile Sticky Bottom CTA Bar */
/* =======================================================
   MOBILE & TABLET RESPONSIVE STYLES
   ======================================================= */

/* Prevent horizontal scroll jitter on small viewports */
body.biodata-maker-page {
    overflow-x: hidden;
    width: 100%;
}

.biodata-maker-page .navbar {
    padding: 12px 0;
}

/* Mobile Sticky Bottom CTA Bar */
.mobile-sticky-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 16px;
    box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.12);
    z-index: 9999;
    border-top: 1px solid var(--dhol-gray-200);
}

.mobile-sticky-cta-bar .btn-bio-primary,
.mobile-sticky-cta-bar .btn-bio-secondary {
    padding: 11px 14px;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Tablet & Smaller (<= 991px) */
@media (max-width: 991px) {
    .biodata-creator-app {
        padding: 40px 0 100px 0;
    }

    .creator-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Live Preview panel hidden on mobile in creator view; accessible via sticky dock & Preview modal */
    .creator-preview-panel {
        display: none;
    }

    .mobile-sticky-cta-bar {
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .bio-hero-section {
        padding: 95px 0 35px 0;
    }

    .bio-hero-title {
        font-size: 32px;
        line-height: 1.25;
    }

    .bio-hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .btn-bio-primary, .btn-bio-secondary {
        width: 100%;
        justify-content: center;
    }

    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .step-tabs-nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 8px;
    }

    .step-tabs-nav::-webkit-scrollbar {
        display: none;
    }

    .step-tab-btn {
        flex-shrink: 0;
        padding: 7px 12px;
        font-size: 12.5px;
        white-space: nowrap;
        border-radius: 20px;
    }
}

/* Small Mobile Devices (<= 767px) */
@media (max-width: 767px) {
    .biodata-maker-page .navbar .logo img {
        max-width: 125px;
    }

    .biodata-maker-page .btn-app-login {
        padding: 6px 12px;
        font-size: 12.5px;
    }

    .bio-hero-section {
        padding: 85px 0 28px 0;
    }

    .bio-hero-badge {
        font-size: 12px;
        padding: 5px 12px;
        margin-bottom: 14px;
    }

    .bio-hero-title {
        font-size: 25px;
        line-height: 1.25;
        margin-bottom: 12px;
    }

    .bio-hero-subtitle {
        font-size: 13.5px;
        line-height: 1.55;
        margin-bottom: 20px;
    }

    .bio-trust-badges {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 24px;
    }

    .bio-trust-item {
        font-size: 12.5px;
        gap: 6px;
    }

    .bio-section-title {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .bio-section-desc {
        font-size: 14px;
        margin-bottom: 28px;
        padding: 0 8px;
    }

    /* Template Grid: 1 column centered on mobile */
    .template-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
        gap: 18px;
    }

    .template-card-preview {
        height: 255px;
        padding: 10px 8px;
    }

    .template-mini-sheet {
        width: 165px;
        height: 230px;
    }

    /* Form Panel on Mobile */
    .creator-form-panel {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .pane-heading h3 {
        font-size: 19px;
    }

    .pane-heading p {
        font-size: 13px;
        margin-bottom: 18px;
    }

    .form-row-2, .form-row-3 {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .form-group {
        margin-bottom: 14px;
    }

    .form-label {
        font-size: 13px;
        margin-bottom: 5px;
    }

    .form-control-dhol {
        height: 46px;
        font-size: 14px;
        padding: 8px 12px;
    }

    textarea.form-control-dhol {
        min-height: 80px;
    }

    .btn-step-prev, .btn-step-next {
        padding: 9px 16px;
        font-size: 13px;
    }

    .photo-uploader-box {
        padding: 16px 12px;
    }

    .btn-photo-action {
        font-size: 11.5px;
        padding: 6px 10px;
    }

    /* Modals on Mobile */
    .dhol-modal-box {
        margin: 12px;
        width: calc(100% - 24px);
        max-height: 92vh;
        border-radius: 16px;
    }

    .dhol-modal-header {
        padding: 16px 18px;
    }

    .dhol-modal-body {
        padding: 16px 12px;
    }

    .biodata-sheet-container {
        padding: 14px 10px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .bio-field-row {
        grid-template-columns: 100px 8px 1fr;
        font-size: 11px;
        gap: 4px;
    }

    .bio-candidate-name {
        font-size: 20px;
    }

    .bio-accordion-header {
        padding: 14px 16px;
        font-size: 14.5px;
    }

    .bio-accordion-content {
        padding: 0 16px 14px 16px;
        font-size: 13px;
    }
}

/* Print CSS */
@media print {
    body * {
        visibility: hidden;
    }
    #biodataSheet, #biodataSheet * {
        visibility: visible;
    }
    #biodataSheet {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        max-width: 100%;
        box-shadow: none;
        border: none;
    }
}
