/* ==========================================================================
   Veritas Finance Contact Form Stylesheet
   Created with custom vw values for seamless typography and spacing scaling
   ========================================================================== */

.vf-contact-subheading {
    letter-spacing: 0.5px;
    margin-bottom: 0.625vw;
    text-transform: capitalize;
}

.vf-contact-heading {

    margin-bottom: 1.5vw;
}

.vf-contact-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.83vw;
    margin-bottom: 1.82vw;
}

.vf-contact-tab {
    background-color: #ffffff;
    border: none;
    border-radius: 2.6vw;
    color: #1A2B3C;
    font-family: inherit;
    height: 3vw;
    line-height: 1;
    outline: none;
    padding: 0 0.93vw;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    white-space: nowrap;
    min-width: 18.5vw;
}

.vf-contact-tab:hover {
    background-color: #f8fafc;
    color: #0c2340;
    box-shadow: 0 0.3vw 0.78vw rgba(0, 0, 0, 0.05);
    transform: translateY(-0.1vw);
}

.vf-contact-tab.is-active {
    background-color: #be2c3f;
    border-color: #be2c3f;
    box-shadow: 0 0.3vw 1.04vw rgba(190, 44, 63, 0.25);
    color: #ffffff;
}

.vf-contact-tab.is-active:hover {
    background-color: #a82334;
    box-shadow: 0 0.4vw 1.14vw rgba(168, 35, 52, 0.3);
    color: #ffffff;
}

.vf-contact-success {
    display: none;
    background-color: #eafaf1;
    border: 1px solid #a3e4d7;
    border-radius: 0.625vw;
    color: #117864;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin-bottom: 1.04vw;
    padding: 1.04vw;
    text-align: center;
}

.vf-contact-success.is-visible {
    display: block;
    animation: vfContactSlideDown 0.4s ease;
}

.vf-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.04vw;
    margin-bottom: 1.3vw;
}

.vf-contact-field {
    position: relative;
}

.vf-contact-field-full {
    grid-column: span 2;
}

.vf-contact-product-row .vf-contact-select {
    max-width: calc((100% - 1.04vw) / 2);
    width: calc((100% - 1.04vw) / 2);
}

.vf-contact-control {
    background-color: #ffffff;
    border: 1px solid transparent;
    border-radius: 0.625vw;
    box-shadow: 0 0.3vw 1.04vw rgba(0, 0, 0, 0.03);
    color: #0c2340;
    font-family: inherit;
    outline: none;
    padding: 1.04vw 1.25vw;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 100%;
}

.vf-contact-control::placeholder {
    color: #0c2340;
    opacity: 0.85;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.vf-contact-control:focus {
    border-color: rgba(190, 44, 63, 0.3);
    box-shadow: 0 0.4vw 1.56vw rgba(190, 44, 63, 0.08), 0 0 0 0.15vw rgba(190, 44, 63, 0.1);
    transform: translateY(-0.1vw);
}

.vf-contact-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%231A2B3C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25vw center;
    background-size: 0.9vw auto;
    cursor: pointer;
    padding-right: 3.5vw;
}

.vf-contact-select option {
    color: #111C27;
}

textarea.vf-contact-control {
    min-height: 8.3vw;
    resize: vertical;
}

.vf-contact-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.56vw;
    padding-bottom: 3vw;
}

.vf-contact-consent {
    display: flex;
    align-items: flex-start;
    flex: 1;
    gap: 0.83vw;
    max-width: 50.5vw;
}

.vf-contact-checkbox-wrap {
    display: inline-block;
    flex-shrink: 0;
    height: 2vw;
    margin-top: 0.1vw;
    position: relative;
    width: 2vw;
}

.vf-contact-consent-check {
    height: 2vw;
    left: 0;
    margin: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    width: 2vw;
}

.vf-contact-checkbox-ui {
    background-color: #ffffff;
    border: 1.5px solid transparent;
    border-radius: 0.3vw;
    box-shadow: 0 0.2vw 0.5vw rgba(0, 0, 0, 0.04);
    display: block;
    height: 1.25vw;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 1.25vw;
}

.vf-contact-checkbox-ui::after {
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    content: '';
    height: 0.57vw;
    left: 0.47vw;
    position: absolute;
    top: 0.26vw;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 0.31vw;
}

.vf-contact-consent-check:checked+.vf-contact-checkbox-ui,
.vf-contact-consent-check:checked~.vf-contact-checkbox-ui {
    background-color: #be2c3f;
    border-color: #be2c3f;
    box-shadow: 0 0.2vw 0.6vw rgba(190, 44, 63, 0.25);
}

.vf-contact-consent-check:focus+.vf-contact-checkbox-ui,
.vf-contact-consent-check:focus~.vf-contact-checkbox-ui {
    box-shadow: 0 0 0 0.15vw rgba(190, 44, 63, 0.1);
}

.vf-contact-consent-check:checked+.vf-contact-checkbox-ui::after,
.vf-contact-consent-check:checked~.vf-contact-checkbox-ui::after {
    transform: rotate(45deg) scale(1);
}

.vf-contact-consent-text {
    cursor: pointer;
    user-select: none;
}

.vf-contact-submit {
    align-items: center;
    align-self: flex-end;
    background-color: #be2c3f;
    border: none;
    border-radius: 2.6vw;
    box-shadow: 0 0.3vw 1.04vw rgba(190, 44, 63, 0.25);
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    flex-shrink: 0;
    font-family: inherit;
    gap: 0.625vw;
    height: 2.4vw;
    justify-content: center;
    outline: none;
    padding: 0 0.73vw 0 1.25vw;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 7.8vw;
}

.vf-contact-submit:hover {
    background-color: #a82334;
    box-shadow: 0 0.4vw 1.3vw rgba(168, 35, 52, 0.35);
    transform: translateY(-0.1vw);
}

.vf-contact-submit:disabled {
    cursor: wait;
    opacity: 0.8;
}

.vf-contact-submit-icon {
    align-items: center;
    border: 1.5px solid #ffffff;
    border-radius: 50%;
    display: inline-flex;
    height: 0.93vw;
    justify-content: center;
    transition: transform 0.3s ease;
    width: 0.93vw;
}

.vf-contact-submit:hover .vf-contact-submit-icon {
    transform: translateX(0.15vw);
}

.vf-contact-submit-arrow {
    fill: none;
    height: 0.52vw;
    stroke: #ffffff;
    stroke-width: 2px;
    width: 0.52vw;
}

@keyframes vfContactFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes vfContactSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vf-contact-info-section {
    background-color: rgba(26, 43, 60, 0.7);
    color: #ffffff;
}

.vf-contact-info-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.4vw;
    margin-bottom: 2.5vw;
}

.vf_contact-inner {
    padding: 5vw 0 6vw 0;
}

.vf-contact-info-tab {
    background-color: #E7E9EB;
    border: none;
    border-radius: 3vw;
    color: #1A2B3C;
    cursor: pointer;
    font-family: inherit;
    font-size: var(--text-20);
    font-weight: 600;
    outline: none;
    padding: 0.8vw 2vw;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    white-space: nowrap;
}

.vf-contact-info-tab:hover {
    background-color: #dcdfe4;
    transform: translateY(-1px);
}

.vf-contact-info-tab.is-active {
    background-color: #f7941d;
    box-shadow: 0 4px 15px rgba(247, 148, 29, 0.25);
    color: #0c2340;
}

.vf-contact-info-tab.is-active:hover {
    background-color: #e68a18;
}

.vf-contact-info-panel {
    animation: vfContactFadeIn 0.4s ease;
}

.vf-contact-info-panel[hidden] {
    display: none;
}

.vf-contact-info-heading {
    color: #ffffff;
    margin-bottom: 1vw;
}

.vf-contact-info-text {
    color: #fff;
    max-width: 45vw;
    padding-bottom: 1vw;
}

.vf-contact-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px 125px;
}

.vf-contact-info-col {
    align-items: flex-start;
    display: flex;
    gap: 10px;
}

.vf-contact-info-icon-wrap {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    height: auto;
    justify-content: center;
    margin-top: 0.3vw;
    width: 1.5vw;
}

.vf-contact-info-icon {
    fill: none;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2px;
    width: 14px;
}

.vf-contact-info-title.title-email a {
    text-decoration: underline !important;
}

.vf-contact-info-title a {
    color: #ffffff;
    font-size: var(--text-30);
    font-weight: 700;
    line-height: 1.5vw;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
}

.vf-contact-info-title a:hover {
    opacity: 0.8;
}

.vf-contact-info-desc {
    font-size: var(--text-20);
    padding: 0.7vw 0 0;
    line-height: 0.8vw;
}

@keyframes vfContactFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes vfContactSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vf-contact-header {
    padding: 3.9vw 0 0 0;
}

/* Contact Form 7 layout (Request Callback / product query pages) */
.vf-contact-cf7-form .wpcf7-form {
    margin: 0;
}

.vf-contact-cf7-form .wpcf7-form p {
    margin: 0;
}

.vf-contact-cf7-form br {
    display: none;
}

.vf-contact-cf7-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.vf-contact-cf7-form .vf-contact-grid .vf-contact-field > p {
    width: 100%;
}

.vf-contact-cf7-form .vf-contact-product-row > p {
    width: 100%;
}

.vf-contact-cf7-form .vf-contact-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.56vw;
    padding-bottom: 3vw;
}

.vf-contact-cf7-form .vf-contact-footer > p {
    margin: 0;
}

.vf-contact-cf7-form .vf-contact-footer > p:first-child {
    flex: 1 1 auto;
    max-width: 50.5vw;
    min-width: 0;
}

.vf-contact-cf7-form .vf-contact-footer > p:last-child {
    align-self: flex-end;
    flex: 0 0 auto;
}

.vf-contact-cf7-form .vf-contact-footer .vf-contact-consent {
    align-items: flex-start;
    display: flex;
    gap: 0.83vw;
    max-width: none;
    width: 100%;
}

.vf-contact-cf7-form .vf-contact-footer .vf-contact-checkbox-wrap {
    align-items: flex-start;
    display: inline-flex;
    flex-shrink: 0;
    justify-content: center;
    position: relative;
}

.vf-contact-cf7-form .vf-contact-footer .vf-contact-consent-check {
    cursor: pointer;
    height: 100%;
    inset: 0;
    margin: 0;
    opacity: 0;
    position: absolute;
    width: 100%;
    z-index: 2;
}

.vf-contact-cf7-form .vf-contact-footer .vf-contact-checkbox-ui {
    display: block;
    flex-shrink: 0;
    position: relative;
}

.vf-contact-cf7-form .vf-contact-footer .vf-contact-consent-text {
    flex: 1;
    line-height: 1.4;
}

.vf-contact-cf7-form .vf-contact-footer .vf-contact-submit,
.vf-contact-cf7-form .vf-contact-footer .btn-red {
    align-self: flex-end;
    margin: 0;
}

/* Submit button — match Apply Now */
.vf-contact-cf7-form .vf-contact-footer > p:last-child,
.vf-contact-form .vf-contact-footer .submit-wrapper {
    display: flex;
    flex: 0 0 auto;
    justify-content: flex-end;
    margin-top: 0;
}

.vf-contact-cf7-form .vf-contact-footer > p:last-child {
    margin: 0;
}

.vf-contact-cf7-form .submit-btn,
.vf-contact-form .submit-btn {
    border: none;
    margin-left: auto;
}

.vf-contact-cf7-form .submit-btn .btn-arrow-icon,
.vf-contact-form .submit-btn .btn-arrow-icon {
    flex-shrink: 0;
    height: auto;
    width: 1.6vw;
}

.vf-contact-cf7-form .wpcf7-spinner {
    display: none;
}

.vf-contact-cf7-form .wpcf7-not-valid-tip {
    font-size: 0.75vw;
    margin-top: 0.35vw;
}

.vf-contact-cf7-form .wpcf7-response-output {
    margin: 1vw 0 0;
}

/* Responsive adjustments */
@media (max-width: 991.5px) {
    .contact-inner {
        padding: 30px 15px;
    }

    .vf-contact-header {
        padding: 0;
    }

    .vf-contact-subheading {
        margin-bottom: 12px;
    }

    .vf-contact-footer button:not(.submit-btn) {
        padding: 0 5px 0 15px !important;
        width: 170px !important;
        min-width: 170px;
    }

    .vf-contact-cf7-form .vf-contact-footer > p:last-child,
    .vf-contact-form .vf-contact-footer .submit-wrapper {
        display: flex;
        justify-content: flex-end;
        margin-top: 10px;
        width: 100%;
    }

    .vf-contact-cf7-form .vf-contact-footer .submit-btn,
    .vf-contact-form .vf-contact-footer .submit-btn {
        font-size: 15px;
        height: auto;
        margin-left: 0;
        min-width: 150px;
        padding: 10px 12px 10px 20px;
        width: auto;
    }

    .vf-contact-cf7-form .vf-contact-footer .submit-btn .btn-arrow-icon,
    .vf-contact-form .vf-contact-footer .submit-btn .btn-arrow-icon {
        width: 25px;
    }

    .vf-contact-consent {
        max-width: 100%;
        gap: 12px;
    }

    .vf-contact-heading {
        margin-bottom: 24px;
        line-height: 26px;
    }

    .vf-contact-tabs {
        gap: 12px;
        margin-bottom: 24px;
    }

    .vf-contact-tab {
        height: 42px;
        padding: 0 18px;
        width: 100%;
        max-width: 210px;
        border-radius: 50px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
        margin: 0 0 10px 0;
    }

    button.vf-contact-info-tab {
        margin: 0 0 10px 0;
    }

    .vf-contact-tab:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
    }

    .vf-contact-tab.is-active {
        box-shadow: 0 6px 20px rgba(190, 44, 63, 0.25);
    }

    .vf-contact-tab.is-active:hover {
        box-shadow: 0 8px 22px rgba(168, 35, 52, 0.3);
    }

    .vf-contact-success {
        border-radius: 8px;
        margin-bottom: 20px;
        padding: 15px;
    }

    .vf-contact-grid {
        gap: 16px;
        margin-bottom: 20px;
    }

    .vf-contact-control {
        border-radius: 8px;
        padding: 15px 18px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    }

    .vf-contact-control:focus {
        box-shadow: 0 6px 20px rgba(190, 44, 63, 0.08), 0 0 0 3px rgba(190, 44, 63, 0.1);
        transform: translateY(-1px);
    }

    textarea.vf-contact-control {
        min-height: 120px;
    }

    .vf-contact-footer {
        align-items: stretch;
        flex-direction: column;
        gap: 24px;
        margin-top: 24px;
    }

    .vf-contact-cf7-form .vf-contact-footer {
        align-items: stretch;
        flex-direction: column;
        gap: 24px;
        padding-bottom: 24px;
    }

    .vf-contact-cf7-form .vf-contact-footer > p:first-child {
        align-self: auto;
        max-width: 100%;
        width: 100%;
    }

    .vf-contact-cf7-form .vf-contact-footer > p:last-child {
        align-self: auto;
        max-width: 100%;
        width: auto;
    }

    .vf-contact-cf7-form .vf-contact-footer .vf-contact-submit:not(.submit-btn),
    .vf-contact-cf7-form .vf-contact-footer .btn-red:not(.submit-btn) {
        align-self: auto;
        width: 100%;
    }

    .vf-contact-consent {
        max-width: 100%;
        gap: 12px;
    }

    .vf-contact-checkbox-wrap,
    .vf-contact-consent-check,
    .vf-contact-checkbox-ui {
        height: 20px;
        width: 20px;
    }

    .vf-contact-checkbox-ui {
        border-radius: 4px;
    }

    .vf-contact-checkbox-ui::after {
        height: 9px;
        left: 7px;
        top: 4px;
        width: 5px;
    }

    .vf-contact-submit:not(.submit-btn) {
        align-self: auto;
        height: 46px;
        border-radius: 50px;
        box-shadow: 0 6px 20px rgba(190, 44, 63, 0.25);
        gap: 10px;
        padding: 0 20px;
        width: 100%;
    }

    .vf-contact-submit:not(.submit-btn):hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(168, 35, 52, 0.35);
    }

    .vf-contact-submit-icon {
        height: 18px;
        width: 18px;
    }

    .vf-contact-submit:hover .vf-contact-submit-icon {
        transform: translateX(3px);
    }

    .vf-contact-submit-arrow {
        height: 10px;
        width: 10px;
    }

    .vf-contact-info-tabs {
        gap: 15px;
        margin-bottom: 25px;
        overflow-y: scroll;
    }

    .vf-contact-info-tab {
        min-width: 200px;
        height: auto;
        border-radius: 30px;
        padding: 5px 15px !important;
        white-space: normal;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .vf-contact-info-text {
        color: #fff;
        max-width: 100%;
        padding: 15px 0;
    }

    .vf-contact-info-icon-wrap {
        margin-top: 0;
        width: auto;
    }

    .vf-contact-info-desc {
        font-size: var(--text-15);
        padding: 5px;
        line-height: inherit;
    }

    .vf_contact-inner {
        padding: 30px 15px;
    }
}

@media(max-width:767px) {
    .vf-contact-tabs {
        gap: 12px;
        margin-bottom: 24px;
        display: flex;
        flex-direction: row;
        overflow-y: scroll;
        flex-wrap: nowrap;
    }

    .vf-contact-tab {
        height: 42px;
        padding: 0 18px;
        width: auto;
        min-width: 240px;
        border-radius: 50px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    }

    .vf-contact-grid {
        gap: 16px;
        margin-bottom: 20px;
        display: flex;
        flex-wrap: wrap;
        width: 100%;
    }

    .vf-contact-control {
        border-radius: 8px;
        padding: 15px 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
        width: 100%;
        font-size: 16px;
    }

    .vf-contact-field {
        position: relative;
        display: flex;
        width: 100%;
    }

    .vf-contact-product-row .vf-contact-select {
        max-width: 100%;
        width: 100%;
    }

    .vf-contact-footer button:not(.submit-btn) {
        padding: 0 5px 0 15px !important;
        width: 170px !important;
        min-width: 170px;
    }

    .vf-contact-cf7-form .vf-contact-footer > p:last-child,
    .vf-contact-form .vf-contact-footer .submit-wrapper {
        justify-content: center;
    }

    .vf-contact-cf7-form .vf-contact-footer .vf-contact-submit:not(.submit-btn),
    .vf-contact-cf7-form .vf-contact-footer .btn-red:not(.submit-btn) {
        height: 46px;
        width: 170px !important;
        min-width: 170px;
    }

    .vf_contact-inner {
        padding: 50px 15px 50px 15px;
    }

    .vf-contact-info-tabs {
        gap: 15px;
        margin-bottom: 25px;
        overflow-y: scroll;
    }

    .vf-contact-info-tab {
        min-width: 200px;
        height: auto;
        border-radius: 30px;
        padding: 5px 15px !important;
        white-space: normal;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .vf-contact-info-text {
        color: #fff;
        max-width: 100%;
        padding: 15px 0;
    }

    .vf-contact-info-icon-wrap {
        margin-top: 0;
        width: auto;
    }

    .vf-contact-info-desc {
        font-size: var(--text-15);
        padding: 5px;
        line-height: inherit;
    }
}