/* =================================================================
   ENQUIRE PAGE STYLES (Project Initialization Protocol)
   ================================================================= */

/* ----------------------------------
   LAYOUT & STRUCTURE
   ---------------------------------- */
.e-page {
    min-height: 100vh;
    background: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    padding-top: 0; /* Header is absolute/fixed usually, but here we might want full screen */
}

.e-split-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ----------------------------------
   LEFT SIDEBAR (CONTEXT)
   ---------------------------------- */
.e-sidebar {
    width: 40%;
    position: relative;
    background: #02040a;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.e-sidebar__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.e-sidebar__bg .grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(138, 66, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(138, 66, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
}

.e-sidebar__bg .glow-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(138, 66, 255, 0.15), transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: pulseGlow 8s infinite alternate;
}

@keyframes pulseGlow {
    0% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.9); }
    100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

.e-sidebar__content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    margin: 0 auto;
}

.e-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 100px;
    color: var(--color-accent);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 40px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-accent);
    animation: pulse 2s infinite;
}

.e-sidebar__header .tagline {
    display: block;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.e-sidebar__header h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.e-sidebar__header p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 50px;
}

.e-trust-metrics {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.metric-item {
    display: flex;
    flex-direction: column;
}

.metric-item .val {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.metric-item .lbl {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.e-recent-activity {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.activity-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--color-text);
}

.activity-item i {
    color: var(--color-primary-light);
}

/* ----------------------------------
   RIGHT INTERFACE (FORM)
   ---------------------------------- */
.e-interface {
    width: 60%;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
}

.e-form-container {
    width: 100%;
    max-width: 700px;
}

/* Progress Header */
.e-progress-header {
    margin-bottom: 50px;
}

.step-indicators {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    position: relative;
}

.step-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text-muted);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.step-dot.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 0 20px rgba(138, 66, 255, 0.4);
}

.step-dot.completed {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #000;
}

.step-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    margin: 0 10px;
    position: relative;
}

.step-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--color-primary);
    transition: width 0.4s ease;
}

.step-dot.active + .step-line::after {
    width: 50%; /* Partial fill for active step */
}

.step-dot.completed + .step-line::after {
    width: 100%;
}

.step-label {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-heading {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 40px;
    color: #fff;
}

/* Selection Grid (Step 1) */
.selection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.selection-card {
    position: relative;
    cursor: pointer;
}

.selection-card input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.card-inner {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.selection-card:hover .card-inner {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.selection-card input:checked + .card-inner {
    background: rgba(138, 66, 255, 0.1);
    border-color: var(--color-primary);
    box-shadow: 0 0 30px rgba(138, 66, 255, 0.15);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}

.selection-card input:checked + .card-inner .icon-box {
    color: var(--color-primary-light);
}

.text-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.text-box .title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

.text-box .desc {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.check-circle {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.selection-card input:checked + .card-inner .check-circle {
    opacity: 1;
    transform: scale(1);
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* Inputs & Dynamic Fields */
.input-group {
    margin-bottom: 30px;
}

.input-label {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 10px;
    font-weight: 500;
}

.text-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    color: #fff;
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
}

.text-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(138, 66, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(138, 66, 255, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Range Slider */
.range-slider-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.range-slider {
    flex: 1;
    appearance: none;
    -webkit-appearance: none;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--color-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(138, 66, 255, 0.5);
    transition: transform 0.2s ease;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.range-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary-light);
    min-width: 100px;
    text-align: right;
}

/* Footer Actions */
.step-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
}

.step-footer.right {
    justify-content: flex-end;
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text-muted);
    padding: 14px 30px;
    border-radius: 100px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: #fff;
    color: #fff;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    color: #fff;
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 30px rgba(138, 66, 255, 0.3);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(138, 66, 255, 0.5);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
/* Responsive */
@media (max-width: 1024px) {
    .e-split-layout {
        flex-direction: column;
    }

    .e-sidebar {
        width: 100%;
        padding-top: 120px !important;
        /* margin-top: 120px; */
        padding: 40px 24px;
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .e-sidebar__bg .glow-orb {
        width: 400px;
        height: 400px;
    }

    .e-interface {
        width: 100%;
        padding: 40px 24px;
        min-height: auto;
    }

    .e-sidebar__header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .e-sidebar {
        padding: 30px 20px;
    }

    .e-interface {
        padding: 30px 20px;
    }

    .selection-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .step-heading {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .e-sidebar__header h1 {
        font-size: 2rem;
    }

    .e-status-badge {
        margin-bottom: 20px;
    }

    .e-sidebar__header p {
        margin-bottom: 30px;
    }

    .e-trust-metrics {
        margin-bottom: 30px;
        gap: 20px;
        justify-content: space-between;
    }

    .step-footer {
        flex-direction: column-reverse;
        gap: 15px;
        margin-top: 30px;
    }

    .step-footer button {
        width: 100%;
    }

    .step-footer.right {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .step-indicators {
        margin-bottom: 30px;
    }
    
    .step-dot {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .e-sidebar__header p {
        font-size: 1rem;
    }
    
    .protocol-id-box {
        padding: 15px 20px;
        width: 100%;
    }
    
    .protocol-id-box strong {
        font-size: 1.2rem;
    }
}

/* ----------------------------------
   DYNAMIC FIELDS STYLES (Added for JS)
   ---------------------------------- */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-pill {
    position: relative;
    cursor: pointer;
}

.checkbox-pill input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-pill span {
    display: block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    transition: all 0.3s ease;
    user-select: none;
}

.checkbox-pill input:checked + span {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(138, 66, 255, 0.3);
}

.checkbox-pill:hover span {
    background: rgba(255, 255, 255, 0.1);
}

/* ----------------------------------
   HEADER OVERRIDES
   ---------------------------------- */
.c-nav__link.help-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 10px 24px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.c-nav__link.help-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* ----------------------------------
   FORM ELEMENT REFINEMENTS
   ---------------------------------- */
select.text-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(154, 148, 194, 0.5)'%3E%3Cpath d='M12 16L6 10H18L12 16Z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 20px;
    cursor: pointer;
    padding-right: 50px;
}

select.text-input option {
    background-color: #02040a;
    color: #fff;
    padding: 10px;
}

textarea.text-input {
    resize: vertical;
    min-height: 120px;
}

/* ----------------------------------
   SUCCESS STATE STYLES
   ---------------------------------- */
.e-success-view {
    text-align: center;
    padding: 40px 0;
}

.success-icon {
    font-size: 4rem;
    color: var(--color-accent);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(34, 197, 94, 0.3));
}

.e-success-view h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.e-success-view p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.protocol-id-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px 40px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.protocol-id-box span {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    margin-bottom: 5px;
}

.protocol-id-box strong {
    font-family: monospace;
    font-size: 1.5rem;
    color: var(--color-primary-light);
    letter-spacing: 2px;
}

.e-success-view .btn-primary {
    display: inline-flex;
    text-decoration: none;
}

.e-header-override {
    top: 0;
    padding: 0;
}

.e-nav-override {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(5, 8, 22, 0.9);
    margin: 0;
    padding: 0 40px;
    backdrop-filter: blur(15px);
}

/* ----------------------------------
   MINIMAL FOOTER
   ---------------------------------- */
.e-simple-footer {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--color-bg);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.e-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.e-footer-links {
    display: flex;
    gap: 20px;
}

.e-footer-links a {
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}

.e-footer-links a:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .e-nav-override {
        padding: 0 20px;
    }
    
    .e-footer-content {
        flex-direction: column;
        text-align: center;
    }
}