/* ==========================================================================
   dissolveX HRMS — Request Demo & Contact Landing Page Stylesheet
   Emerald SaaS Design System matching Core Landing & Features
   ========================================================================== */

:root {
    --demo-primary: #0b2b20;
    --demo-primary-hover: #123d2f;
    --demo-emerald: #10b981;
    --demo-emerald-dark: #059669;
    --demo-emerald-deep: #065f46;
    --demo-mint-bg: #eaf6f0;
    --demo-mint-glow: rgba(16, 185, 129, 0.20);
    --demo-border: rgba(16, 185, 129, 0.22);
    --demo-border-light: #e2e8f0;
    --demo-text-dark: #0f172a;
    --demo-text-headings: #0c2017;
    --demo-text-muted: #475569;
    --demo-text-subtle: #64748b;
    --font-sans: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    --font-serif: 'Instrument Serif', Georgia, serif;
    --shadow-card: 0 12px 36px rgba(15, 57, 43, 0.08), 0 2px 6px rgba(15, 23, 42, 0.03);
    --shadow-window: 0 25px 65px -15px rgba(16, 185, 129, 0.16), 0 8px 24px rgba(15, 23, 42, 0.04);
}

/* Page Base */
.demo-page {
    background-color: var(--demo-mint-bg);
    background-image: radial-gradient(circle at 50% 15%, rgba(16, 185, 129, 0.22) 0%, rgba(230, 247, 240, 0.75) 45%, #eaf6f0 85%);
    color: var(--demo-text-dark);
    font-family: var(--font-sans);
    margin: 0;
    padding: 0;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    line-height: 1.6;
    min-height: 100svh;
}

/* Reading Progress Indicator */
.demo-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    z-index: 9999;
    will-change: transform;
}

/* Container */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* Signature Serif Italic Accent */
.serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    background: linear-gradient(135deg, #0b2b20 0%, #10b981 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    letter-spacing: -0.015em;
    padding-right: 4px;
}

/* ==========================================================================
   Hero Split Grid Section
   ========================================================================== */
.demo-hero-section {
    padding: 110px 0 80px;
    position: relative;
    background: transparent;
}

.demo-hero-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 48px;
    align-items: flex-start;
}

/* Grid items default to min-width:auto, so the logo marquee's max-content
   track would otherwise stretch its column past the screen on phones. */
.demo-hero-container > * {
    min-width: 0;
}

/* ==========================================================================
   Left Column: Value Proposition & Session Highlights Card
   ========================================================================== */
.demo-content-col {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 90px;
}

.demo-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid rgba(16, 185, 129, 0.32);
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--demo-emerald-deep);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
    margin-bottom: 16px;
    width: fit-content;
}

.demo-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--demo-emerald);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.demo-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.3rem, 3.8vw, 3.2rem);
    font-weight: 800;
    line-height: 1.12;
    color: var(--demo-text-headings);
    letter-spacing: -0.025em;
    margin: 0 0 14px 0;
}

.demo-hero-title .serif-italic {
    font-size: 1.15em;
}

.demo-hero-lead {
    font-family: var(--font-sans);
    font-size: 0.98rem;
    color: var(--demo-text-muted);
    line-height: 1.6;
    margin: 0 0 22px 0;
    max-width: 480px;
}

/* Ultra-Premium Session Highlights Card */
.demo-session-card {
    background: #ffffff;
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 18px;
    padding: 22px 24px;
    box-shadow: 0 4px 20px rgba(15, 57, 43, 0.05);
    margin-bottom: 20px;
    max-width: 500px;
}

.session-card-header {
    margin-bottom: 16px;
}

.session-card-pill {
    display: inline-block;
    font-size: 0.70rem;
    font-weight: 800;
    color: #065f46;
    background: #ecfdf5;
    border: 1px solid rgba(16, 185, 129, 0.28);
    padding: 3px 10px;
    border-radius: 9999px;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.session-card-title {
    font-family: var(--font-heading);
    font-size: 1.12rem;
    font-weight: 800;
    color: #0c2017;
    margin: 0;
    letter-spacing: -0.015em;
}

.session-features-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.session-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #f8fdfa;
    border: 1px solid #edf7f1;
}

.session-feature-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #ecfdf5;
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.session-feature-info {
    flex: 1;
}

.session-feature-head {
    font-family: var(--font-heading);
    font-size: 0.90rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 2px 0;
}

.session-feature-desc {
    font-family: var(--font-sans);
    font-size: 0.80rem;
    color: #64748b;
    line-height: 1.45;
    margin: 0;
}

/* In-Column Sliding Marquee */
.demo-incol-trusted {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.04);
    max-width: 500px;
}

.incol-trusted-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.incol-trusted-line {
    flex: 1;
    height: 1px;
    background: rgba(15, 57, 43, 0.12);
}

.incol-trusted-label {
    font-size: 0.72rem;
    font-weight: 800;
    color: #475569;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.incol-marquee-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

.incol-marquee-track {
    display: flex;
    width: max-content;
    animation: incolMarqueeScroll 20s linear infinite;
}

.incol-marquee-group {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-right: 28px;
    flex-shrink: 0;
}

.incol-brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.incol-client-logo {
    height: 22px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}

@keyframes incolMarqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   Right Column: Interactive Form Card
   ========================================================================== */
.demo-form-col {
    position: relative;
    width: 100%;
}

.demo-form-card {
    background: #ffffff;
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 14px 38px rgba(15, 57, 43, 0.08), 0 2px 6px rgba(15, 23, 42, 0.03);
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.demo-form-header {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.form-title {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 800;
    color: #0c2017;
    margin: 0 0 6px 0;
    letter-spacing: -0.02em;
}

.form-subtitle {
    font-family: var(--font-sans);
    font-size: 0.86rem;
    color: var(--demo-text-muted);
    margin: 0;
    line-height: 1.45;
}

/* Form Body & Grid */
.demo-form-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.form-field-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.form-label {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
}

.form-label.font-normal {
    font-weight: 600;
    color: #334155;
}

.req {
    color: #dc2626;
    margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    font-family: var(--font-sans);
    font-size: 0.86rem;
    color: #0f172a;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 12px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}

.form-input,
.form-select {
    height: 40px;
}

.form-select {
    padding-right: 28px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 13px;
    cursor: pointer;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    background: #ffffff;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #94a3b8;
    font-size: 0.84rem;
}

.form-textarea {
    resize: vertical;
    min-height: 70px;
    line-height: 1.45;
}

/* Phone Input Group */
.phone-input-group {
    display: grid;
    grid-template-columns: 95px 1fr;
    gap: 8px;
    width: 100%;
}

.country-code-select {
    width: 100%;
    padding: 8px 22px 8px 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.phone-number-input {
    width: 100%;
}

/* Error States */
.field-error-msg {
    font-size: 0.74rem;
    color: #dc2626;
    font-weight: 600;
    display: none;
    margin-top: 2px;
}

.form-field-group.has-error .form-input,
.form-field-group.has-error .form-select,
.form-field-group.has-error .form-textarea {
    border-color: #ef4444;
    background: #fef2f2;
}

.form-field-group.has-error .field-error-msg {
    display: block;
}

/* Checkboxes Grid */
.checkbox-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 2px;
}

.other-services-grid {
    grid-template-columns: repeat(2, 1fr);
}

.checkbox-card-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 7px 10px;
    cursor: pointer;
    user-select: none;
    min-height: 38px;
    box-sizing: border-box;
    transition: background 0.15s ease, border-color 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
.checkbox-card-item:hover {
    background: #f0fdf4;
    border-color: rgba(16, 185, 129, 0.35);
}
}

.checkbox-card-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.custom-check-box {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid #94a3b8;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease, transform 0.15s ease, filter 0.15s ease;
    position: relative;
}

.checkbox-card-item input[type="checkbox"]:checked + .custom-check-box {
    background: #10b981;
    border-color: #10b981;
}

.checkbox-card-item input[type="checkbox"]:checked + .custom-check-box::after {
    content: "";
    width: 3.5px;
    height: 7px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -1.5px;
    display: block;
}

.checkbox-card-item.checked {
    background: #ecfdf5;
    border-color: rgba(16, 185, 129, 0.4);
}

.checkbox-all {
    grid-column: 1 / -1;
    background: #f0fdf4;
    border-color: rgba(16, 185, 129, 0.35);
}

.check-label-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.25;
    display: flex;
    align-items: center;
    gap: 4px;
}

.info-bubble {
    font-size: 0.72rem;
    color: #047857;
    cursor: help;
}

/* Location Auto-Detection Banner */

/* Captcha Verification Block */

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Privacy Notice */
.demo-privacy-notice {
    font-family: var(--font-sans);
    font-size: 0.74rem;
    color: #64748b;
    line-height: 1.4;
    text-align: left;
}

.privacy-link {
    color: #047857;
    text-decoration: underline;
    font-weight: 600;
}

@media (hover: hover) and (pointer: fine) {
.privacy-link:hover {
    color: #065f46;
}
}

/* Submit Button & Wrapper */
.demo-submit-wrap {
    margin-top: 4px;
}

.demo-submit-btn {
    width: 100%;
    height: 48px;
    background: #0b2b20;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
    box-shadow: 0 4px 14px rgba(11, 43, 32, 0.25);
}

@media (hover: hover) and (pointer: fine) {
.demo-submit-btn:hover {
    background: #065f46;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(6, 95, 70, 0.3);
}
}

.demo-submit-btn:active {
    transform: translateY(0);
}

.demo-submit-btn.loading .btn-text {
    opacity: 0.7;
}

.btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.demo-submit-btn.loading .btn-spinner {
    display: block;
}

/* ==========================================================================
   Success Confirmation Modal
   ========================================================================== */
.demo-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(11, 43, 32, 0.65);
    backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.demo-modal-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.demo-modal-dialog {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    max-width: 520px;
    width: 100%;
    padding: 36px 32px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.95);
    transition: transform 0.25s ease;
}

.demo-modal-backdrop.show .demo-modal-dialog {
    transform: scale(1);
}

.modal-check-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #ecfdf5;
    border: 2px solid #10b981;
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}

.modal-heading {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: #0c2017;
    margin: 0 0 10px 0;
}

.modal-description {
    font-family: var(--font-sans);
    font-size: 0.94rem;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.modal-description strong {
    color: #0c2017;
}

.email-highlight {
    color: #047857;
    font-weight: 700;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn-primary {
    background: #0b2b20;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-size: 0.90rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
.modal-btn-primary:hover {
    background: #065f46;
}
}

.modal-btn-secondary {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 12px 20px;
    font-family: var(--font-heading);
    font-size: 0.90rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
.modal-btn-secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
}
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
    .demo-hero-section {
        padding: 100px 0 60px;
    }

    .demo-hero-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .demo-content-col {
        position: static;
        width: 100%;
        max-width: 640px;
        margin: 0 auto;
    }

    .demo-session-card,
    .demo-incol-trusted {
        max-width: 100%;
    }

    .demo-form-col {
        width: 100%;
        max-width: 640px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .demo-hero-section {
        padding: 90px 0 40px;
    }

    .demo-hero-title {
        font-size: 2.1rem;
    }

    .demo-form-card {
        padding: 24px 18px;
        border-radius: 16px;
    }

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

    .phone-input-group {
        grid-template-columns: 85px 1fr;
    }

    .checkbox-options-grid,
    .other-services-grid {
        grid-template-columns: 1fr;
    }

    .modal-actions {
        flex-direction: column;
    }
}