.apf-form-wrapper {
    max-width: 480px;
    margin: 0 auto;
    padding: 24px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    font-family: inherit;
}

.apf-form-title {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.4em;
}

.apf-form-wrapper h4 {
    margin-top: 24px;
    margin-bottom: 8px;
    border-top: 1px solid #eee;
    padding-top: 16px;
    font-size: 1.05em;
}

.apf-field {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
}

.apf-field label {
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 0.92em;
}

.apf-field input,
.apf-field select {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    width: 100%;
    box-sizing: border-box;
}

.apf-row {
    display: flex;
    gap: 12px;
}

.apf-half {
    flex: 1;
}

.apf-total-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.95em;
    border-bottom: 1px dashed #e0e0e0;
}

.apf-grand-total-row {
    font-weight: 700;
    font-size: 1.15em;
    border-bottom: 2px solid #ccc;
    margin-top: 4px;
    margin-bottom: 18px;
    padding-bottom: 12px;
}

.apf-submit-btn {
    width: 100%;
    padding: 12px 16px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.apf-submit-btn:hover {
    background: #135e96;
}

.apf-submit-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

.apf-loading {
    text-align: center;
    margin-top: 12px;
    font-style: italic;
    color: #555;
}

.apf-message {
    padding: 10px 12px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 0.95em;
}

.apf-message.apf-success {
    background: #e6f7e9;
    border: 1px solid #79c98e;
    color: #1d6b34;
}

.apf-message.apf-error {
    background: #fdecea;
    border: 1px solid #f5a3a3;
    color: #8a1f1f;
}
