/* Quotes_New: tarjeta con pasos */
.qn-card {
    width: 680px;
    max-width: calc(100% - 32px);
    margin: 40px auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(31, 41, 51, .06), 0 12px 32px rgba(31, 41, 51, .10);
    overflow: hidden;
    color: #1f2933;
}

.qn-card-header {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 32px 40px 24px 40px;
    border-bottom: 1px solid #e6e9ee;
}

.qn-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #fbf1c4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qn-card-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.qn-card-subtitle {
    margin: 4px 0 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: #4b5967;
}

.qn-form {
    padding: 32px 40px 8px 40px;
    counter-reset: qnstep;
}

/* Cada campo es un paso */
.qn-form .qn-step {
    position: relative;
    padding: 0 0 28px 52px;
    counter-increment: qnstep;
}

.qn-form .qn-step::before {
    content: counter(qnstep);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    box-sizing: border-box;
    border-radius: 50%;
    border: 2px solid #dde1e7;
    background: #fff;
    color: #5f6b7a;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.qn-form .qn-step::after {
    content: "";
    position: absolute;
    left: 15px;
    top: 40px;
    bottom: 8px;
    width: 2px;
    background: #e0e4ea;
}

.qn-form .qn-step.qn-last {
    padding-bottom: 32px;
}

.qn-form .qn-step.qn-last::after {
    display: none;
}

.qn-form .qn-step.qn-active::before {
    background: #ecc946;
    border-color: #ecc946;
    color: #1f2933;
    box-shadow: 0 0 0 5px #fbf1c4;
}

.qn-form .qn-step.qn-done::before {
    content: "";
    background: #ecc946 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231f2933' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center no-repeat;
    border-color: #ecc946;
}

.qn-form .qn-step.qn-done::after {
    background: #ecc946;
}

/* Etiquetas */
.qn-form .qn-step .dx-field-item-label {
    padding-bottom: 8px;
}

.qn-form .qn-step .dx-field-item-label-text {
    font-size: 14px;
    font-weight: 600;
    color: #2b3640;
}

.qn-label-optional {
    float: right;
    font-weight: 400;
    font-size: 13px;
    color: #5f6b7a;
}

/* Selectores */
.qn-form .qn-step .dx-texteditor {
    border-radius: 8px;
    border-color: #c5ccd6;
    background: #fff;
}

.qn-form .qn-step .dx-texteditor-input {
    height: 46px;
    min-height: 46px;
    padding: 0 16px;
    font-size: 15px;
}

.qn-form .qn-step .dx-dropdowneditor-button {
    width: 44px;
    padding: 0;
    border: 0;
    border-radius: 0 7px 7px 0;
}

.qn-form .qn-step .dx-dropdowneditor-button .dx-button-content {
    border-radius: 0 7px 7px 0;
}

/* El sombreado del hover (se aplica sobre el icono) debe cubrir todo el botón hasta el borde derecho */
.qn-form .qn-step .dx-dropdowneditor-button .dx-dropdowneditor-icon {
    width: 100%;
    height: 100%;
    border-radius: 0 7px 7px 0;
}

.qn-form .qn-step .dx-texteditor.dx-state-focused {
    border-color: #c9a227;
    box-shadow: 0 0 0 3px #f3dd85;
}

.qn-form .qn-step .dx-texteditor.dx-state-disabled {
    background: #f5f6f8;
    border-color: #dde1e7;
    opacity: 1;
}

.qn-form .qn-step .dx-state-disabled .dx-texteditor-input,
.qn-form .qn-step .dx-state-disabled .dx-placeholder::before {
    color: #6b7785;
}

/* Pie */
.qn-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: #f7f8fa;
    border-top: 1px solid #e6e9ee;
}

.qn-card-footer .dx-button {
    border-radius: 8px;
}

.qn-card-footer .dx-button-mode-text .dx-button-text {
    font-weight: 600;
    color: #4b5967;
}

.qn-card-footer .qn-create.dx-button {
    min-height: 48px;
    background-color: #ecc946;
    border-color: #ecc946;
}

.qn-card-footer .qn-create .dx-button-content {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 46px;
    padding: 0 24px;
}

.qn-card-footer .qn-create .dx-button-text {
    padding: 0;
    line-height: 1;
}

.qn-card-footer .qn-create .dx-icon {
    order: 2;
}

.qn-card-footer .qn-create .dx-button-text {
    font-size: 15px;
    font-weight: 700;
    color: #1f2933;
    text-transform: none;
}

.qn-card-footer .qn-create .dx-icon {
    color: #1f2933;
    margin: 0 0 0 10px;
}

@media (max-width: 600px) {
    .qn-card-header,
    .qn-form,
    .qn-card-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
}
