.hpl-form-wrap {
    max-width: 780px;
    margin: 0 auto;
}

.hpl-form-wrap h2 {
    margin-bottom: 24px;
}

.hpl-section {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.hpl-section legend {
    font-weight: 700;
    font-size: 15px;
    padding: 0 8px;
}

.hpl-optional {
    font-weight: 400;
    color: #888;
    font-size: 13px;
}

.hpl-field {
    margin-bottom: 16px;
}

.hpl-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
}

.hpl-field input[type="text"],
.hpl-field input[type="number"],
.hpl-field input[type="tel"],
.hpl-field textarea,
.hpl-field select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.hpl-field textarea { resize: vertical; }

.hpl-field small {
    display: block;
    margin-top: 4px;
    color: #777;
    font-size: 12px;
}

.hpl-field-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hpl-field-row .hpl-field {
    flex: 1;
    min-width: 140px;
}

.hpl-field--check {
    display: flex;
    align-items: flex-end;
    padding-bottom: 4px;
}

.hpl-field--check label {
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.req { color: #c00; }

/* Image upload */
.hpl-image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.hpl-image-thumb {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
}

.hpl-image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hpl-remove-image {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hpl-drop-zone {
    border: 2px dashed #ccc;
    border-radius: 6px;
    padding: 28px 16px;
    text-align: center;
    color: #777;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.hpl-drop-zone:hover,
.hpl-drop-active {
    border-color: #0073aa;
    background: #f0f7ff;
}

.hpl-drop-zone svg { margin-bottom: 8px; color: #aaa; }
.hpl-drop-zone p   { margin: 0 0 4px; font-size: 14px; }
.hpl-drop-zone small { font-size: 12px; }

.hpl-file-label {
    color: #0073aa;
    text-decoration: underline;
    cursor: pointer;
}

.hpl-upload-progress {
    margin-top: 8px;
    font-size: 13px;
    color: #555;
    min-height: 20px;
}
.hpl-upload-progress--error { color: #c0392b; }

/* Messages */
.hpl-message {
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
    display: none;
}
.hpl-message:not(:empty) { display: block; }
.hpl-message--success { background: #edfbe8; border: 1px solid #1a7f37; color: #1a7f37; }
.hpl-message--error   { background: #fdf0ee; border: 1px solid #c0392b; color: #c0392b; }

/* Buttons */
.hpl-btn {
    display: inline-block;
    padding: 11px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.hpl-btn-primary   { background: #0073aa; color: #fff; }
.hpl-btn-primary:hover { background: #005f8a; }
.hpl-btn-danger    { background: #c0392b; color: #fff; }
.hpl-btn-danger:hover  { background: #a93226; }

.hpl-form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-top: 8px;
}

.hpl-notice {
    padding: 14px;
    background: #f8f8f8;
    border-left: 4px solid #0073aa;
    border-radius: 2px;
}
