/* BDI Contact Form 7 Skin — matches BDI design-system tokens */

.bdi-cf-row {
    margin-bottom: 16px;
}

.bdi-cf-row label {
    display: block;
    font-family: var(--bdi-font-body, Inter, sans-serif);
    font-size: 14px;
    font-weight: 600;
    color: var(--bdi-text, #222222);
    margin-bottom: 6px;
}

.bdi-cf-row input[type="text"],
.bdi-cf-row input[type="email"],
.bdi-cf-row input[type="tel"],
.bdi-cf-row input[type="date"],
.bdi-cf-row select,
.bdi-cf-row textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    font-family: var(--bdi-font-body, Inter, sans-serif);
    font-size: 15px;
    color: var(--bdi-text, #222222);
    background: #ffffff;
    border: 1px solid var(--bdi-border, #dddddd);
    border-radius: var(--bdi-radius, 6px);
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.bdi-cf-row input[type="text"],
.bdi-cf-row input[type="email"],
.bdi-cf-row input[type="tel"],
.bdi-cf-row input[type="date"],
.bdi-cf-row select {
    height: 46px;
    min-height: 0 !important;
}

.bdi-cf-row textarea {
    min-height: 110px;
    resize: vertical;
}

.bdi-cf-row input:focus,
.bdi-cf-row select:focus,
.bdi-cf-row textarea:focus {
    outline: none;
    border-color: var(--bdi-brand, #005f73);
    box-shadow: 0 0 0 3px rgba(0, 95, 115, 0.12);
}

.bdi-cf-submit {
    display: block;
    width: 100%;
    background: var(--bdi-brand, #005f73);
    color: #ffffff;
    padding: 16px 36px;
    font-family: var(--bdi-font-body, Inter, sans-serif);
    font-size: 15px;
    font-weight: 600;
    border: 0;
    border-radius: var(--bdi-radius, 6px);
    cursor: pointer;
    transition: background-color .15s ease;
    margin-top: 8px;
    text-align: center;
}

.bdi-cf-submit:hover {
    background: var(--bdi-brand-hover, #004d5e);
}

.bdi-cf-submit:disabled,
.wpcf7-spinner {
    opacity: 0.7;
    cursor: not-allowed;
}

/* CF7 response messages */
.wpcf7-response-output {
    margin: 16px 0 0;
    padding: 12px 16px;
    border-radius: var(--bdi-radius, 6px);
    font-family: var(--bdi-font-body, Inter, sans-serif);
    font-size: 14px;
    border: none;
}

.wpcf7-mail-sent-ok {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.wpcf7-mail-sent-ng,
.wpcf7-aborted {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.wpcf7-validation-errors,
.wpcf7-acceptance-missing {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.wpcf7-not-valid-tip {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #dc2626;
    font-family: var(--bdi-font-body, Inter, sans-serif);
}

.wpcf7-form-control-wrap input.wpcf7-not-valid,
.wpcf7-form-control-wrap select.wpcf7-not-valid,
.wpcf7-form-control-wrap textarea.wpcf7-not-valid {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

/* Fix: select content was clipped vertically (height + box-sizing + padding math) */
.bdi-cf-row select,
.bdi-cf-row input[type="date"] {
    height: 46px !important;
    padding: 0 36px 0 14px !important; /* extra right for the native chevron */
    line-height: 46px !important;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox=%270 0 24 24%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M6 9l6 6 6-6%27 stroke=%27%23555%27 stroke-width=%272%27 fill=%27none%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
}
.bdi-cf-row input[type="date"] {
    padding-right: 14px !important;
    background-image: none;
}
