/* ============================================================
   Verve Contact Form — Frontend CSS  v2
   Brand: #852B2D → #C1521C
   No Select2. No native-select arrow conflicts.
   ============================================================ */

/* ---------- reset scope ---------- */
.vcf-wrap,
.vcf-wrap * {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}
.vcf-wrap {
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 15px;
    color: #2c2c2c;
    line-height: 1.5;
}

/* ---------- grid ---------- */
.vcf-wrap .vcf-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
}
.vcf-wrap .vcf-row:last-child { margin-bottom: 0; }
.vcf-wrap .vcf-col { flex: 1 1 0; min-width: 0; }
.vcf-wrap .vcf-col-full { flex: 0 0 100%; width: 100%; }
.vcf-wrap .vcf-row-right {
    margin-bottom: 10px;
    justify-content: flex-end;
}

/* ---------- base input / textarea ---------- */
.vcf-wrap .vcf-input {
    display: block;
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d8d8d8;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    color: #2c2c2c;
    background: #fff;
    line-height: 1.5;
    height: 46px;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
    margin: 0;
}
.vcf-wrap .vcf-input::placeholder { color: #b0b0b0; opacity: 1; }
.vcf-wrap .vcf-input:focus {
    border-color: #852B2D;
    box-shadow: 0 0 0 3px rgba(133,43,45,.11);
}
.vcf-wrap .vcf-input.vcf-has-error { border-color: #d93025 !important; }
.vcf-wrap .vcf-multiselect.vcf-has-error .vcf-multiselect-trigger { border-color: #d93025 !important; }
.vcf-wrap .vcf-phone-wrap.vcf-has-error { border-color: #d93025 !important; }
.vcf-wrap .vcf-textarea {
    resize: vertical;
    min-height: 130px;
    height: auto;
    line-height: 1.65;
}

/* ---------- phone field — custom country picker ---------- */
.vcf-phone-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
    border: 1.5px solid #d8d8d8;
    border-radius: 5px;
    overflow: visible;
    background: #fff;
    transition: border-color .18s, box-shadow .18s;
}
.vcf-phone-wrap:focus-within {
    border-color: #852B2D;
    box-shadow: 0 0 0 3px rgba(133,43,45,.11);
}
.vcf-phone-prefix {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px 0 12px;
    background: #f7f7f7;
    border-right: 1.5px solid #d8d8d8;
    border-radius: 4px 0 0 4px;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    flex-shrink: 0;
    min-width: 82px;
    transition: background .15s;
}
.vcf-phone-prefix:hover { background: #f0f0f0; }
.vcf-phone-prefix .vcf-chevron { width: 11px; height: 11px; color: #888; flex-shrink: 0; }
#vcf_dial_code { font-size: 13px; font-weight: 600; color: #2c2c2c; }
.vcf-phone-wrap .vcf-phone-input {
    border: none !important;
    border-radius: 0 5px 5px 0 !important;
    outline: none !important;
    box-shadow: none !important;
    flex: 1;
    min-width: 0;
}
.vcf-phone-wrap .vcf-phone-input:focus {
    border: none !important;
    box-shadow: none !important;
}

/* flag image */
.vcf-flag-img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
    display: inline-block;
}

/* country dropdown panel */
.vcf-country-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 280px;
    max-width: 100vw;
    background: #fff;
    border: 1.5px solid #d8d8d8;
    border-radius: 5px;
    box-shadow: 0 8px 24px rgba(0,0,0,.13);
    z-index: 99999;
    overflow: hidden;
}
.vcf-country-search-wrap {
    padding: 10px 10px 8px;
    border-bottom: 1px solid #eee;
}
.vcf-country-search {
    width: 100%;
    padding: 8px 10px;
    border: 1.5px solid #d8d8d8;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    color: #2c2c2c;
    background: #fff;
    box-sizing: border-box;
}
.vcf-country-search:focus { border-color: #852B2D; }
.vcf-country-list {
    max-height: 220px;
    overflow-y: auto;
}
.vcf-country-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    cursor: pointer;
    font-size: 13px;
    color: #2c2c2c;
    transition: background .1s;
}
.vcf-country-item:hover { background: #fdf0f0; }
.vcf-country-name { flex: 1; }
.vcf-country-dial { color: #888; font-size: 12px; white-space: nowrap; }

/* ---------- shared chevron icon ---------- */
.vcf-wrap .vcf-chevron {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #888;
    transition: transform .2s;
    display: block;
}

/* ============================================================
   CUSTOM MULTI-SELECT (services)
   ============================================================ */
.vcf-multiselect {
    position: relative;
    width: 100%;
    user-select: none;
}

/* trigger bar — looks like an input */
.vcf-multiselect-trigger {
    display: flex;
    align-items: center;
    min-height: 46px;
    height: auto;
    padding: 8px 12px 8px 14px;
    border: 1.5px solid #d8d8d8;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    gap: 8px;
    flex-wrap: wrap;
    transition: border-color .18s, box-shadow .18s;
    outline: none;
}
.vcf-multiselect-trigger:focus,
.vcf-multiselect-trigger.vcf-open {
    border-color: #852B2D;
    box-shadow: 0 0 0 3px rgba(133,43,45,.11);
}
.vcf-multiselect-trigger .vcf-chevron { margin-left: auto; flex-shrink: 0; }
.vcf-multiselect-trigger.vcf-open .vcf-chevron { transform: rotate(180deg); }

/* placeholder text */
.vcf-multiselect-placeholder {
    color: #b0b0b0;
    font-size: 14px;
    flex: 1;
}

/* selected tags */
.vcf-multiselect-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    flex: 1;
}
.vcf-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #852B2D, #C1521C);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 9px 3px 10px;
    border-radius: 3px;
    line-height: 1.5;
    white-space: nowrap;
}
.vcf-tag-remove {
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    opacity: .75;
    font-weight: 700;
    flex-shrink: 0;
}
.vcf-tag-remove:hover { opacity: 1; }

/* dropdown panel */
.vcf-multiselect-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid #d8d8d8;
    border-radius: 5px;
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
    z-index: 9999;
    overflow: hidden;
}

/* each checkbox row */
.vcf-multiselect-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    color: #2c2c2c;
    transition: background .12s;
    margin: 0;
    border: none;
}
.vcf-multiselect-option:hover { background: #fdf0f0; }
.vcf-multiselect-option input[type=checkbox] {
    display: none;
}
.vcf-checkbox-box {
    width: 17px;
    height: 17px;
    border: 2px solid #ccc;
    border-radius: 3px;
    background: #fff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .15s, background .15s;
}
.vcf-multiselect-option input[type=checkbox]:checked + .vcf-checkbox-box {
    background: #852B2D;
    border-color: #852B2D;
}
.vcf-multiselect-option input[type=checkbox]:checked + .vcf-checkbox-box::after {
    content: '';
    display: block;
    width: 9px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
}
.vcf-multiselect-option.vcf-opt-selected { background: #fff8f8; }

/* ============================================================
   CUSTOM SELECT (single — budget, start_when, time parts)
   ============================================================ */
.vcf-custom-select {
    position: relative;
    user-select: none;
}
.vcf-cs-full { width: 100%; }

.vcf-cs-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    height: 46px;
    border: 1.5px solid #d8d8d8;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    color: #2c2c2c;
    transition: border-color .18s, box-shadow .18s;
    gap: 8px;
    outline: none;
    white-space: nowrap;
    overflow: hidden;
}
.vcf-cs-trigger:focus,
.vcf-cs-trigger.vcf-open {
    border-color: #852B2D;
    box-shadow: 0 0 0 3px rgba(133,43,45,.11);
}
.vcf-cs-trigger.vcf-open .vcf-chevron { transform: rotate(180deg); }
.vcf-cs-placeholder { color: #b0b0b0; }
.vcf-cs-value { flex: 1; overflow: hidden; text-overflow: ellipsis; }

.vcf-cs-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid #d8d8d8;
    border-radius: 5px;
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
    z-index: 9998;
    overflow-y: auto;
    max-height: 220px;
}
.vcf-cs-option {
    padding: 10px 14px;
    font-size: 14px;
    color: #2c2c2c;
    cursor: pointer;
    transition: background .12s;
}
.vcf-cs-option:hover  { background: #fdf0f0; color: #852B2D; }
.vcf-cs-option.vcf-cs-selected { background: #fdf0f0; color: #852B2D; font-weight: 600; }

/* time-row compact selects */
.vcf-time-row {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}
.vcf-time-row .vcf-custom-select { flex: 1; min-width: 0; }
.vcf-time-row .vcf-custom-select .vcf-cs-trigger {
    padding: 12px 8px;
    justify-content: center;
    text-align: center;
    font-size: 13px;
}
.vcf-cs-ampm { flex: 0 0 64px; }
.vcf-time-colon {
    font-size: 18px;
    color: #888;
    font-weight: 600;
    flex-shrink: 0;
    line-height: 1;
}

/* ---------- field label ---------- */
.vcf-wrap .vcf-field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

/* ---------- radio buttons ---------- */
.vcf-wrap .vcf-radio-group {
    display: flex;
    gap: 24px;
    margin-top: 6px;
    align-items: center;
}
.vcf-wrap .vcf-radio-opt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #2c2c2c;
    position: relative;
    margin: 0;
    padding: 0;
}
.vcf-wrap .vcf-radio-opt input[type=radio] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}
.vcf-radio-circle {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
    position: relative;
    transition: border-color .15s;
}
.vcf-wrap .vcf-radio-opt input[type=radio]:checked ~ .vcf-radio-circle {
    border-color: #852B2D;
}
.vcf-wrap .vcf-radio-opt input[type=radio]:checked ~ .vcf-radio-circle::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #852B2D;
}

/* ---------- more info toggle ---------- */
.vcf-more-toggle {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #852B2D;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1;
    box-shadow: none;
    outline: none;
}
.vcf-more-toggle:hover { text-decoration: underline; color: #852B2D; }
.vcf-more-toggle .vcf-chevron-toggle { color: #852B2D; }
.vcf-more-toggle.open .vcf-chevron-toggle { transform: rotate(180deg); }

/* ---------- more section ---------- */
.vcf-more-section {
    border-top: 1px dashed #ddd;
    padding-top: 18px;
    margin-bottom: 18px;
}

/* ---------- inline errors ---------- */
.vcf-wrap .vcf-error {
    display: block;
    font-size: 12px;
    color: #d93025;
    margin-top: 4px;
    line-height: 1.3;
    /* No min-height — prevents phantom spacing between rows */
}
.vcf-wrap .vcf-error:empty {
    display: none;
}

/* ---------- alert boxes ---------- */
.vcf-wrap .vcf-alert {
    padding: 13px 16px;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 14px;
}
.vcf-alert-error   { background:#fff0f0; color:#b91c1c; border:1.5px solid #fca5a5; }
.vcf-alert-success { background:#f0fdf4; color:#166534; border:1.5px solid #86efac; font-weight:600; }

/* ---------- submit button ---------- */
.vcf-wrap .vcf-submit-btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #852B2D 0%, #C1521C 100%);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: .8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity .18s, transform .1s;
    line-height: 1.3;
    text-align: center;
    box-shadow: none;
    margin: 0;
    outline: none;
}
.vcf-wrap .vcf-submit-btn:hover { opacity: .88; }
.vcf-wrap .vcf-submit-btn:active { transform: scale(.99); }
.vcf-wrap .vcf-submit-btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- jQuery UI datepicker override ---------- */
.ui-datepicker { font-family: inherit !important; font-size: 13px !important; z-index: 99999 !important; }
.ui-datepicker .ui-datepicker-header {
    background: linear-gradient(135deg,#852B2D,#C1521C) !important;
    border-color: #852B2D !important;
    color: #fff !important;
}
.ui-datepicker .ui-datepicker-title { color: #fff !important; }
.ui-datepicker td .ui-state-active,
.ui-widget-content td .ui-state-active {
    background: #852B2D !important;
    border-color: #852B2D !important;
    color: #fff !important;
}

/* ---------- responsive ---------- */
@media (max-width: 580px) {
    .vcf-wrap .vcf-row { gap: 12px; margin-bottom: 14px; }
    .vcf-wrap .vcf-col { flex: 0 0 100%; width: 100%; }
    .vcf-time-row .vcf-cs-trigger { padding: 11px 5px; font-size: 12px; }
    .vcf-cs-ampm { flex: 0 0 58px; }
}

/* ---------- reCAPTCHA v2 ---------- */
#vcf_recaptcha_widget {
    margin-bottom: 4px;
}
