/* feedback-generator.css */
.dunod-feedback-generator {
    max-width: 620px;
    margin: 0 auto;
    padding: 24px;
}

.dunod-feedback-generator h2 {
    margin-top: 0;
}

.dunod-feedback-generator__form {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
}

.dunod-fg__group {
    margin-bottom: 18px;
}

.dunod-fg__group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

.dunod-fg__group select,
.dunod-fg__group input[type="text"],
.dunod-fg__group input[type="email"],
.dunod-fg__group input[type="tel"],
.dunod-fg__ac-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
    transition: border-color .15s;
}

.dunod-fg__group select:focus,
.dunod-fg__group input:focus,
.dunod-fg__ac-input:focus {
    border-color: #FED000;
    outline: none;
    box-shadow: 0 0 0 3px rgba(254,208,0,.25);
}

/* Autocompletado */
.dunod-fg__autocomplete {
    position: relative;
}

.dunod-fg__ac-input--selected {
    border-color: #FED000 !important;
    background-color: #fffbe6;
}

.dunod-fg__ac-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 9999;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,.10);
    max-height: 240px;
    overflow-y: auto;
}

.dunod-fg__ac-item {
    padding: 9px 14px;
    font-size: 14px;
    cursor: pointer;
    color: #1e293b;
    transition: background .1s;
}

.dunod-fg__ac-item:hover,
.dunod-fg__ac-item--active {
    background: #fffbe6;
    color: #1a1a1a;
}

.dunod-fg__ac-item--empty {
    color: #94a3b8;
    cursor: default;
    font-style: italic;
}

/* Spinner */
.dunod-fg__ac-spinner {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #cbd5e1;
    border-top-color: #FED000;
    border-radius: 50%;
    animation: dunodFGSpin .6s linear infinite;
}

@keyframes dunodFGSpin {
    to { transform: translateY(-50%) rotate(360deg); }
}

.dunod-fg__fieldset {
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 18px;
}

.dunod-fg__fieldset legend {
    font-weight: 600;
    font-size: 13px;
    color: #64748b;
    padding: 0 6px;
}

.dunod-fg__required { color: #e53e3e; margin-left: 3px; }

.dunod-fg__messages {
    padding: 10px 14px;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 14px;
}

.dunod-fg__messages--error {
    background: #fff5f5;
    border: 1px solid #fc8181;
    color: #c53030;
}

.dunod-fg__messages--success {
    background: #f0fff4;
    border: 1px solid #68d391;
    color: #276749;
}

.dunod-fg__submit {
    background: #FED000;
    color: #1a1a1a;
    border: none;
    border-radius: 6px;
    padding: 11px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}

.dunod-fg__submit:hover { background: #e6bc00; }
.dunod-fg__submit:disabled { background: #fff3a3; cursor: not-allowed; }

/* Resultado */
.dunod-fg__result {
    background: #fffbe6;
    border: 1px solid #FED000;
    border-radius: 8px;
    padding: 20px 24px;
    margin-top: 20px;
}

.dunod-fg__result h3 { margin-top: 0; color: #7440D6; }

.dunod-fg__link-box {
    margin-bottom: 12px;
}

.dunod-fg__link-box input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    background: #fff;
    color: #475569;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dunod-fg__copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #7440D6;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, transform .1s;
    line-height: 1;
}

.dunod-fg__copy-btn:hover  { background: #5c30b5; }
.dunod-fg__copy-btn:active { transform: scale(.97); }
.dunod-fg__copy-btn--copied {
    background: #16a34a;
}

.dunod-fg__result-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.dunod-fg__result-footer {
    border-top: 1px solid rgba(254,208,0,.4);
    padding-top: 12px;
}

.dunod-fg__whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #25D366;
    color: #fff;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s;
    line-height: 1;
}

.dunod-fg__whatsapp-btn:hover {
    background: #1ebe5d;
    color: #fff;
    text-decoration: none;
}

.dunod-fg__whatsapp-btn svg {
    flex-shrink: 0;
}

.dunod-fg__new-link {
    background: none;
    border: none;
    color: #7440D6;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}
