.pyia-wrap,
.pyia-box {
    max-width: 920px;
    margin: 28px auto;
    color: #18364a;
}

.pyia-wrap {
    background: #fff;
}

.pyia-intro,
.pyia-box {
    border: 1px solid #dbe7e5;
    border-radius: 14px;
    padding: 24px;
    background: #fff;
}

.pyia-intro h1,
.pyia-box h2,
.pyia-step h2 {
    margin-top: 0;
    color: #173d46;
}

.pyia-code {
    background: #eef8f6;
    padding: 10px 12px;
    border-radius: 8px;
}

.pyia-progress {
    margin: 24px 0;
}

.pyia-progress-text {
    font-size: 14px;
    margin-bottom: 8px;
}

.pyia-progress-bar {
    height: 7px;
    background: #e7efee;
    border-radius: 999px;
    overflow: hidden;
}

.pyia-progress-bar span {
    display: block;
    width: 0;
    height: 100%;
    background: #2f8a80;
    transition: width .2s ease;
}

.pyia-step {
    border: 1px solid #e0e9e7;
    border-radius: 14px;
    padding: 24px;
    background: #fff;
}

.pyia-subtitle {
    margin-top: -8px;
    color: #667982;
}

.pyia-html {
    background: #f5faf9;
    border-left: 4px solid #2f8a80;
    padding: 14px 16px;
    margin: 18px 0 24px;
}

.pyia-field {
    margin: 0 0 22px;
}

.pyia-label {
    display: block;
    font-weight: 700;
    margin-bottom: 7px;
}

.pyia-required {
    color: #b42318;
}

.pyia-small,
.pyia-description {
    font-size: 13px;
    color: #667982;
    font-weight: 400;
}

.pyia-description {
    margin: -2px 0 7px;
}

.pyia-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #bacbc8;
    border-radius: 7px;
    padding: 11px 12px;
    font-size: 16px;
    background: #fff;
    color: #18364a;
}

.pyia-textarea {
    min-height: 120px;
    resize: vertical;
}

.pyia-options {
    display: grid;
    gap: 9px;
}

.pyia-option {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    font-weight: 400;
}

.pyia-option input {
    margin-top: 4px;
}

.pyia-has-error .pyia-input,
.pyia-has-error .pyia-options {
    outline: 2px solid rgba(180,35,24,.15);
    outline-offset: 4px;
}

.pyia-error,
.pyia-form-error {
    color: #8a1c13;
    background: #fff0ee;
    border-left: 4px solid #b42318;
    padding: 10px 12px;
    margin-top: 8px;
}

.pyia-success {
    background: #effaf7;
    border-left: 5px solid #2f8a80;
}

.pyia-actions {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 28px;
}

.pyia-btn {
    border: 0;
    border-radius: 8px;
    padding: 12px 18px;
    cursor: pointer;
    background: #287f77;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
}

.pyia-secondary {
    background: #eef6f5;
    color: #1d5a56;
}

.pyia-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.pyia-generator .pyia-generated {
    margin: 18px 0;
    padding: 16px;
    background: #eef8f6;
    border-radius: 10px;
}

.pyia-generated input {
    width: 100%;
    margin: 10px 0;
    box-sizing: border-box;
    padding: 10px;
}

@media (max-width: 700px) {
    .pyia-step,
    .pyia-intro,
    .pyia-box {
        padding: 18px;
    }

    .pyia-actions {
        flex-direction: column;
    }

    .pyia-btn {
        width: 100%;
    }
}


.pyia-received-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.pyia-received-card {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 15px;
    border: 1px solid #dbe7e5;
    border-radius: 10px;
    background: #fff;
}

.pyia-received-detail {
    margin-top: 20px;
}

.pyia-received-row {
    padding: 13px 0;
    border-bottom: 1px solid #e6eeee;
}

.pyia-received-row strong {
    display: block;
    margin-bottom: 5px;
}

.pyia-received-actions {
    margin: 18px 0;
}

@media (max-width: 700px) {
    .pyia-received-card {
        align-items: stretch;
        flex-direction: column;
    }
}

@media print {
    header, footer, nav, .site-header, .site-footer, .pyia-received-actions,
    .pyia-box > p:first-child {
        display: none !important;
    }

    .pyia-box {
        border: 0 !important;
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}


.pyia-danger {
    background: #9f2d20;
}

.pyia-danger:hover,
.pyia-danger:focus {
    background: #7f2419;
}
