/* File: wp-content/themes/log-core/assets/css/log-contact-form.css */
/* Source: contact_us_4.html — .sc-field / .sc-checkbox / .sc-submit-btn */
/* Depends on: log-contact-hero.css (inherits tokens, grid) */
/* Prefix: .cu- (CF7 form 5638 field classes) */

.cu-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.cu-submit-row {
    margin-top: 24px;
}

@media (max-width: 520px) {
    .cu-field-row {
        grid-template-columns: 1fr;
    }
}

.cu-field-group {
    margin-top: 22px;
}

/*
 * Specificity raised to (0,0,3,1) to beat Blocksy's
 * `.wpcf7 label:not(.wpcf7-form-control-wrap)` (0,0,2,1) in cf-7.min.css.
 * font-family is set explicitly because nothing previously contested it,
 * letting Blocksy's `label{font-family:var(--theme-font-family)}` win by
 * default (see comparison-contact-us.md, Section 4 row 1).
 */
.log-co-form-embed .wpcf7-form .cu-field-group label {
    display: block;
    font-family: var(--body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-900);
    margin-bottom: 10px;
}

/* CF7 auto-inserts <br> between <label> and the field wrap — redundant
   since the label is already display:block, but still renders as a full
   extra line (~22px) of unwanted space above the input. Same fix already
   applied to other CF7 forms in this theme (e.g. .log-cf7-nl-row br). */
.log-co-form-embed .wpcf7-form .cu-field-group br {
    display: none;
}

.log-co-form-embed .wpcf7-form .cu-optional {
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--gray-400);
}

input.cu-field,
textarea.cu-field {
    width: 100%;
    border: 1.4px solid var(--line);
    border-radius: 12px;
    padding: 15px 16px 15px 46px;
    font-size: 14px;
    font-family: inherit;
    color: var(--ink-900);
    background-color: var(--paper-50);
    background-repeat: no-repeat;
    background-position: 18px center;
    background-size: 16px 16px;
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

/* Leading field icons (stroke = --gray-600). */
#cu-name {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E");
}

#cu-email {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
}

#cu-phone,
#cu-phone2 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E");
}

#cu-message {
    background-position: 18px 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-12.4 7.4L3 21l2.1-5.6A8.5 8.5 0 1 1 21 11.5z'/%3E%3C/svg%3E");
}

input.cu-field:focus,
textarea.cu-field:focus {
    outline: none;
    border-color: var(--sage-600);
    box-shadow: 0 0 0 3px rgba(255,201,74, .25);
    background-color: #fff;
}

input.cu-field::placeholder,
textarea.cu-field::placeholder {
    color: var(--gray-400);
}

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

.wpcf7-form-control-wrap {
    display: block;
}

.wpcf7-not-valid-tip {
    font-size: 11.5px;
    color: #c0392b;
    margin-top: 4px;
}

/* ── Consent checkbox (CF7 [acceptance] field) ── */
.wpcf7-acceptance {
    display: flex;
    margin-top: 18px;
}

.wpcf7-acceptance .wpcf7-list-item {
    margin: 0;
}

.wpcf7-acceptance label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.wpcf7-acceptance input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--plum-700);
}

.wpcf7-acceptance .wpcf7-list-item-label {
    font-family: var(--body);
    font-size: 11.5px;
    font-weight: 400;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ── Submit button ── */

.cu-btn-submit {
    position: relative;
    overflow: hidden;
    background: var(--ink-900);
    color: var(--paper);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .06em;
    text-transform: uppercase;
    width: 100%;
    padding: 17px 28px;
    border-radius: 12px;
    box-shadow: 0 12px 24px -12px rgba(18,36,30, .45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
    border: none;
    font-family: inherit;
    cursor: pointer;
}

.cu-btn-submit:hover {
    background: var(--ink-900);
    color: var(--paper);
}

.cu-btn-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255, 255, 255, .4), transparent);
    transform: skewX(-20deg);
    transition: left .6s var(--ease);
}

.cu-btn-submit:hover::after {
    left: 130%;
}

.cu-btn-submit:hover {
    background: var(--plum-700);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -10px rgba(18,36,30, .4);
}

.cu-form-privacy {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--ink-700);
    margin-top: 12px;
}

.wpcf7-response-output {
    border-radius: 10px !important;
    font-size: 12.5px !important;
    margin: 14px 0 0 !important;
    padding: 10px 14px !important;
}