.hwpr-wrap {
    --hwpr-bg: #f4f7ef;
    --hwpr-card: #ffffff;
    --hwpr-text: #1f2933;
    --hwpr-muted: #52606d;
    --hwpr-accent: #95c11f;
    --hwpr-accent-dark: #6e9017;
    --hwpr-border: #d9e2cf;
    --hwpr-error: #b42318;
    --hwpr-error-bg: #fef3f2;
    --hwpr-success: #0f766e;
    --hwpr-success-bg: #ecfdf3;
    max-width: 980px;
    margin: 0 auto;
    padding: 6px;
    border-radius: 20px;
    background: radial-gradient(circle at top right, #edf7cf 0%, var(--hwpr-bg) 58%);
    color: var(--hwpr-text);
    box-shadow: 0 24px 50px rgba(31, 41, 51, 0.12);
}

.hwpr-card {
    background: var(--hwpr-card);
    border: 1px solid var(--hwpr-border);
    border-radius: 18px;
    padding: 12px 14px;
}

.hwpr-header h2 {
    margin: 0 0 4px;
    font-size: 26px;
    line-height: 1.1;
}

.hwpr-header p {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--hwpr-muted);
}

.hwpr-form {
    display: grid;
    gap: 6px !important;
}

.hwpr-grid {
    gap: 6px !important;
}

.hwpr-row {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
}

.hwpr-row > label {
    flex: 0 0 calc(50% - 3px) !important;
    width: calc(50% - 3px) !important;
    max-width: calc(50% - 3px) !important;
    min-width: 0;
}

.hwpr-form label {
    display: grid;
    gap: 3px !important;
    font-weight: 600;
    margin: 0 !important;
}

.hwpr-form span {
    display: block;
    margin: 0 !important;
}

.hwpr-label-with-info {
    display: inline-block;
}

.hwpr-form small {
    color: var(--hwpr-muted);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 400;
    margin: 0 !important;
}

.hwpr-inline-note a {
    color: var(--hwpr-accent-dark);
    font-weight: 700;
    text-decoration: none;
}

.hwpr-inline-note a:hover,
.hwpr-inline-note a:focus {
    text-decoration: underline;
}

.hwpr-info-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 5px;
    border: 1px solid var(--hwpr-border);
    border-radius: 999px;
    background: #fff;
    color: var(--hwpr-accent-dark);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    vertical-align: middle;
    padding: 0;
    position: relative;
    top: -1px;
}

.hwpr-inline-note {
    display: none;
    margin-top: 2px !important;
    font-size: 12px;
    line-height: 1.25;
    color: var(--hwpr-muted);
}

.hwpr-inline-note.is-visible {
    display: block;
}

.hwpr-form small a {
    color: var(--hwpr-accent-dark);
    font-weight: 700;
    text-decoration: none;
}

.hwpr-form small a:hover,
.hwpr-form small a:focus {
    text-decoration: underline;
}

.hwpr-form input:not([type="checkbox"]),
.hwpr-form select,
.hwpr-form textarea {
    width: 100%;
    border: 1px solid var(--hwpr-border);
    border-radius: 14px !important;
    -webkit-border-radius: 14px !important;
    -moz-border-radius: 14px !important;
    padding: 8px 12px !important;
    font: inherit;
    line-height: 1.3;
    color: var(--hwpr-text);
    background: #fff;
    box-sizing: border-box;
    margin: 0 !important;
    box-shadow: none !important;
}

.hwpr-form input:not([type="checkbox"]),
.hwpr-form select {
    min-height: 40px !important;
    height: 40px !important;
}

.hwpr-form textarea {
    min-height: 64px !important;
    resize: vertical;
}

.hwpr-form input:not([type="checkbox"]):focus,
.hwpr-form select:focus,
.hwpr-form textarea:focus {
    outline: 2px solid rgba(149, 193, 31, 0.2);
    border-color: var(--hwpr-accent);
}

.hwpr-privacy {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-weight: 400;
    line-height: 1.2;
    justify-self: start;
}

.hwpr-privacy input {
    appearance: checkbox !important;
    -webkit-appearance: checkbox !important;
    width: 16px !important;
    min-width: 16px;
    height: 16px !important;
    margin: 0 !important;
    padding: 0;
    flex: 0 0 16px;
    align-self: center !important;
    vertical-align: middle;
    position: relative;
    top: 0;
    left: 0;
}

.hwpr-form label.hwpr-privacy,
.hwpr-form label.hwpr-privacy * {
    max-width: none !important;
}

.hwpr-privacy span {
    display: inline !important;
    line-height: 1.2;
    margin: 0 !important;
    vertical-align: middle;
}

.hwpr-privacy a {
    color: var(--hwpr-accent-dark);
    font-weight: 600;
}

.hwpr-submit {
    border: 0;
    border-radius: 14px;
    padding: 10px 18px;
    justify-self: stretch;
    width: 100%;
    font: inherit;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--hwpr-accent), var(--hwpr-accent-dark));
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.hwpr-submit:hover,
.hwpr-submit:focus {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(110, 144, 23, 0.24);
}

.hwpr-notice {
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 14px;
}

.hwpr-notice ul {
    margin: 10px 0 0 18px;
}

.hwpr-notice-success {
    background: var(--hwpr-success-bg);
    color: var(--hwpr-success);
}

.hwpr-notice-error {
    background: var(--hwpr-error-bg);
    color: var(--hwpr-error);
}

@media (max-width: 760px) {
    .hwpr-wrap {
        padding: 4px;
        border-radius: 14px;
    }

    .hwpr-card {
        padding: 10px;
        border-radius: 14px;
    }

    .hwpr-header h2 {
        font-size: 22px;
    }

    .hwpr-header p {
        margin: 0 0 6px;
        font-size: 13px;
    }

    .hwpr-form {
        gap: 4px !important;
    }

    .hwpr-form label {
        gap: 2px !important;
    }

    .hwpr-form span {
        font-size: 12px;
    }

    .hwpr-label-with-info {
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

    .hwpr-info-toggle {
        width: 17px;
        height: 17px;
        font-size: 11px;
        margin-left: 0;
        top: 0;
        background: #f7f9f2;
        box-shadow: 0 1px 2px rgba(31, 41, 51, 0.08);
    }

    .hwpr-form input:not([type="checkbox"]),
    .hwpr-form select {
        min-height: 36px !important;
        height: 36px !important;
        padding: 6px 10px !important;
        border-radius: 12px !important;
        -webkit-border-radius: 12px !important;
        -moz-border-radius: 12px !important;
    }

    .hwpr-form textarea {
        min-height: 56px !important;
        padding: 6px 10px !important;
        border-radius: 12px !important;
        -webkit-border-radius: 12px !important;
        -moz-border-radius: 12px !important;
    }

    .hwpr-inline-note {
        font-size: 11px;
        line-height: 1.15;
    }

    .hwpr-privacy {
        gap: 8px !important;
    }

    .hwpr-submit {
        padding: 9px 16px;
    }
}
