.cf-ph-form-wrap {
    margin: 2rem 0;
    padding: clamp(1.25rem, 4vw, 2.25rem);
    background: #111827;
    border: 1px solid #b98a35;
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(0,0,0,.28);
    color: #f8f1e4;
}

.cf-ph-form-wrap h2 {
    margin-top: 0;
    color: #fff;
    font-size: 1.5rem;
}

.cf-ph-form-wrap > p {
    color: #ddd4c5;
    margin-top: -.25rem;
}

.cf-ph-notice {
    display: none;
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin-bottom: 1.25rem;
    font-size: .95rem;
    line-height: 1.6;
}

.cf-ph-notice--success {
    background: #d1fae5;
    border: 1px solid #34d399;
    color: #065f46;
}

.cf-ph-notice--error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #7f1d1d;
}

.cf-ph-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.cf-ph-field {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.cf-ph-field--full {
    grid-column: 1 / -1;
}

.cf-ph-field label {
    font-weight: 700;
    color: #f8f1e4;
    font-size: .9rem;
}

.cf-ph-required {
    color: #f1bc58;
}

.cf-ph-field input,
.cf-ph-field select,
.cf-ph-field textarea {
    width: 100%;
    padding: .75rem;
    border: 1px solid #8d96a6;
    border-radius: 6px;
    background: #fff;
    color: #111827;
    font: inherit;
    font-size: .95rem;
    box-sizing: border-box;
    transition: border-color .15s, outline .15s;
}

.cf-ph-field input:focus,
.cf-ph-field select:focus,
.cf-ph-field textarea:focus {
    outline: 3px solid rgba(213,166,75,.35);
    border-color: #d5a64b;
}

.cf-ph-hint {
    font-size: .82rem;
    color: #c9c2b5;
    margin: 0;
}

.cf-ph-submit-row {
    margin-top: 1.25rem;
    grid-column: 1 / -1;
}

.cf-ph-submit {
    border: 1px solid #e0b55d;
    border-radius: 6px;
    padding: .85rem 1.75rem;
    background: #c89334;
    color: #111827;
    font: inherit;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: background .15s;
}

.cf-ph-submit:hover {
    background: #e0b55d;
}

.cf-ph-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.cf-ph-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 640px) {
    .cf-ph-grid {
        grid-template-columns: 1fr;
    }
    .cf-ph-field--full {
        grid-column: auto;
    }
}
