/* --- Stepper Layout --- */
.wecanit-form-container {
    width: 100%;
}

.wecanit-stepper-container {
    max-width: 800px;
    margin: 0 auto 50px auto;
    font-family: 'Inter', -apple-system, sans-serif;
    color: #fff;
    text-align: center;
    background: linear-gradient(135deg, #2b65e3 0%, #153d9e 100%);
    /* PARA PONER LA IMAGEN EXACTA DE LAS GOTAS, DESCOMENTA LAS 3 LÍNEAS DE ABAJO Y PON TU URL: */
    /* background-image: url('URL_DE_TU_IMAGEN.jpg'); */
    /* background-size: cover; */
    /* background-position: center; */
    padding: 45px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(21, 61, 158, 0.25);
    position: relative;
    overflow: hidden;
}

.wecanit-stepper-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.15), inset 0 -2px 0 rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.wecanit-stepper-container::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background:
        radial-gradient(circle at 4% 20%, rgba(16, 62, 174, 0.14) 0, rgba(16, 62, 174, 0.14) 13px, transparent 14px),
        radial-gradient(circle at 14% 26%, rgba(16, 62, 174, 0.12) 0, rgba(16, 62, 174, 0.12) 34px, transparent 35px),
        radial-gradient(circle at 35% 52%, rgba(16, 62, 174, 0.12) 0, rgba(16, 62, 174, 0.12) 18px, transparent 19px),
        radial-gradient(circle at 60% 36%, rgba(16, 62, 174, 0.11) 0, rgba(16, 62, 174, 0.11) 40px, transparent 41px),
        radial-gradient(circle at 81% 16%, rgba(16, 62, 174, 0.11) 0, rgba(16, 62, 174, 0.11) 18px, transparent 19px),
        radial-gradient(circle at 92% 28%, rgba(16, 62, 174, 0.1) 0, rgba(16, 62, 174, 0.1) 15px, transparent 16px);
    pointer-events: none;
}

.stepper-main-title {
    font-size: 30px;
    font-weight: 400;
    margin-bottom: 45px;
    color: #fff;
    position: relative;
    z-index: 1;
}

.stepper-wrapper {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    z-index: 1;
}

.stepper-step {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stepper-step::before {
    content: '';
    position: absolute;
    top: 17px;
    left: calc(-50% + 17px);
    width: calc(100% - 34px);
    height: 2px;
    background: rgba(214, 235, 255, 0.55);
    z-index: 1;
}

.stepper-step::after {
    content: '';
    position: absolute;
    top: 17px;
    left: calc(-50% + 17px);
    width: 0%;
    height: 2px;
    background: #b9f1ff;
    z-index: 2;
    transition: width 0.4s ease;
}

.stepper-step:first-child::before,
.stepper-step:first-child::after {
    display: none;
}

.stepper-step.active::after,
.stepper-step.completed::after {
    width: calc(100% - 34px);
}

.step-circle {
    position: relative;
    z-index: 3;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    color: #b9f1ff;
    background: rgba(44, 90, 198, 0.4);
    border: 2px solid #9eeeff;
    box-shadow: none;
    margin-bottom: 14px;
    transition: all 0.3s ease;
}

.step-check {
    display: none;
    width: 20px;
    height: 20px;
}

/* Completed State */
.stepper-step.completed .step-circle {
    background: #8df0ff;
    border-color: #8df0ff;
    color: #1a3885;
}

.stepper-step.completed .step-num {
    display: none;
}

.stepper-step.completed .step-check {
    display: block;
}

.stepper-step.completed .step-label {
    color: #fff;
    font-weight: 400;
}

/* Active State */
.stepper-step.active .step-circle {
    background: #8df0ff;
    border-color: #8df0ff;
    color: #1a3885;
}

.stepper-step.active .step-label {
    color: #fff;
    font-weight: 400;
}

.step-label {
    font-size: 12px;
    color: rgba(231, 241, 255, 0.88);
    text-align: center;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-weight: 400;
}

/* WecanIt Form Styles */
.wecanit-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, sans-serif;
    color: #4a5568;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
}

.wecanit-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.wecanit-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    color: #1C50C8;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.step-subtitle {
    color: #3b71db;
    font-size: 18px;
    margin-bottom: 35px;
    font-weight: 400;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
    margin-bottom: 30px;
}

.form-group {
    position: relative;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #2b3b4a;
    line-height: 24px;
}

.form-group label span {
    color: #1a6be5;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1.5px solid #2f66e8;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    background: #fff;
    color: #6b7a90;
    appearance: none;
    font-size: 14px;
    box-shadow: 0 0 0 1px rgba(47, 102, 232, 0.08);
}

.form-group input[type="text"]:hover,
.form-group input[type="email"]:hover,
.form-group input[type="tel"]:hover,
.form-group select:hover,
.form-group textarea:hover,
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #1C50C8;
}

.form-group textarea {
    height: auto;
    padding: 16px;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239fb2eb' 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 16px center;
    background-size: 18px;
}

.form-group select:disabled {
    border-color: #cbd5e0;
    box-shadow: none;
    color: #a0aec0;
    cursor: not-allowed;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e0' 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");
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #1C50C8;
    box-shadow: 0 0 0 3px rgba(28, 80, 200, 0.12);
}

.form-group small {
    display: block;
    color: #9cb1c5;
    font-size: 11px;
    margin-top: 8px;
}

/* Quantity Toggle & Counter */
.quantity-header {
    display: block;
    position: relative;
    height: 24px;
    margin-bottom: 10px;
}

.quantity-header label {
    margin: 0;
    line-height: 24px;
}

.unit-toggle {
    display: inline-flex;
    background: #eef2fa;
    border-radius: 20px;
    overflow: hidden;
    padding: 3px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.unit-toggle span {
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 16px;
    transition: all 0.2s;
    color: #6b7a90;
}

.unit-toggle span.active {
    background: #1C50C8;
    color: #fff;
}

.quantity-input-wrapper {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.quantity-input-wrapper .qty-btn {
    background: #fff;
    border: 1.5px solid #2f66e8;
    border-radius: 8px;
    width: 52px;
    height: 52px;
    color: #2f66e8;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    box-shadow: 0 0 0 1px rgba(47, 102, 232, 0.08);
}

.quantity-input-wrapper .qty-btn span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 500;
    color: currentColor;
    transform: translateY(-1px);
}

.quantity-input-wrapper .qty-btn:hover {
    background: #f0f4ff;
    border-color: #1C50C8;
    color: #1C50C8;
}

.quantity-input-wrapper input[type="number"] {
    flex: 1;
    height: 52px;
    border: 1.5px solid #2f66e8;
    border-radius: 8px;
    text-align: center;
    font-size: 15px;
    color: #6b7a90;
    appearance: textfield;
    -moz-appearance: textfield;
    outline: none;
    min-width: 0;
    box-shadow: 0 0 0 1px rgba(47, 102, 232, 0.08);
}

.quantity-input-wrapper input[type="number"]:hover,
.quantity-input-wrapper input[type="number"]:focus {
    border-color: #1C50C8;
}

.quantity-input-wrapper input::-webkit-outer-spin-button,
.quantity-input-wrapper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Step Actions */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
}

.btn {
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: #1C50C8;
    color: #fff;
    padding: 14px 28px;
}

.btn-primary:hover {
    background: #153c99;
}

.btn-text {
    background: transparent;
    color: #6a95f8;
    padding: 14px 0;
}

.btn-text:hover:not(:disabled) {
    color: #1C50C8;
    background: transparent;
}

.btn-prev {
    background: transparent;
    border-radius: 8px;
}

.btn-prev:hover:not(:disabled) {
    background: rgba(28, 80, 200, 0.06);
    color: #1C50C8;
}

.btn-text:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Dropzone */
.wf-dropzone {
    border: 2px dashed #99aaff;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    position: relative;
    cursor: pointer;
    background: #fafbff;
    transition: all 0.3s;
}

.wf-dropzone:hover,
.wf-dropzone.dragover {
    background: #f0f4ff;
    border-color: #1C50C8;
}

.wf-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.dropzone-content {
    pointer-events: none;
}

.dropzone-content .upload-icon {
    font-size: 24px;
    color: #1C50C8;
    display: block;
    margin-bottom: 10px;
}

.dropzone-content p {
    margin: 0 0 5px;
    color: #4a5568;
}

/* Review Step Layer */
.review-top-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 10px;
}

.review-section {
    margin-bottom: 35px;
}

.review-section h3,
.review-preview h3 {
    color: #1C50C8;
    font-size: 15px;
    margin-bottom: 18px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.review-row,
.review-inline {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 15px;
}

.review-inline {
    justify-content: flex-start;
    gap: 8px;
}

.review-row .lbl,
.review-inline .lbl {
    color: #6b7a90;
    font-weight: 400;
}

.review-row .val,
.review-inline .val {
    color: #2b3b4a;
    font-weight: 500;
}

.review-row.mb-sm {
    margin-bottom: 8px;
}

.quote-divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 20px 0;
}

.estimate-total {
    font-size: 18px;
    font-weight: 500;
    margin-top: 5px;
    align-items: center;
}

.estimate-total .highlighted {
    color: #1C50C8;
    font-size: 24px;
    font-weight: 700;
}

.discount-box {
    background: #f4f7fe;
    border: 1px solid #a3bbf3;
    border-radius: 6px;
    padding: 16px;
    margin: 20px 0;
    font-size: 13px;
    color: #1a56db;
}

.discount-box strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 700;
    font-size: 14px;
}

.included-features {
    margin-top: 25px;
}

.included-features .lbl-title {
    color: #1C50C8;
    font-weight: 700;
    font-size: 14px;
    display: block;
    margin-bottom: 12px;
}

.included-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
}

.included-features ul li {
    display: flex;
    align-items: center;
    color: #4a5568;
    font-size: 13px;
    gap: 8px;
}

.included-features ul li svg {
    color: #1C50C8;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Preview Area */
.review-preview {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.can-preview-wrapper {
    background: #1C50C8;
    border-radius: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-height: 480px;
    overflow: hidden;
}

.cds-canvas {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cds-can-image {
    max-height: 80%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    z-index: 2;
}

.cds-logo-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140px;
    height: 140px;
    transform: translate(-50%, -50%);
    cursor: move;
    z-index: 5;
    border: 2px dashed rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    touch-action: none;
}

.cds-logo-layer.ui-draggable-dragging,
.cds-logo-layer.ui-resizable-resizing {
    border-color: #fff;
}

.cds-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

.ui-resizable-handle {
    background: #fff;
    border: 1px solid #1C50C8;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: absolute;
}

.ui-resizable-se {
    right: -6px;
    bottom: -6px;
    cursor: se-resize;
}

/* Logo Controls Panel */
.preview-controls-panel {
    background: #fbfdff;
    border-radius: 12px;
    padding: 24px;
    margin-top: 20px;
    width: 100%;
}

.wf-more-toggle {
    background: transparent;
    border: none;
    appearance: none;
    -webkit-appearance: none;
    padding: 0;
    margin: -4px 0 20px;
    color: #1C50C8;
    -webkit-text-fill-color: #1C50C8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.wf-more-toggle:hover,
.wf-more-toggle:focus,
.wf-more-toggle:active,
.wf-more-toggle:focus-visible {
    outline: none;
    box-shadow: none;
    background: transparent;
    color: #1C50C8;
    -webkit-text-fill-color: #1C50C8;
}

.wf-advanced-controls {
    border-top: 1px solid #e3ebfb;
    padding-top: 20px;
}

.wf-slider-group {
    margin-bottom: 24px;
}

.wf-slider-group label {
    display: block;
    font-size: 15px;
    color: #2b3b4a;
    margin-bottom: 12px;
    font-weight: 500;
}

.wf-slider-group input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    outline: none;
    margin: 0;
}

.wf-slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #1C50C8;
    cursor: pointer;
    margin-top: -6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.wf-slider-group input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: #ffffff;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.wf-slider-group input[type="range"]:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(28, 80, 200, 0.2);
}

.wf-preview-buttons {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.wf-preview-buttons .btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
}

.btn-reset {
    background: #1C50C8;
    color: #fff;
}

.btn-reset:hover {
    background: #153c99;
}

.btn-remove {
    background: #25324d;
    color: #fff;
}

.btn-remove:hover {
    background: #1b2438;
}

.wf-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(18, 33, 71, 0.32);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wf-modal {
    width: 100%;
    max-width: 360px;
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 24px 22px;
    box-shadow: 0 24px 60px rgba(22, 45, 107, 0.18);
    text-align: left;
}

.wf-modal h3 {
    margin: 0 0 8px;
    color: #1C50C8;
    font-size: 24px;
    font-weight: 700;
}

.wf-modal p {
    margin: 0;
    color: #5d6d8d;
    font-size: 14px;
    line-height: 1.5;
}

.wf-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.wf-modal-cancel {
    padding: 10px 0;
}

/* Validation Tooltip (Bootstrap Style) */
.wf-tooltip {
    position: absolute;
    bottom: -35px;
    left: 0;
    max-width: 250px;
    background: #ff9800;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    transform: translateY(5px);
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-group .wf-tooltip {
    bottom: auto;
    top: 100%;
    margin-top: 8px;
}

.quantity-group .wf-tooltip::before {
    top: -5px;
    left: 15px;
    border-width: 0 6px 6px 6px;
    border-color: transparent transparent #ff9800 transparent;
}

.wf-tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 15px;
    border-width: 0 6px 6px 6px;
    border-style: solid;
    border-color: transparent transparent #ff9800 transparent;
}

.form-group.has-error .wf-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #ff9800 !important;
}

.wf-tooltip .icon {
    font-weight: bold;
    background: #fff;
    color: #ff9800;
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 10px;
}

@media (max-width: 768px) {
    .stepper-main-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .step-circle {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .stepper-step::before,
    .stepper-step::after {
        top: 18px;
        left: calc(-50% + 18px);
        width: calc(100% - 36px);
    }

    .stepper-step.active::after,
    .stepper-step.completed::after {
        width: calc(100% - 36px);
    }

    .step-label {
        font-size: 11px;
        white-space: normal;
        line-height: 1.2;
    }

    .wecanit-stepper-container {
        margin-bottom: 30px;
    }

    .form-grid,
    .review-top-area {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    /* Step 3 Preview Sensual Mobile Adaptations */
    .can-preview-wrapper {
        min-height: 400px;
        padding: 15px;
        border-radius: 16px;
    }

    .cds-can-image {
        max-height: 85%;
        max-width: 90%;
    }

    .preview-controls-panel {
        padding: 20px 16px;
        margin-top: 15px;
    }

    .wf-slider-group {
        margin-bottom: 20px;
    }

    .wf-preview-buttons {
        flex-wrap: wrap;
        gap: 10px;
    }

    .wf-preview-buttons .btn {
        flex: 1 1 100%;
        justify-content: center;
        text-align: center;
        padding: 14px;
    }
}
