.ce-form {
    max-width: 760px;
    margin: 24px auto;
    padding: 24px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
    box-sizing: border-box;
}

.ce-form h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.ce-form fieldset {
    margin: 0 0 20px;
    padding: 18px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.ce-form legend {
    padding: 0 8px;
    font-weight: 700;
}

.ce-form label {
    display: block;
    margin-bottom: 14px;
    font-weight: 600;
}

.ce-form input,
.ce-form select,
.ce-form textarea {
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
    font: inherit;
}

.ce-form input[readonly] {
    background: #f6f7f7;
    color: #555;
    cursor: not-allowed;
}

.ce-form input:focus,
.ce-form select:focus,
.ce-form textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.ce-form button {
    width: 100%;
    padding: 14px;
    border: 0;
    border-radius: 8px;
    background: #2271b1;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.ce-form button:hover {
    background: #135e96;
}

.ce-form button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.ce-signature-box {
    min-height: 120px;
    margin-top: 6px;
    padding: 12px;
    border: 1px dashed #aaa;
    border-radius: 8px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    text-align: center;
}

.ce-location-status {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    background: #f6f7f7;
    color: #555;
}

.ce-location-status.loading {
    background: #eef4ff;
    color: #1d4f91;
}

.ce-location-status.success {
    background: #effbef;
    color: #1f6b1f;
}

.ce-location-status.warning {
    background: #fff8df;
    color: #755900;
}

.ce-form-notice {
    display: none;
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 600;
}

.ce-form-notice ul {
    margin: 8px 0 0 18px;
    padding: 0;
    font-weight: 400;
}

.ce-form-notice.success {
    display: block;
    border: 1px solid #8bd18b;
    background: #effbef;
    color: #1f6b1f;
}

.ce-form-notice.error {
    display: block;
    border: 1px solid #e49b9b;
    background: #fff1f1;
    color: #8a1f1f;
}

.ce-form-notice.warning {
    display: block;
    border: 1px solid #e6c878;
    background: #fff8df;
    color: #755900;
}

.ce-field-error {
    border-color: #d63638 !important;
    box-shadow: 0 0 0 1px #d63638 !important;
}

.ce-field-error-message {
    display: block;
    margin-top: 6px;
    color: #d63638;
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 600px) {
    .ce-form {
        margin: 12px auto;
        padding: 16px;
        border-radius: 10px;
    }

    .ce-form fieldset {
        padding: 14px;
    }

    .ce-form input,
    .ce-form select,
    .ce-form textarea,
    .ce-form button {
        font-size: 16px;
    }
}
