/* ================================
   CSS VARIABLES / DESIGN TOKENS
   ================================ */
:root {
    /* Color Palette */
    --color-primary-dark: #0E0A25;      /* Dark blue gradient start */
    --color-primary-light: #192851;     /* Dark blue gradient end */
    --color-text-dark: #2C3034;         /* Main text color */
    --color-text-light: #666;           /* Secondary text color */
    --color-text-muted: #999;           /* Muted text (footer) */
    --color-white: #FFFFFF;             /* Pure white */
    --color-white-90: rgba(255, 255, 255, 0.9); /* Slightly transparent white */
    --color-bg-gray: #f5f5f5;           /* Gray background for left column */
    --color-bg-light: #f8f9fa;          /* Light background */
    --color-border: #e0e0e0;            /* Border color for steps */
    --color-icon-bg: #8BBAE2;           /* Icon circle background */
    
    /* Typography - Font Families */
    --font-heading: 'DM Serif Display', serif;
    --font-body: 'Oxygen', sans-serif;
    
    /* Typography - Font Sizes */
    --font-size-hero: 36px;
    --font-size-hero-sub: 20px;
    --font-size-section-title: 18px;
    --font-size-heading: 16px;
    --font-size-body: 15px;
    --font-size-footer: 12px;
    --font-size-small: 10px;
    
    /* Typography - Font Weights */
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-bold: 700;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 15px;
    --spacing-lg: 20px;
    --spacing-xl: 24px;
    --spacing-2xl: 30px;
    --spacing-3xl: 35px;
    --spacing-4xl: 40px;
    --spacing-5xl: 50px;
    
    /* Layout */
    --a4-width: 210mm;
    --a4-height: 297mm;
    --hero-height: 35%;
    --content-height: 65%;
    
    /* Borders & Shadows */
    --border-radius-sm: 8px;
    --border-radius-md: 10px;
    --border-radius-lg: 12px;
    --shadow-default: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* ================================
   RESET & BASE STYLES
   ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: #f0f0f0; /* Page background */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: var(--spacing-lg);
}

/* ================================
   UTILITY CLASSES
   ================================ */
.hero-divider {
    width: 320px;
    height: 2px;
    background: #33466c;
    margin-top: 32px;
    margin-bottom: 20px;
    border-radius: 2px;
}

/* ================================
   CONTROL PANEL
   ================================ */
.control-panel {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-large);
    padding: var(--spacing-xl);
    width: 280px;
    z-index: 1000;
}

.control-panel h3 {
    font-family: var(--font-body);
    font-size: var(--font-size-heading);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--color-border);
}

.control-group {
    margin-bottom: var(--spacing-lg);
}

.control-group label {
    display: block;
    font-size: 13px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-xs);
}

.control-group input[type="text"],
.control-group input[type="tel"],
.control-group input[type="url"] {
    width: 100%;
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-family: var(--font-body);
    transition: border-color 0.2s;
}

.control-group input:focus {
    outline: none;
    border-color: var(--color-icon-bg);
}

/* Color Picker Styles */
.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.color-picker-input {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    cursor: pointer;
    overflow: hidden;
    padding: 0;
    position: relative;
}

.color-picker-input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker-input::-webkit-color-swatch {
    border: none;
    border-radius: 50%;
}

.color-value {
    flex: 1;
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-family: monospace;
    background: var(--color-bg-gray);
}

/* ================================
   A4 CONTAINER
   ================================ */
.a4-container {
    width: var(--a4-width);
    height: var(--a4-height);
    background-color: var(--color-white);
    box-shadow: var(--shadow-large);
    overflow: hidden;
    position: relative;
}

/* ================================
   HERO SECTION
   ================================ */
.hero-section {
    height: var(--hero-height);
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-light) 100%);
    padding: var(--spacing-3xl) var(--spacing-5xl);
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
}

/* Hero Left Content */
.hero-left {
    color: var(--color-white);
    max-width: 50%;
    position: relative;
    z-index: 2;
}

/* Hero Heading */
.hero-heading {
    font-family: var(--font-heading);
    font-size: var(--font-size-hero);
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    color: var(--color-white);
}

/* Hero Subheading */
.hero-subheading {
    font-size: var(--font-size-hero-sub);
    font-weight: var(--font-weight-light);
    line-height: 1.4;
    color: var(--color-white-90);
}

/* Logo Container */
.logo-container {
    background: var(--color-white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    position: absolute;
    top: var(--spacing-3xl);
    right: var(--spacing-5xl);
    box-shadow: var(--shadow-default);
    z-index: 3;
    max-width: 140px;
    max-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-container img {
    max-width: calc(140px - 30px); /* Container max-width minus padding */
    max-height: calc(100px - 30px); /* Container max-height minus padding */
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Hero Image Container */
.hero-image-container {
    position: absolute;
    bottom: -80px;
    right: 50px;
    width: 380px;
    height: auto;
    z-index: 2;
}

.hero-image {
    width: 120%;
    height: auto;
    position: relative;
    bottom: 64px;
    left: 22px;
}

/* Dotted Line Decoration */
.dotted-line {
    position: absolute;
    top: 50%;
    left: 250px;
    width: 350px;
    height: 200px;
    pointer-events: none;
}

.dotted-line svg {
    width: 100%;
    height: 100%;
}

/* ================================
   CONTENT SECTION
   ================================ */
.content-section {
    height: var(--content-height);
    padding: 0;
    background: var(--color-white);
    display: flex;
    gap: 0;
    position: relative;
}

/* ================================
   PAYMENTS THEME (scoped)
   ================================ */
/* Root container tweaks */
.payments-theme {
    background: #102653;
    --hero-height: 16%;
    margin-top: 40px;
    --content-height: 75%;
}

/* Decorative top lines image */
.payments-theme .top-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    min-height: 33px;
    z-index: 1;
    pointer-events: none;
}

.payments-theme .partner-title{
    font-size: 22px;
}

.payments-theme .hero-heading {
    padding-top: 32px;
    font-size: var(--font-size-hero);
    font-weight: 500;
    margin-bottom: 10px;
}


.payments-theme .hero-subheading {
    font-size: var(--font-size-body);
    color: var(--color-white);

}
.payments-theme .certifid-logo{
    height: 28px;
    width: auto;
}

.payments-theme .steps-container{
    gap: 20px;
}

/* Hero and content background overrides */
.payments-theme .hero-section {
    background: #102653;
}

.payments-theme .content-section,
.payments-theme .content-right {
    background: transparent;
}

/* Typography to white in this theme */
.payments-theme .partner-title,
.payments-theme .section-text,
.payments-theme .how-title,
.payments-theme .footer-info,
.payments-theme .footer-url,
.payments-theme .footer-phone {
    color: #ffffff;
}

/* Keep card text dark on white cards */
.payments-theme .step .step-text { color: var(--color-text-dark); }

/* Hero device illustration smaller */
.payments-theme .hero-image-container { width: 260px; right: 40px; bottom: -50px; }
.payments-theme .hero-image { width: 104%; left: -12px; top: 80px; }

/* Lift the lower content up a bit */
.payments-theme .content-left { display: none; }
.payments-theme .content-right { flex: 1; padding-top: 24px; }

/* Combo class: remove overflow clipping only for Payments hero */
.payments-hero { overflow: visible; }

/* ================================
   LEFT COLUMN - Why should I verify
   ================================ */
.content-left {
    flex: 1;
    background: var(--color-bg-gray);
    padding-top: var(--spacing-4xl);
    padding-left: var(--spacing-4xl);
    padding-right: var(--spacing-4xl);
    max-width: 280px;
}

.section-title {
    font-family: var(--font-body);
    font-size: var(--font-size-section-title);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-xl);
}

.section-text {
    font-size: var(--font-size-body);
    line-height: 1.5;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-md);
}

.section-text-left {
    font-size: var(--font-size-body);
    line-height: 1.4;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-md);
}

.section-text-left-warning {
    font-size: 14px;
    line-height: 1.4;
    color: #DB132C;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
}

.section-text-left-warning-subtext {
    font-size: 14px;
    line-height: 1.4;
    color: var(--color-text-dark);
    font-weight: var(--font-weight-normal);
}

/* ================================
   RIGHT COLUMN - CertifiD info
   ================================ */
.content-right {
    flex: 1.5;
    padding: var(--spacing-5xl);
    padding-top: 42px;
    background: var(--color-white);
    position: relative;
}

/* CertifiD Header */
.certifid-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.certifid-logo {
    height: 25px;
    width: auto;
}

/* Partner Title */
.partner-title {
    font-family: var(--font-body);
    font-size: var(--font-size-heading);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-md);
}

/* ================================
   HOW IT WORKS SECTION
   ================================ */
.how-it-works {
    margin-top: var(--spacing-2xl);
}

.how-title {
    font-family: var(--font-body);
    font-size: var(--font-size-heading);
    font-weight: var(--font-weight-bold);
    color: #333; /* Kept as is - slightly lighter than main text */
    margin-bottom: var(--spacing-lg);
}

/* Steps Container */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* Individual Step */
.step {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: var(--spacing-lg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    background: var(--color-white);
}

/* Icon Wrapper */
.icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-icon-bg);
    flex-shrink: 0;
}

.icon-wrapper img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1); /* Makes SVG white */
}

/* Step Content */
.step-content {
    flex: 1;
}

.step-text {
    font-size: var(--font-size-body);
    line-height: 1.4;
    color: var(--color-text-dark);
    margin: 0;
}

.step-text strong {
    font-weight: var(--font-weight-bold);
}

/* ================================
   FOOTER
   ================================ */
.footer-info {
    margin-top: var(--spacing-sm);
    font-size: var(--font-size-footer);
    color: var(--color-text-muted);
    text-align: right;
}

.footer-url {
    color: var(--color-text-muted);
}

.footer-phone {
    color: var(--color-text-muted);
}

/* ================================
   LOGO UPLOADER MODAL STYLES
   ================================ */
.logo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.logo-modal.active {
    display: flex;
}

.logo-modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.logo-modal-header {
    margin-bottom: 20px;
}

.logo-modal-header h2 {
    color: #333;
    margin: 0 0 10px 0;
    font-family: var(--font-heading);
}

/* Logo Instructions Box */
.logo-instructions {
    background: #f0f8ff;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #333;
    font-family: var(--font-body);
}

/* Aspect Ratio Buttons */
.logo-aspect-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.logo-aspect-btn {
    flex: 1;
    padding: 10px;
    background: #f0f0f0;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-body);
    transition: all 0.2s;
}

.logo-aspect-btn:hover {
    background: #e0e0e0;
}

.logo-aspect-btn.active {
    background: #156FBE;
    color: white;
    border-color: #156FBE;
}

.logo-aspect-btn small {
    display: block;
    font-size: 11px;
    margin-top: 2px;
    opacity: 0.8;
}

/* Zoom Controls */
.logo-zoom-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.logo-zoom-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.logo-zoom-btn:hover {
    background: #f0f0f0;
}

.logo-zoom-value {
    min-width: 60px;
    text-align: center;
    font-size: 14px;
    color: #666;
    font-family: var(--font-body);
}

#logo-zoom-slider {
    flex: 1;
}

/* Canvas Container */
.logo-canvas-container {
    position: relative;
    margin-bottom: 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

#logo-crop-canvas {
    display: block;
    cursor: move;
}

/* Modal Action Buttons */
.logo-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.logo-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-body);
    transition: all 0.2s;
}

.logo-btn-primary {
    background: #156FBE;
    color: white;
}

.logo-btn-primary:hover {
    background: #0E5BA0;
}

.logo-btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.logo-btn-secondary:hover {
    background: #d0d0d0;
}

/* ================================
   COLOR UPDATE BADGE ANIMATION
   ================================ */
.updated-badge {
    display: none;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #4A90E2;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-body);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.updated-badge.show {
    display: inline-block;
    animation: slideInFade 0.3s ease forwards;
}

.updated-badge.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

@keyframes slideInFade {
    0% {
        opacity: 0;
        transform: translateY(-50%) translateX(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Ensure the control group with badge is positioned relatively */
.control-group {
    position: relative;
}