/**
 * HelpWire Links — front-end styles
 *
 * Aligned with adm2i.fr brand: dark background (#0C0C0C) + accent orange (#FFC247).
 * All rules are scoped under .helpwire-form so the plugin never leaks into the theme.
 * Override colors by re-declaring the --hw-* variables in your child theme's CSS.
 */

.helpwire-form {
    --hw-bg: #0C0C0C;
    --hw-bg-soft: rgba(255, 255, 255, 0.04);
    --hw-border: rgba(255, 194, 71, 0.4);
    --hw-accent: #FFC247;
    --hw-accent-hover: #E9AD33;
    --hw-text: #FFFFFF;
    --hw-text-muted: rgba(255, 255, 255, 0.7);
    --hw-error: #FF6B6B;
    --hw-radius: 4px;
    --hw-font: Arial, sans-serif;

    background: var(--hw-bg);
    color: var(--hw-text);
    font-family: var(--hw-font);
    padding: 24px;
    border-radius: var(--hw-radius);
    max-width: 560px;
    box-sizing: border-box;
    line-height: 1.5;
}

.helpwire-form * {
    box-sizing: border-box;
}

.helpwire-form__form {
    margin: 0;
}

.helpwire-form__label {
    display: block;
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--hw-text);
}

.helpwire-form__row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.helpwire-form__input {
    flex: 1 1 200px;
    background: var(--hw-bg-soft);
    color: var(--hw-text);
    border: 1px solid var(--hw-border);
    border-radius: var(--hw-radius);
    padding: 12px 14px;
    font-size: 20px;
    font-family: var(--hw-font);
    letter-spacing: 6px;
    text-align: center;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    min-width: 0;
}

.helpwire-form__input:focus {
    outline: none;
    border-color: var(--hw-accent);
    box-shadow: 0 0 0 3px rgba(255, 194, 71, 0.25);
}

.helpwire-form__input::placeholder {
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 6px;
}

.helpwire-form__button {
    background: var(--hw-accent);
    color: #0C0C0C;
    border: none;
    border-radius: var(--hw-radius);
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--hw-font);
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.05s ease;
    white-space: nowrap;
}

.helpwire-form__button:hover,
.helpwire-form__button:focus {
    background: var(--hw-accent-hover);
    outline: none;
}

.helpwire-form__button:active {
    transform: translateY(1px);
}

.helpwire-form__button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.helpwire-form__message {
    margin: 12px 0 0;
    font-size: 14px;
    color: var(--hw-error);
}

.helpwire-form__message.is-success {
    color: var(--hw-text-muted);
}

.helpwire-form__result {
    margin-top: 20px;
    padding: 16px;
    background: rgba(255, 194, 71, 0.08);
    border: 1px solid rgba(255, 194, 71, 0.3);
    border-radius: var(--hw-radius);
}

.helpwire-form__result-label {
    margin: 0 0 10px;
    font-size: 12px;
    color: var(--hw-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.helpwire-form__result-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.helpwire-form__link {
    flex: 1 1 260px;
    color: var(--hw-accent);
    word-break: break-all;
    text-decoration: underline;
    font-size: 14px;
}

.helpwire-form__link:hover,
.helpwire-form__link:focus {
    color: var(--hw-accent-hover);
}

.helpwire-form__button--copy {
    padding: 8px 14px;
    font-size: 13px;
}

@media (max-width: 480px) {
    .helpwire-form {
        padding: 18px;
    }

    .helpwire-form__input,
    .helpwire-form__button {
        flex: 1 1 100%;
    }
}
