/* SG Email Manager — Front-end Form */

.sgem-form-wrap {
    width: 100%;
    box-sizing: border-box;
}

.sgem-form {
    width: 100%;
}

.sgem-inline-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.sgem-inline-row input {
    flex: 1 1 160px;
    min-width: 120px;
    padding: 0.5rem 0.7rem;
    border: 1.5px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    box-sizing: border-box;
    height: 38px;
    transition: border-color 0.2s;
}

.sgem-inline-row input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.15);
}

.sgem-submit-btn {
    flex: 0 0 auto;
    padding: 0 1.25rem;
    height: 38px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.sgem-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.sgem-message {
    margin-top: 6px;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.88rem;
    display: none;
}

.sgem-message.sgem-success {
    background: #edfaed;
    border: 1px solid #46b450;
    color: #2a6a2e;
    display: block;
}

.sgem-message.sgem-error {
    background: #fdf1f1;
    border: 1px solid #dc3232;
    color: #8b0000;
    display: block;
}

/* Narrow screens: stack vertically */
@media (max-width: 600px) {
    .sgem-inline-row input,
    .sgem-submit-btn {
        flex: 1 1 100%;
        width: 100%;
    }
}
