.custom-cv-form {
--dcm-form-max-width: 720px;
--dcm-form-accent: var(--wp--preset--color--primary, #f49423);
--dcm-form-text: var(--wp--preset--color--foreground, #111827);
--dcm-form-muted: #6b7280;
--dcm-form-border: #d1d5db;
--dcm-form-bg: var(--wp--preset--color--background, #ffffff);
--dcm-form-radius: 10px;
max-width: var(--dcm-form-max-width);
margin: 2rem auto;
padding: 28px;
color: var(--dcm-form-text);
font-family: inherit;
box-sizing: border-box;
}
.custom-cv-form *,
.custom-cv-form *::before,
.custom-cv-form *::after {
box-sizing: border-box;
}
.custom-cv-form.dcm-form-style-card {
background: var(--dcm-form-bg);
border: 1px solid #e8e8ee;
border-radius: var(--dcm-form-radius);
box-shadow: 0 6px 18px rgba(22, 30, 42, 0.06);
}
.custom-cv-form.dcm-form-style-minimal {
padding: 0;
background: transparent;
border: 0;
box-shadow: none;
}
.custom-cv-form.dcm-form-style-theme {
padding: 0;
background: transparent;
border: 0;
box-shadow: none;
}
.custom-cv-form .dcm-form-title {
margin: 0 0 1.5rem;
font-size: clamp(1.35rem, 2vw, 1.75rem);
line-height: 1.25;
text-align: left;
}
.custom-cv-form .dcm-form-error {
padding: 12px 14px;
border: 1px solid #d63638;
background: #fcf0f1;
border-radius: 8px;
margin-bottom: 16px;
}
.custom-cv-form .dcm-public-form {
margin: 0;
}
.custom-cv-form.dcm-form-layout-two-column .dcm-public-form {
display: grid;
grid-template-columns: 1fr;
gap: 0 20px;
}
@media (min-width: 768px) {
.custom-cv-form.dcm-form-layout-two-column .dcm-public-form {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.custom-cv-form.dcm-form-layout-two-column .dcm-field-span-full,
.custom-cv-form.dcm-form-layout-two-column .dcm-form-submit,
.custom-cv-form.dcm-form-layout-two-column .dcm-form-error {
grid-column: 1 / -1;
}
}
.custom-cv-form .form-group,
.custom-cv-form .dcm-field {
margin-bottom: 18px;
min-width: 0;
width: 100%;
}
.custom-cv-form label {
display: block;
margin-bottom: 8px;
font-size: 14px;
font-weight: 600;
color: var(--dcm-form-text);
}
.custom-cv-form input[type="text"],
.custom-cv-form input[type="date"],
.custom-cv-form input[type="email"],
.custom-cv-form input[type="tel"],
.custom-cv-form input[type="number"],
.custom-cv-form select,
.custom-cv-form textarea {
width: 100%;
min-height: 46px;
padding: 10px 12px;
border: 1px solid var(--dcm-form-border);
border-radius: 8px;
background: #fff;
color: var(--dcm-form-text);
font-size: 16px;
outline: none;
transition: border-color 0.15s, box-shadow 0.15s;
}
.custom-cv-form textarea {
min-height: 120px;
resize: vertical;
}
.custom-cv-form input::placeholder,
.custom-cv-form textarea::placeholder {
color: #9ca3af;
}
.custom-cv-form input:focus,
.custom-cv-form select:focus,
.custom-cv-form textarea:focus {
border-color: var(--dcm-form-accent);
box-shadow: 0 0 0 3px color-mix(in srgb, var(--dcm-form-accent) 20%, transparent);
}
.custom-cv-form input[type="file"] {
width: 100%;
min-height: 46px;
padding: 8px 12px;
border: 1px solid var(--dcm-form-border);
border-radius: 8px;
background: #fff;
}
.custom-cv-form input[type="file"]::file-selector-button {
margin-right: 12px;
padding: 8px 14px;
border: 0;
border-radius: 8px;
background: #f3f4f6;
cursor: pointer;
}
.custom-cv-form .checkbox-group,
.custom-cv-form .radio-group {
display: grid;
grid-template-columns: 1fr;
gap: 10px;
margin-top: 6px;
width: 100%;
}
@media (min-width: 640px) {
.custom-cv-form .checkbox-group,
.custom-cv-form .radio-group {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
.custom-cv-form .dcm-choice-label,
.custom-cv-form .checkbox-group label,
.custom-cv-form .radio-group label,
.custom-cv-form label.dcm-inline {
display: flex;
align-items: flex-start;
gap: 10px;
width: 100%;
max-width: 100%;
min-width: 0;
font-weight: 500;
margin-bottom: 0;
padding: 12px 14px;
border: 1px solid #e5e7eb;
border-radius: 8px;
background: #fff;
line-height: 1.4;
cursor: pointer;
}
.custom-cv-form .dcm-choice-label span {
flex: 1;
min-width: 0;
}
.custom-cv-form input[type="checkbox"],
.custom-cv-form input[type="radio"] {
width: 18px;
height: 18px;
margin: 0;
flex-shrink: 0;
}
.custom-cv-form .dcm-field-heading h3 {
margin: 0.5rem 0 0;
font-size: 1.1rem;
}
.custom-cv-form .dcm-help {
display: block;
margin-top: 6px;
color: var(--dcm-form-muted);
font-size: 12px;
font-weight: 400;
}
.custom-cv-form .dcm-form-submit {
margin: 8px 0 0;
}
.custom-cv-form .dcm-form-button {
display: inline-block;
width: 100%;
margin-top: 8px;
padding: 14px 22px;
border: 0;
border-radius: 999px;
background: var(--dcm-form-accent);
color: #fff;
font-size: 16px;
font-weight: 700;
letter-spacing: 0.04em;
text-transform: uppercase;
cursor: pointer;
transition: filter 0.15s, transform 0.05s;
}
.custom-cv-form .dcm-form-button:hover {
filter: brightness(0.95);
}
.custom-cv-form .dcm-form-button:active {
transform: translateY(1px);
}
.custom-cv-form .required {
color: #dc3232;
} .dcm-form-block-editor .custom-cv-form {
pointer-events: none;
}
@media (max-width: 480px) {
.custom-cv-form.dcm-form-style-card {
padding: 18px;
border-radius: 8px;
}
} .form-message {
padding: 15px;
margin-bottom: 20px;
border-radius: 8px;
text-align: center;
}
.form-message.error {
background: #f8d7da;
color: #721c24;
border: 1px solid #f5c6cb;
}
.form-message.success {
background: #d4edda;
color: #155724;
border: 1px solid #c3e6cb;
}