/* zlec-usluge.css */

/* --- Variables & Globals --- */
:root {
    --bg-dark: #0A0A0B;
    --bg-card: rgba(20, 20, 22, 0.6);
    --border-light: rgba(172, 195, 182, 0.2);
    --accent: #ACC3B6;
    --accent-glow: rgba(172, 195, 182, 0.4);
    --text-main: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.6);
    --transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.zlec-usluge-page {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

/* --- Particle Canvas Background --- */
#zlec-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

/* --- Layout --- */
.zlec-main {
    min-height: calc(100vh - 80px);
    /* header offset */
    padding: 120px 20px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

.zlec-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Text */
.zlec-header {
    margin-bottom: 3rem;
}

.zlec-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    font-weight: 600;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- Step Sections --- */
.step-section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.step-section.active {
    display: block;
    animation: fadeInUp 0.6s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Dashboard Cards (Step 1) --- */
.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.service-card-group {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card.card-trigger {
    padding-bottom: 2rem;
    flex-grow: 1;
    margin-bottom: 1rem;
    justify-content: flex-start;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-glow);
}

.service-card:hover::before {
    opacity: 0.15;
}

.card-trigger {
    padding: 2.5rem 2rem 1.5rem;
    cursor: pointer;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    position: relative;
    z-index: 2;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.service-card:hover .card-trigger {
    border-bottom-color: var(--border-light);
}

.card-cta-text {
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    transition: var(--transition);
    padding-top: 1.5rem;
}

.card-trigger:hover .card-cta-text {
    opacity: 1;
    transform: translateX(5px);
}

.card-icon {
    width: 80px;
    height: 80px;
    color: var(--accent);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.card-trigger:hover .card-icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.card-external-link {
    padding: 1.2rem;
    color: var(--text-main);
    text-align: center;
    font-size: 0.95rem;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    transition: var(--transition);
    cursor: pointer;
    z-index: 5;
    background: rgba(0, 0, 0, 0.2);
    /* Wyrównanie i odpowiednie pozycjonowanie w boxie flex */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border-top: 1px solid var(--border-light);
}

.card-external-link:hover {
    color: var(--accent);
    background: rgba(172, 195, 182, 0.15);
}

/* Nowe przyciski w kartach (w obwódce) */
.card-footer-action {
    width: 100%;
    border-top: 1px solid var(--border-light);
    background: rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 5;
    transition: var(--transition);
}

.service-card:hover .card-footer-action {
    background: rgba(172, 195, 182, 0.05);
    border-top-color: var(--accent);
}

.btn-card-footer {
    display: block;
    width: 100%;
    padding: 1.2rem;
    color: var(--text-main);
    text-align: center;
    font-size: 0.9rem;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    transition: var(--transition);
}

.btn-card-footer:hover {
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent-glow);
    background: rgba(172, 195, 182, 0.1);
}

.card-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--accent);
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 0;
}

/* --- SVG Dashboard Animations --- */
.svg-icon-anim {
    width: 100%;
    height: 100%;
}

.lupa-anim {
    animation: panLupa 4s ease-in-out infinite alternate;
}

@keyframes panLupa {
    0% {
        transform: translate(-5px, -5px);
    }

    100% {
        transform: translate(15px, 20px);
    }
}

.bin-text {
    animation: binaryCycle 0.5s steps(2, end) infinite;
}

@keyframes binaryCycle {
    0% {
        content: "01";
    }

    50% {
        content: "10";
    }

    100% {
        content: "01";
    }
}

.laptop-lid-anim {
    animation: laptopOpen 3s ease-in-out infinite alternate;
}

@keyframes laptopOpen {
    0% {
        transform: scaleY(0.1) translateY(20px);
        opacity: 0.5;
    }

    50%,
    100% {
        transform: scaleY(1) translateY(0);
        opacity: 1;
    }
}

.screwdriver-anim {
    animation: screwRotate 3s linear infinite;
}

@keyframes screwRotate {
    0% {
        transform: rotate(0deg) translate(20px) rotate(0deg);
    }

    100% {
        transform: rotate(360deg) translate(20px) rotate(-360deg);
    }
}

.part-cpu {
    animation: flyInCpu 3s ease-in-out infinite alternate;
}

.part-ram {
    animation: flyInRam 3s ease-in-out infinite alternate;
}

.part-gpu {
    animation: flyInGpu 3s ease-in-out infinite alternate;
}

@keyframes flyInCpu {
    0% {
        transform: translate(0, -20px);
        opacity: 0;
    }

    100% {
        transform: translate(0, 0);
        opacity: 1;
    }
}

@keyframes flyInRam {
    0% {
        transform: translate(-20px, 0);
        opacity: 0;
    }

    100% {
        transform: translate(0, 0);
        opacity: 1;
    }
}

@keyframes flyInGpu {
    0% {
        transform: translate(20px, 0);
        opacity: 0;
    }

    100% {
        transform: translate(0, 0);
        opacity: 1;
    }
}


/* --- Forms Area (Step 2) --- */
.btn-back-large {
    background: none;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-main);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    transition: all 0.3s;
    background: rgba(0, 0, 0, 0.3);
}

.btn-back-large svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s;
    stroke: var(--accent);
}

.btn-back-large:hover {
    border-color: var(--accent);
    background: rgba(172, 195, 182, 0.1);
    box-shadow: 0 0 15px rgba(172, 195, 182, 0.2);
}

.btn-back-large:hover svg {
    transform: translateX(-5px);
}

.form-wrapper {
    display: flex;
    gap: 3rem;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.form-animation-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border-light);
    padding-right: 2rem;
    min-height: 300px;
}

.form-content-side {
    flex: 2;
    padding-left: 1rem;
}

@media (max-width: 991px) {
    .form-wrapper {
        flex-direction: column;
        padding: 2rem;
    }

    .desktop-only {
        display: none !important;
    }

    .form-content-side {
        padding-left: 0;
    }
}

.dynamic-form-header {
    margin-bottom: 2rem;
}

.dynamic-form-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

/* Animations Content Container - Form View */
.tech-anim {
    width: 100%;
    max-width: 300px;
    height: auto;
}

.lupa-search-anim {
    animation: searchBig 6s ease-in-out infinite alternate;
}

@keyframes searchBig {
    0% {
        transform: translate(-20px, -20px);
    }

    100% {
        transform: translate(30px, 40px);
    }
}

.bin-text-large {
    animation: dataStream 0.2s linear infinite;
}

@keyframes dataStream {
    0% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.8;
    }
}

.laptop-lid-big-anim {
    animation: laptopLidBig 4s ease-in-out infinite alternate;
}

@keyframes laptopLidBig {
    0% {
        transform: scaleY(0.1) translateY(70px);
        opacity: 0.3;
    }

    50%,
    100% {
        transform: scaleY(1) translateY(0);
        opacity: 1;
    }
}

.screwdriver-orbit-anim {
    animation: orbitScrew 4s linear infinite;
}

@keyframes orbitScrew {
    0% {
        transform: rotate(0deg) translate(50px) rotate(0deg);
    }

    100% {
        transform: rotate(360deg) translate(50px) rotate(-360deg);
    }
}

.assemble-cpu {
    animation: assemCpu 3s cubic-bezier(0.25, 0.8, 0.25, 1) infinite alternate;
}

.assemble-ram {
    animation: assemRam 3s cubic-bezier(0.25, 0.8, 0.25, 1) infinite alternate;
    animation-delay: 0.2s;
}

.assemble-gpu {
    animation: assemGpu 3s cubic-bezier(0.25, 0.8, 0.25, 1) infinite alternate;
    animation-delay: 0.4s;
}

@keyframes assemCpu {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes assemRam {
    0% {
        transform: translateX(-50px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes assemGpu {
    0% {
        transform: translateX(50px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* --- Nowe/Stare SVG Keyframes dla interfejsu Forms --- */

/* Stare Odzysk/Laptop w form side */
.spin-slow {
    animation: spin-slow 4s linear infinite;
    transform-origin: 50% 50%;
}

@keyframes spin-slow {
    to {
        transform: rotate(360deg);
    }
}

.hdd-head {
    animation: head-move 3s ease-in-out infinite alternate;
    transform-origin: 160px 160px;
}

@keyframes head-move {

    0%,
    20% {
        transform: rotate(0deg);
    }

    80%,
    100% {
        transform: rotate(-25deg);
    }
}

.float-1 {
    animation: float-1 4s ease-in-out infinite;
}

.float-2 {
    animation: float-1 4s ease-in-out infinite;
    animation-delay: -2s;
}

@keyframes float-1 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.screen-glitch {
    animation: glitch 2s steps(1) infinite;
}

@keyframes glitch {

    0%,
    100% {
        opacity: 1;
        transform: translate(0);
    }

    10% {
        opacity: 0.8;
        transform: translate(-2px, 1px);
    }

    20% {
        opacity: 1;
        transform: translate(2px, -1px);
    }

    30% {
        opacity: 0.9;
        transform: translate(-1px, 2px);
    }

    40%,
    90% {
        opacity: 1;
        transform: translate(0);
    }
}

/* Nowa 3D Assembly dla Montażu PC (zamieniona na animację Simple z centralną obudową) */
.assemble-simple-cpu {
    animation: dropInCpu 3s ease-in-out infinite;
    transform-origin: center;
}

@keyframes dropInCpu {
    0% {
        transform: translateY(-30px);
        opacity: 0;
    }

    20%,
    80% {
        transform: translateY(80px);
        opacity: 1;
    }

    100% {
        transform: translateY(80px);
        opacity: 0;
    }
}

.assemble-simple-ram {
    animation: dropInRam 3s ease-in-out infinite;
    animation-delay: 0.5s;
    transform-origin: center;
}

@keyframes dropInRam {
    0% {
        transform: translateX(-30px);
        opacity: 0;
    }

    20%,
    80% {
        transform: translateX(80px);
        opacity: 1;
    }

    100% {
        transform: translateX(80px);
        opacity: 0;
    }
}

.assemble-simple-gpu {
    animation: dropInGpu 3s ease-in-out infinite;
    animation-delay: 1s;
    transform-origin: center;
}

@keyframes dropInGpu {
    0% {
        transform: translateX(30px);
        opacity: 0;
    }

    20%,
    80% {
        transform: translateX(-80px);
        opacity: 1;
    }

    100% {
        transform: translateX(-80px);
        opacity: 0;
    }
}

/* --- Form Elements --- */
.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-row .form-group {
    flex: 1;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-group label span {
    color: var(--accent);
}

.tech-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 0.8rem 1rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.tech-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 10px rgba(172, 195, 182, 0.2);
}

textarea.tech-input {
    resize: vertical;
    min-height: 100px;
}

select.tech-input {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ACC3B6' stroke-width='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 1rem center;
    background-size: 1em;
}

select.tech-input option {
    background: #111;
    color: #fff;
}

.input-helper {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.form-divider-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
    margin: 2.5rem 0 2rem;
}

.form-section-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Checkboxes */
.checkbox-group-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
    .checkbox-group-grid {
        grid-template-columns: 1fr;
    }
}

.tech-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    user-select: none;
}

.tech-checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    top: 2px;
    width: 18px;
    height: 18px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
    margin-right: 1.2rem;
}

.tech-checkbox-label input:checked~.checkmark {
    background-color: rgba(172, 195, 182, 0.2);
    border-color: var(--accent);
}

.checkmark-red {
    border-color: rgba(255, 107, 107, 0.5);
}

.tech-checkbox-label input:checked~.checkmark-red {
    background-color: rgba(255, 107, 107, 0.2);
    border-color: #ff6b6b;
}

.tech-checkbox-label input:checked~.checkmark-red:after {
    border-color: #ff6b6b;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--accent);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.tech-checkbox-label input:checked~.checkmark:after {
    display: block;
}

/* Submit Button */
.form-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tech-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tech-submit-btn:hover {
    background: rgba(172, 195, 182, 0.1);
    box-shadow: 0 0 15px rgba(172, 195, 182, 0.3);
}

/* Loader */
.btn-loader {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-loader .dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
    animation: blink 1.4s infinite both;
}

.btn-loader .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.btn-loader .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0% {
        opacity: 0.2;
        transform: scale(0.8);
    }

    20% {
        opacity: 1;
        transform: scale(1.2);
    }

    100% {
        opacity: 0.2;
        transform: scale(0.8);
    }
}

.form-msg {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.error-msg {
    background: rgba(255, 50, 50, 0.1);
    border: 1px solid rgba(255, 50, 50, 0.3);
    color: #ff6b6b;
}

/* --- Success Step (Step 3) --- */
.success-animation {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
}

.success-circle {
    animation: circleDraw 1s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-check {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: checkDraw 0.6s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes circleDraw {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes checkDraw {
    100% {
        stroke-dashoffset: 0;
    }
}

.success-h2 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.success-subtitle {
    margin-bottom: 2rem;
}

/* Sub-anim utils */
.pulse-point {
    animation: pulseAlpha 2s ease-in-out infinite;
}

@keyframes pulseAlpha {
    0% {
        opacity: 0.2;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }

    100% {
        opacity: 0.2;
        transform: scale(0.8);
    }
}

/* Logic classes */
.hidden-logic {
    display: none;
    animation: logicFadeIn 0.4s ease forwards;
}

.hidden-logic.show {
    display: block;
}

@keyframes logicFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typewriter */
.typewriter-text::after {
    content: '|';
    animation: blinkCursor 1s infinite;
    opacity: 1;
}

@keyframes blinkCursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hidden {
    display: none !important;
}

.fade-in-delay {
    opacity: 0;
    animation: fadeIn 1s forwards 0.5s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}