:root {
    --cx-orange: #ff742c;
    --cx-yellow: #ffc904;
    --cx-black: #000000;
    --cx-white: #ffffff;
    --cx-gray-light: #f5f7fa;
    --cx-gray-border: #e2e8f0;
    --cx-text: #334155;
    --cx-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --cx-radius: 12px;
}

.cx-form-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 700px;
    margin: 40px auto;
    background: var(--cx-white);
    border-radius: var(--cx-radius);
    box-shadow: var(--cx-shadow);
    overflow: hidden;
    color: var(--cx-text);
    border: 1px solid var(--cx-gray-border);
}

.cx-form-header {
    background: var(--cx-black);
    color: var(--cx-white);
    padding: 30px;
    text-align: center;
}

.cx-form-title {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--cx-yellow);
}

.cx-form-description {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
}

.cx-progress-container {
    height: 6px;
    background: var(--cx-gray-border);
    width: 100%;
}

.cx-progress-bar {
    height: 100%;
    background: var(--cx-orange);
    width: 0%;
    transition: width 0.4s ease;
}

.cx-form-body {
    padding: 30px;
    min-height: 250px;
}

.cx-step h3 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 20px;
    color: var(--cx-black);
    font-weight: 600;
}

.cx-form-group {
    margin-bottom: 20px;
}

.cx-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.cx-req {
    color: var(--cx-orange);
}

.cx-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--cx-gray-border);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.cx-input:focus {
    outline: none;
    border-color: var(--cx-orange);
    box-shadow: 0 0 0 3px rgba(255, 116, 44, 0.2);
}

.cx-error-border {
    border-color: #ef4444 !important;
}

.cx-error {
    color: #ef4444;
    font-size: 13px;
    margin-top: 5px;
}

.cx-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cx-option-label {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid var(--cx-gray-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--cx-white);
    font-weight: 500;
}

.cx-option-label:hover {
    border-color: var(--cx-yellow);
    background: #fffdf5;
}

.cx-option-label.selected {
    border-color: var(--cx-orange);
    background: #fff8f5;
}

.cx-option-label input {
    margin-right: 15px;
    accent-color: var(--cx-orange);
    transform: scale(1.2);
}

.cx-other-wrap {
    padding-left: 35px;
    margin-top: -5px;
}

.cx-form-footer {
    padding: 20px 30px;
    background: var(--cx-gray-light);
    border-top: 1px solid var(--cx-gray-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cx-btn {
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.cx-btn-primary {
    background: var(--cx-orange);
    color: var(--cx-white);
    margin-left: auto;
}

.cx-btn-primary:hover {
    background: #e6621f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 116, 44, 0.3);
}

.cx-btn-secondary {
    background: transparent;
    color: var(--cx-text);
    border: 1px solid var(--cx-gray-border);
}

.cx-btn-secondary:hover {
    background: #e2e8f0;
}

.cx-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cx-summary {
    background: var(--cx-gray-light);
    padding: 20px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.6;
}

.cx-summary hr {
    border: 0;
    border-top: 1px solid var(--cx-gray-border);
    margin: 15px 0;
}

.cx-summary strong {
    color: var(--cx-black);
}

.cx-form-success {
    padding: 50px 30px;
    text-align: center;
}

.cx-form-success h3 {
    color: var(--cx-orange);
    font-size: 28px;
    margin-bottom: 15px;
}

.cx-form-branding {
    padding: 10px 30px 15px;
    text-align: right;
    background: var(--cx-gray-light);
    font-size: 11px;
    color: #888;
}

.cx-form-branding a {
    color: #666;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.cx-form-branding a:hover {
    color: var(--cx-orange);
    text-decoration: underline;
}

.cx-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 15px;
    user-select: none;
    color: var(--cx-text);
}

.cx-checkbox-label input[type="checkbox"] {
    accent-color: var(--cx-orange);
    transform: scale(1.15);
    cursor: pointer;
}

@media (max-width: 600px) {
    .cx-form-wrapper {
        margin: 15px;
        border-radius: 8px;
    }
    .cx-form-header {
        padding: 20px;
    }
    .cx-form-body {
        padding: 20px;
    }
    .cx-form-footer {
        padding: 15px 20px;
    }
    .cx-form-branding {
        padding: 8px 20px 12px;
        text-align: center;
    }
}

/* ==================================================
   MODAL AVISO CXBOT (V3.1)
   ================================================== */
.cx-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    padding: 15px;
    box-sizing: border-box;
    backdrop-filter: blur(2px);
    animation: cxFadeIn 0.2s ease-out;
}

.cx-modal-card {
    background: var(--cx-white);
    border-radius: var(--cx-radius);
    max-width: 480px;
    width: 100%;
    padding: 28px 30px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 1px solid var(--cx-gray-border);
    animation: cxScaleUp 0.2s ease-out;
    box-sizing: border-box;
    font-family: inherit;
}

.cx-modal-card h4 {
    margin: 0 0 12px 0;
    font-size: 19px;
    color: var(--cx-black);
    font-weight: 700;
}

.cx-modal-card p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--cx-text);
    margin: 0 0 22px 0;
}

.cx-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cx-modal-btn-analyze {
    background: #17a2b8;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.cx-modal-btn-analyze:hover {
    background: #138496;
    transform: translateY(-1px);
}

.cx-modal-btn-skip {
    background: transparent;
    color: #64748b;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    border: 1px solid var(--cx-gray-border);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.cx-modal-btn-skip:hover {
    background: #f1f5f9;
    color: #334155;
}

.cx-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px 8px;
}

.cx-modal-close:hover {
    color: var(--cx-black);
}

.cx-modal-status {
    margin-top: 14px;
    font-size: 13px;
    color: #17a2b8;
    text-align: center;
    font-weight: 500;
}

@keyframes cxFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes cxScaleUp {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
