.pocf7-form {

    --pocf7-accent: #a77b51;
    --pocf7-accent-hover: #916a45;
    --pocf7-accent-text: #ffffff;
    --pocf7-text: #1e293b;
    --pocf7-muted: #64748b;
    --pocf7-border: #e2e8f0;
    --pocf7-field-bg: #ffffff;
    --pocf7-placeholder: #94a3b8;
    --pocf7-danger: #dc2626;

    --pocf7-focus-border: var(--pocf7-accent);
    --pocf7-focus-ring: rgba(167, 123, 81, .16);
    --pocf7-focus-width: 3px;

    --pocf7-radius: 8px;
    --pocf7-field-pad-y: 12px;
    --pocf7-field-pad-x: 14px;
    --pocf7-field-font: 15px;
    --pocf7-label-size: 13px;
    --pocf7-label-weight: 600;
    --pocf7-gap: 16px;
    --pocf7-cell-gap: 16px;
    --pocf7-btn-pad-y: 13px;
    --pocf7-btn-pad-x: 28px;
    --pocf7-btn-font: 15px;

    --pocf7-icon-size: 20px;
    --pocf7-icon-gap: 12px;
}

.pocf7-form *,
.pocf7-form *::before,
.pocf7-form *::after {
    box-sizing: border-box;
}

.pocf7-form .pocf7-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
}

.pocf7-form .pocf7-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--pocf7-gap);
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.pocf7-form .pocf7-row + .pocf7-row {
    margin-top: var(--pocf7-gap);
}

.pocf7-form .pocf7-col {
    display: flex;
    flex-direction: column;
    gap: var(--pocf7-cell-gap);
    min-width: 0;
    flex: 1 1 0%;
}

.pocf7-form .pocf7-field {
    margin: 0;
    min-width: 0;
}

.pocf7-form .pocf7-field > label,
.pocf7-form .pocf7-field .pocf7-label {
    display: block;
    margin: 0 0 6px;
    font-size: var(--pocf7-label-size);
    font-weight: var(--pocf7-label-weight);
    line-height: 1.4;
    color: var(--pocf7-text);
}

.pocf7-form .pocf7-req {
    color: var(--pocf7-danger);
    margin-left: 2px;
}

.pocf7-form .pocf7-field input[type="text"],
.pocf7-form .pocf7-field input[type="email"],
.pocf7-form .pocf7-field input[type="tel"],
.pocf7-form .pocf7-field input[type="number"],
.pocf7-form .pocf7-field input[type="date"],
.pocf7-form .pocf7-field input[type="url"],
.pocf7-form .pocf7-field input[type="password"],
.pocf7-form .pocf7-field input[type="file"],
.pocf7-form .pocf7-field select,
.pocf7-form .pocf7-field textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: var(--pocf7-field-pad-y) var(--pocf7-field-pad-x);
    font: inherit;
    font-size: var(--pocf7-field-font);
    color: var(--pocf7-text);
    background: var(--pocf7-field-bg);
    border: 1px solid var(--pocf7-border);
    border-radius: var(--pocf7-radius);
    transition: border-color .15s ease, box-shadow .15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.pocf7-form .pocf7-field input[type="file"] {
    padding-top: calc(var(--pocf7-field-pad-y) - 3px);
    padding-bottom: calc(var(--pocf7-field-pad-y) - 3px);
    cursor: pointer;
}

.pocf7-form .pocf7-field textarea {
    min-height: 120px;
    resize: vertical;
}

.pocf7-form .pocf7-field select {
    padding-right: 36px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--pocf7-field-pad-x) center;
}

.pocf7-form .pocf7-field input:focus,
.pocf7-form .pocf7-field select:focus,
.pocf7-form .pocf7-field textarea:focus {
    outline: none;
    border-color: var(--pocf7-focus-border);
    box-shadow: 0 0 0 var(--pocf7-focus-width) var(--pocf7-focus-ring);
}

.pocf7-form .pocf7-field input::placeholder,
.pocf7-form .pocf7-field textarea::placeholder {
    color: var(--pocf7-placeholder);
    opacity: 1;
}

.pocf7-form .pocf7-field.pocf7-align--center {
    text-align: center;
}

.pocf7-form .pocf7-field.pocf7-align--right {
    text-align: right;
}

.pocf7-form .pocf7-field.pocf7-align--center .wpcf7-list-item {
    text-align: center;
}

.pocf7-form .pocf7-field.pocf7-align--right .wpcf7-list-item {
    text-align: right;
}

.pocf7-form .pocf7-field.pocf7-label--inline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pocf7-form .pocf7-field.pocf7-label--inline > label,
.pocf7-form .pocf7-field.pocf7-label--inline > .pocf7-label {
    flex: 0 1 auto;
    max-width: 45%;
    margin: 0;
}

.pocf7-form .pocf7-field.pocf7-label--inline > .pocf7-control,
.pocf7-form .pocf7-field.pocf7-label--inline > .wpcf7-form-control-wrap,
.pocf7-form .pocf7-field.pocf7-label--inline > p {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

.pocf7-form .pocf7-field.pocf7-label--hidden > label,
.pocf7-form .pocf7-field.pocf7-label--hidden > .pocf7-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.pocf7-form .pocf7-field.pocf7-size--sm {
    --pocf7-field-pad-y: 8px;
    --pocf7-field-font: 13px;
    --pocf7-btn-pad-y: 9px;
    --pocf7-btn-pad-x: 20px;
    --pocf7-btn-font: 13px;
}

.pocf7-form .pocf7-field.pocf7-size--lg {
    --pocf7-field-pad-y: 15px;
    --pocf7-field-font: 17px;
    --pocf7-btn-pad-y: 16px;
    --pocf7-btn-pad-x: 34px;
    --pocf7-btn-font: 17px;
}

.pocf7-form .pocf7-field.pocf7-width--half {
    width: 50%;
}

.pocf7-form .pocf7-field.pocf7-width--third {
    width: 33.3333%;
}

.pocf7-form .pocf7-field.pocf7-width--full {
    width: 100%;
}

.pocf7-form .pocf7-field.pocf7-width--half.pocf7-align--center,
.pocf7-form .pocf7-field.pocf7-width--third.pocf7-align--center {
    margin-right: auto;
    margin-left: auto;
}

.pocf7-form .pocf7-field.pocf7-width--half.pocf7-align--right,
.pocf7-form .pocf7-field.pocf7-width--third.pocf7-align--right {
    margin-right: 0;
    margin-left: auto;
}

.pocf7-form .pocf7-field.pocf7-width--half .wpcf7-submit,
.pocf7-form .pocf7-field.pocf7-width--third .wpcf7-submit,
.pocf7-form .pocf7-field.pocf7-width--full .wpcf7-submit {
    width: 100%;
}

.pocf7-form .pocf7-field.pocf7-has-icon .pocf7-control {
    position: relative;
    display: block;
}

.pocf7-form .pocf7-field__icon {
    position: absolute;
    top: 50%;
    left: var(--pocf7-icon-gap);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    pointer-events: none;
}

.pocf7-form .pocf7-field__icon img {
    display: block;
    width: var(--pocf7-icon-size);
    height: auto;
    max-height: var(--pocf7-icon-size);
    object-fit: contain;
}

.pocf7-form .pocf7-field--textarea .pocf7-field__icon {
    top: calc(var(--pocf7-field-pad-y) + 2px);
    transform: none;
}

.pocf7-form .pocf7-field.pocf7-has-icon .pocf7-control input,
.pocf7-form .pocf7-field.pocf7-has-icon .pocf7-control select,
.pocf7-form .pocf7-field.pocf7-has-icon .pocf7-control textarea {
    padding-left: calc(var(--pocf7-icon-gap) * 2 + var(--pocf7-icon-size));
}

.pocf7-form .pocf7-field > p {
    margin: 0;
}

.pocf7-form .pocf7-field--radio .wpcf7-list-item,
.pocf7-form .pocf7-field--checkbox .wpcf7-list-item {
    display: block;
    margin: 0 0 8px;
}

.pocf7-form .pocf7-field--radio .wpcf7-list-item:last-child,
.pocf7-form .pocf7-field--checkbox .wpcf7-list-item:last-child {
    margin-bottom: 0;
}

.pocf7-form .pocf7-field--radio .wpcf7-list-item label,
.pocf7-form .pocf7-field--checkbox .wpcf7-list-item label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.pocf7-form .pocf7-field .wpcf7-list-item-label {
    display: inline;
    margin-left: 0;
    font-weight: 400;
    color: var(--pocf7-text);
}

.pocf7-form .pocf7-field--acceptance .wpcf7-list-item {
    display: block;
    margin: 0;
}

.pocf7-form .pocf7-field--acceptance .wpcf7-list-item label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.pocf7-form .pocf7-field--acceptance input[type="checkbox"] {
    margin-top: 3px;
    flex: 0 0 auto;
}

.pocf7-form .pocf7-field--acceptance .wpcf7-list-item-label {
    margin-left: 0;
    font-size: 14px;
    line-height: 1.5;
}

.pocf7-form .pocf7-field--content h2,
.pocf7-form .pocf7-field--content h3,
.pocf7-form .pocf7-field--content h4 {
    margin: 0 0 6px;
    line-height: 1.25;
}

.pocf7-form .pocf7-field--content p {
    margin: 0;
    color: var(--pocf7-muted);
}

.pocf7-form .pocf7-field--submit {
    margin-top: 24px;
}

.pocf7-form .pocf7-field--submit input[type="submit"],
.pocf7-form .pocf7-field--submit button[type="submit"],
.pocf7-form .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: var(--pocf7-btn-pad-y) var(--pocf7-btn-pad-x);
    font: inherit;
    font-size: var(--pocf7-btn-font);
    font-weight: 600;
    line-height: 1.2;
    color: var(--pocf7-accent-text);
    background: var(--pocf7-accent);
    border: 0;
    border-radius: var(--pocf7-radius);
    cursor: pointer;
    transition: background-color .15s ease, opacity .15s ease;
}

.pocf7-form .pocf7-field--submit input[type="submit"]:hover,
.pocf7-form .pocf7-field--submit button[type="submit"]:hover,
.pocf7-form .wpcf7-submit:hover {
    background: var(--pocf7-accent-hover);
}

.pocf7-form .pocf7-field.pocf7-width--full .wpcf7-submit {
    width: 100%;
}

.pocf7-form .wpcf7-submit:disabled {
    opacity: .6;
    cursor: progress;
}

.pocf7-form .pocf7-field--submit input[type="submit"]:focus-visible,
.pocf7-form .wpcf7-submit:focus-visible {
    outline: 2px solid var(--pocf7-accent);
    outline-offset: 2px;
}

.pocf7-form .wpcf7-not-valid-tip {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--pocf7-danger);
}

.pocf7-form .wpcf7-not-valid {
    border-color: var(--pocf7-danger) !important;
}

.pocf7-form .wpcf7-response-output {
    margin: 18px 0 0;
    padding: 12px 14px;
    font-size: 14px;
    border-radius: var(--pocf7-radius);
}

.pocf7-form form.submitting .wpcf7-response-output,
.pocf7-form.submitting .wpcf7-response-output {
    display: none;
}

.wpcf7 form.pocf7-form .wpcf7-response-output {
    margin: 12px 0 0;
    padding: 0;
    border: 0;
    background: none;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--pocf7-muted);
}

.wpcf7 form.pocf7-form.invalid .wpcf7-response-output,
.wpcf7 form.pocf7-form.unaccepted .wpcf7-response-output,
.wpcf7 form.pocf7-form.failed .wpcf7-response-output,
.wpcf7 form.pocf7-form.aborted .wpcf7-response-output,
.wpcf7 form.pocf7-form.spam .wpcf7-response-output {
    color: var(--pocf7-danger);
}

.wpcf7 form.pocf7-form.sent .wpcf7-response-output {
    color: var(--pocf7-text);
}

.wpcf7 form.pocf7-form.pocf7-has-thanks.sent .wpcf7-response-output {
    display: none;
}

.pocf7-form.pocf7-has-thanks {
    position: relative;
}

.pocf7-form .pocf7-field--thanks {
    margin: 0;
    padding: 0;
}

.pocf7-form .pocf7-thanks {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: var(--pocf7-field-bg);
    border-radius: var(--pocf7-radius);
}

.pocf7-form .pocf7-thanks.is-open {
    display: flex;
    animation: pocf7-thanks-in 0.25s ease-out;
}

.pocf7-form .pocf7-thanks__card {
    max-width: 420px;
    text-align: center;
    color: var(--pocf7-text);
    outline: none;
}

.pocf7-form .pocf7-thanks__image {
    display: block;
    max-width: 100%;
    max-height: 160px;
    height: auto;
    margin: 0 auto 16px;
    border-radius: var(--pocf7-radius);
}

.pocf7-form .pocf7-thanks__title {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.3;
    color: var(--pocf7-text);
}

.pocf7-form .pocf7-thanks__text {
    margin: 0;
    font-size: var(--pocf7-field-font);
    line-height: 1.5;
    color: var(--pocf7-muted);
}

.pocf7-form .pocf7-thanks__close {
    display: inline-block;
    margin-top: 20px;
    padding: var(--pocf7-btn-pad-y) var(--pocf7-btn-pad-x);
    border-radius: var(--pocf7-radius);
    background: var(--pocf7-accent);
    color: var(--pocf7-accent-text);
    font-size: var(--pocf7-field-font);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.pocf7-form .pocf7-thanks__close:hover,
.pocf7-form .pocf7-thanks__close:focus {
    background: var(--pocf7-accent-hover);
    color: var(--pocf7-accent-text);
}

@keyframes pocf7-thanks-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pocf7-form .pocf7-thanks.is-open {
        animation: none;
    }
}

.pocf7-form .wpcf7-spinner {
    margin: 0 12px 0 0;
}

@media (max-width: 640px) {
    .pocf7-form .pocf7-row {
        flex-direction: column;
        align-items: stretch;
    }

    .pocf7-form .pocf7-col {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
    }

    .pocf7-form .pocf7-field--submit input[type="submit"],
    .pocf7-form .wpcf7-submit {
        width: 100%;
    }

    .pocf7-form .pocf7-field.pocf7-width--half,
    .pocf7-form .pocf7-field.pocf7-width--third {
        width: 100%;
    }

    .pocf7-form .pocf7-field.pocf7-label--inline {
        display: block;
    }

    .pocf7-form .pocf7-field.pocf7-label--inline > label,
    .pocf7-form .pocf7-field.pocf7-label--inline > .pocf7-label {
        max-width: 100%;
        margin: 0 0 6px;
    }
}

/* Multiple / drag-and-drop upload */
.pocf7-up-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.pocf7-up-zone { padding: 22px 16px; border: 2px dashed var(--pocf7-border, #cbd5e1); border-radius: 10px; text-align: center; cursor: pointer; color: var(--pocf7-muted, #64748b); background: transparent; transition: border-color .15s, background-color .15s; }
.pocf7-up-zone:hover, .pocf7-up-zone:focus-visible, .pocf7-up-zone.is-over { border-color: var(--pocf7-accent, #a77b51); background: color-mix(in srgb, var(--pocf7-accent, #a77b51) 8%, transparent); outline: none; }
.pocf7-up-list { list-style: none; margin: 8px 0 0; padding: 0; }
.pocf7-up-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; margin: 0 0 4px; border: 1px solid var(--pocf7-border, #e2e8f0); border-radius: 8px; font-size: 14px; }
.pocf7-up-remove { flex: none; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; font-size: 18px; line-height: 1; color: inherit; }
.pocf7-up-remove:hover { background: rgba(0, 0, 0, .08); }
.pocf7-up-note { margin: 6px 0 0; font-size: 13px; color: #b91c1c; }
.pocf7-up-note:empty { display: none; }
