.dc-contact-company {
    --dc-contact-gap: 48px;
    --dc-contact-navy: #011139;
    --dc-contact-blue: #0064be;
    --dc-contact-red: #fe0b21;
    width: min(100%, 1280px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--dc-contact-gap);
    background: #fff;
    box-sizing: border-box;
}

.dc-contact-company,
.dc-contact-company * {
    box-sizing: border-box;
}

.dc-contact-map {
    position: relative;
    min-width: 0;
    height: 879px;
    overflow: hidden;
    border-radius: 24px;
    background: #f4f5f7;
}

.dc-contact-map img,
.dc-contact-map__link,
.dc-contact-map__iframe {
    width: 100%;
    height: 100%;
}

.dc-contact-map img {
    display: block;
    object-fit: cover;
    object-position: center;
}

.dc-contact-map__link {
    display: block;
}

.dc-contact-map__iframe {
    display: block;
    border: 0;
}

.dc-contact-content {
    min-width: 0;
    align-self: start;
}

.dc-contact-badge {
    width: fit-content;
    min-height: 39px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 999px;
    background: #fff;
    color: var(--dc-contact-red);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 500;
}

.dc-contact-badge__dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: var(--dc-contact-red);
}

.dc-contact-company__title {
    margin: 20px 0 24px;
    color: var(--dc-contact-navy);
    font-size: clamp(30px, 2.15vw, 40px);
    line-height: 1.16;
    letter-spacing: -0.025em;
    font-weight: 700;
}

.dc-contact-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dc-contact-info__row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.dc-contact-info__icon {
    width: 16px;
    flex: 0 0 16px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-top: 0.16em;
    color: var(--dc-contact-blue);
    font-size: 16px;
    line-height: 1;
}

.dc-contact-info__icon svg,
.dc-contact-social__link svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.dc-contact-info__content {
    min-width: 0;
    color: var(--dc-contact-navy);
    font-size: 16px;
    line-height: 1.45;
    font-weight: 400;
    overflow-wrap: anywhere;
}

.dc-contact-info__content strong {
    font-weight: 700;
}

.dc-contact-info__content a {
    color: inherit;
    text-decoration: none;
}

.dc-contact-info__content a:hover,
.dc-contact-info__content a:focus-visible {
    text-decoration: underline;
}

.dc-contact-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.dc-contact-social__link {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eff1f4;
    border-radius: 50%;
    background: #fff;
    color: var(--dc-social-icon-color, var(--dc-contact-blue));
    text-decoration: none;
    font-size: 15px;
    line-height: 1;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.dc-contact-social__link:hover,
.dc-contact-social__link:focus-visible {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, currentColor 24%, #eff1f4);
    box-shadow: 0 6px 20px rgba(1, 17, 57, 0.09);
    outline: none;
}

.dc-contact-support {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid #e9ebef;
}

.dc-contact-support__title {
    margin: 0;
    color: #222222;
    font-size: 40px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.dc-contact-support__description {
    margin: 8px 0 25px;
    color: #5b5b5b;
    font-size: 18px;
    line-height: 1.5;
}

.dc-contact-form-embed {
    width: 100%;
    min-width: 0;
}

.dc-contact-form-embed > :first-child {
    margin-top: 0;
}

.dc-contact-form-embed > :last-child {
    margin-bottom: 0;
}

.dc-contact-form-embed--empty {
    padding: 16px;
    border: 1px dashed #c9ced6;
    border-radius: 10px;
    background: #f7f8fa;
    color: #616975;
    font-size: 14px;
    line-height: 1.5;
}


/* Elementor Pro Form rendered through shortcode. Form logic remains owned by Elementor Pro. */
.dc-contact-company .dc-contact-form-embed {
    --dc-form-row-gap: 20px;
    --dc-form-column-gap: 24px;
    --dc-form-label-gap: 8px;
    --dc-form-label-color: #011139;
    --dc-form-label-align: left;
    --dc-form-required-gap: 4px;
    --dc-form-field-height: 48px;
    --dc-form-textarea-height: 100px;
    --dc-form-textarea-resize: vertical;
    --dc-form-field-padding-top: 11px;
    --dc-form-field-padding-right: 12px;
    --dc-form-field-padding-bottom: 11px;
    --dc-form-field-padding-left: 12px;
    --dc-form-field-radius: 12px;
    --dc-form-field-border-width: 1px;
    --dc-form-field-text: #011139;
    --dc-form-field-align: left;
    --dc-form-placeholder: #b8b8b8;
    --dc-form-field-bg: #fff;
    --dc-form-field-border: #eeeeee;
    --dc-form-field-focus-border: #0059ab;
    --dc-form-field-focus-ring: rgba(0, 89, 171, 0.12);
    --dc-form-field-error-border: #ff1d1d;
    --dc-form-required: #ff1d1d;
    --dc-form-message-success: #138a4b;
    --dc-form-message-error: #c81e2a;
    --dc-form-message-gap: 8px;
    --dc-form-button-text: #0059ab;
    --dc-form-button-bg: #fff;
    --dc-form-button-border: #0059ab;
    --dc-form-button-border-width: 1px;
    --dc-form-button-hover-text: #fff;
    --dc-form-button-hover-bg: #0059ab;
    --dc-form-button-hover-border: #0059ab;
    --dc-form-button-icon-bg: #0059ab;
    --dc-form-button-icon: #fff;
    --dc-form-button-hover-icon-bg: #fff;
    --dc-form-button-hover-icon: #0059ab;
    --dc-form-button-radius: 24px;
    --dc-form-button-width: 159px;
    --dc-form-button-height: 48px;
    --dc-form-button-align: flex-start;
    --dc-form-button-padding-top: 7px;
    --dc-form-button-padding-right: 7px;
    --dc-form-button-padding-bottom: 7px;
    --dc-form-button-padding-left: 24px;
    --dc-form-button-icon-size: 32px;
    --dc-form-button-icon-glyph-size: 12px;
    --dc-form-button-icon-gap: 10px;
}

.dc-contact-company .dc-contact-form-embed .elementor-widget-form,
.dc-contact-company .dc-contact-form-embed .elementor-widget-form > .elementor-widget-container,
.dc-contact-company .dc-contact-form-embed .elementor-form {
    width: 100%;
    max-width: 100% !important;
    margin: 0;
}

.dc-contact-company .dc-contact-form-embed .elementor-form .elementor-form-fields-wrapper {
    width: calc(100% + var(--dc-form-column-gap)) !important;
    margin-right: calc(var(--dc-form-column-gap) / -2) !important;
    margin-left: calc(var(--dc-form-column-gap) / -2) !important;
    gap: 0 !important;
    row-gap: 0 !important;
    column-gap: 0 !important;
}

.dc-contact-company .dc-contact-form-embed .elementor-form .elementor-field-group {
    min-width: 0;
    margin-top: 0 !important;
    margin-bottom: var(--dc-form-row-gap) !important;
    padding-right: calc(var(--dc-form-column-gap) / 2) !important;
    padding-left: calc(var(--dc-form-column-gap) / 2) !important;
}

.dc-contact-company .dc-contact-form-embed .elementor-form .elementor-field-group > .elementor-field-label {
    display: block !important;
    width: 100% !important;
    margin: 0 0 var(--dc-form-label-gap) !important;
    padding: 0 !important;
    color: var(--dc-form-label-color) !important;
    text-align: var(--dc-form-label-align) !important;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 600;
}

/* The design requires visible labels even when the source Form template hides them. */
.dc-contact-company .dc-contact-form-embed--force-labels .elementor-form .elementor-field-group > .elementor-field-label.elementor-screen-only {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 0 var(--dc-form-label-gap) !important;
    padding: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    white-space: normal !important;
    border: 0 !important;
}

/* Use Elementor's field-required class; no :has() scan and no JS DOM observer. */
.dc-contact-company .dc-contact-form-embed--auto-required .elementor-form .elementor-field-group.elementor-field-required > .elementor-field-label::after {
    content: "*" !important;
    display: inline;
    padding-left: var(--dc-form-required-gap) !important;
    color: var(--dc-form-required) !important;
    font: inherit;
}

.dc-contact-company .dc-contact-form-embed--auto-required .elementor-form .elementor-field-group:not(.elementor-field-required) > .elementor-field-label::after {
    content: none !important;
}

.dc-contact-company .dc-contact-form-embed .elementor-form .elementor-required {
    color: var(--dc-form-required) !important;
}

.dc-contact-company .dc-contact-form-embed .elementor-form input.elementor-field:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.dc-contact-company .dc-contact-form-embed .elementor-form select.elementor-field,
.dc-contact-company .dc-contact-form-embed .elementor-form textarea.elementor-field {
    width: 100% !important;
    max-width: 100% !important;
    min-height: var(--dc-form-field-height) !important;
    margin: 0 !important;
    padding: var(--dc-form-field-padding-top) var(--dc-form-field-padding-right) var(--dc-form-field-padding-bottom) var(--dc-form-field-padding-left) !important;
    border-width: var(--dc-form-field-border-width) !important;
    border-style: solid !important;
    border-color: var(--dc-form-field-border) !important;
    border-radius: var(--dc-form-field-radius) !important;
    outline: none !important;
    background: var(--dc-form-field-bg) !important;
    color: var(--dc-form-field-text) !important;
    text-align: var(--dc-form-field-align) !important;
    box-shadow: none !important;
    font-size: 16px;
    line-height: 1.4;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.dc-contact-company .dc-contact-form-embed .elementor-form input.elementor-field:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.dc-contact-company .dc-contact-form-embed .elementor-form select.elementor-field {
    height: var(--dc-form-field-height) !important;
}

.dc-contact-company .dc-contact-form-embed .elementor-form textarea.elementor-field {
    min-height: var(--dc-form-textarea-height) !important;
    height: var(--dc-form-textarea-height) !important;
    resize: var(--dc-form-textarea-resize) !important;
}

.dc-contact-company .dc-contact-form-embed .elementor-form input.elementor-field::placeholder,
.dc-contact-company .dc-contact-form-embed .elementor-form textarea.elementor-field::placeholder {
    color: var(--dc-form-placeholder) !important;
    opacity: 1 !important;
}

.dc-contact-company .dc-contact-form-embed .elementor-form input.elementor-field:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
.dc-contact-company .dc-contact-form-embed .elementor-form select.elementor-field:focus,
.dc-contact-company .dc-contact-form-embed .elementor-form textarea.elementor-field:focus {
    border-color: var(--dc-form-field-focus-border) !important;
    box-shadow: 0 0 0 2px var(--dc-form-field-focus-ring) !important;
}

.dc-contact-company .dc-contact-form-embed .elementor-form .elementor-field.elementor-error,
.dc-contact-company .dc-contact-form-embed .elementor-form .elementor-field[aria-invalid="true"] {
    border-color: var(--dc-form-field-error-border) !important;
}

.dc-contact-company .dc-contact-form-embed .elementor-form .elementor-field-type-submit,
.dc-contact-company .dc-contact-form-embed .elementor-form .e-form__buttons,
.dc-contact-company .dc-contact-form-embed .elementor-form .e-form__buttons__wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 0 !important;
    justify-content: var(--dc-form-button-align) !important;
    align-items: center !important;
}

/* Reference button is 159x48px. Only the button sizing needs important to beat Elementor generated flex width. */
.dc-contact-company .dc-contact-form-embed .elementor-form .elementor-button[type="submit"] {
    position: relative;
    box-sizing: border-box;
    width: var(--dc-form-button-width) !important;
    min-width: var(--dc-form-button-width) !important;
    min-height: var(--dc-form-button-height) !important;
    height: var(--dc-form-button-height) !important;
    max-width: 100% !important;
    flex: 0 0 var(--dc-form-button-width) !important;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    padding: var(--dc-form-button-padding-top) var(--dc-form-button-padding-right) var(--dc-form-button-padding-bottom) var(--dc-form-button-padding-left) !important;
    border: var(--dc-form-button-border-width) solid var(--dc-form-button-border) !important;
    border-radius: var(--dc-form-button-radius) !important;
    background: var(--dc-form-button-bg) !important;
    color: var(--dc-form-button-text) !important;
    box-shadow: none !important;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.dc-contact-company .dc-contact-form-embed .elementor-form .elementor-button[type="submit"] .elementor-button-content-wrapper {
    position: relative;
    z-index: 3;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    color: inherit;
}

.dc-contact-company .dc-contact-form-embed .elementor-form .elementor-button[type="submit"] .elementor-button-text {
    display: block;
    color: inherit !important;
    font: inherit;
    line-height: inherit;
    white-space: nowrap;
}

/*
 * Reference mode owns the visual label as well as the icon. Elementor can output
 * a submit wrapper without .elementor-button-text, so relying on an empty text
 * node made both the label and its color control unreliable. Keep the native
 * submit button/behavior, but render the configured label on the stable wrapper.
 */
.dc-contact-company .dc-contact-form-embed--reference-icon .elementor-form .elementor-button[type="submit"] .elementor-button-text {
    display: none !important;
}

.dc-contact-company .dc-contact-form-embed--reference-icon .elementor-form .elementor-button[type="submit"] .elementor-button-content-wrapper::before {
    content: var(--dc-form-submit-label, "Gửi liên hệ");
    display: block;
    color: var(--dc-form-button-text) !important;
    font: inherit;
    line-height: inherit;
    white-space: nowrap;
    transition: color 160ms ease;
}

.dc-contact-company .dc-contact-form-embed--reference-icon .elementor-form .elementor-button[type="submit"]:hover .elementor-button-content-wrapper::before,
.dc-contact-company .dc-contact-form-embed--reference-icon .elementor-form .elementor-button[type="submit"]:focus-visible .elementor-button-content-wrapper::before {
    color: var(--dc-form-button-hover-text) !important;
}

/* Pure CSS reference icon: no MutationObserver, no repeated DOM scanning. */
.dc-contact-company .dc-contact-form-embed--reference-icon .elementor-form .elementor-button[type="submit"] {
    padding-right: calc(var(--dc-form-button-padding-right) + var(--dc-form-button-icon-size) + var(--dc-form-button-icon-gap)) !important;
}

.dc-contact-company .dc-contact-form-embed--reference-icon .elementor-form .elementor-button[type="submit"] .elementor-button-icon {
    display: none !important;
}

.dc-contact-company .dc-contact-form-embed--reference-icon .elementor-form .elementor-button[type="submit"]::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: 50%;
    right: var(--dc-form-button-padding-right);
    width: var(--dc-form-button-icon-size);
    height: var(--dc-form-button-icon-size);
    border-radius: 50%;
    background: var(--dc-form-button-icon-bg);
    transform: translateY(-50%);
    pointer-events: none;
    transition: background-color 160ms ease;
}

.dc-contact-company .dc-contact-form-embed--reference-icon .elementor-form .elementor-button[type="submit"]::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 50%;
    right: var(--dc-form-button-padding-right);
    width: var(--dc-form-button-icon-size);
    height: var(--dc-form-button-icon-size);
    background: var(--dc-form-button-icon);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 11L11 1M1 1H11V11' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / var(--dc-form-button-icon-glyph-size) var(--dc-form-button-icon-glyph-size) no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 11L11 1M1 1H11V11' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / var(--dc-form-button-icon-glyph-size) var(--dc-form-button-icon-glyph-size) no-repeat;
    transform: translateY(-50%);
    pointer-events: none;
    transition: background-color 160ms ease;
}

.dc-contact-company .dc-contact-form-embed .elementor-form .elementor-button[type="submit"]:hover,
.dc-contact-company .dc-contact-form-embed .elementor-form .elementor-button[type="submit"]:focus-visible {
    border-color: var(--dc-form-button-hover-border) !important;
    background: var(--dc-form-button-hover-bg) !important;
    color: var(--dc-form-button-hover-text) !important;
}

.dc-contact-company .dc-contact-form-embed--reference-icon .elementor-form .elementor-button[type="submit"]:hover::after,
.dc-contact-company .dc-contact-form-embed--reference-icon .elementor-form .elementor-button[type="submit"]:focus-visible::after {
    background: var(--dc-form-button-hover-icon-bg);
}

.dc-contact-company .dc-contact-form-embed--reference-icon .elementor-form .elementor-button[type="submit"]:hover::before,
.dc-contact-company .dc-contact-form-embed--reference-icon .elementor-form .elementor-button[type="submit"]:focus-visible::before {
    background: var(--dc-form-button-hover-icon);
}

.dc-contact-company .dc-contact-form-embed .elementor-form .elementor-button[type="submit"]:focus-visible {
    outline: 2px solid var(--dc-form-field-focus-ring);
    outline-offset: 2px;
}

.dc-contact-company .dc-contact-form-embed .elementor-form .elementor-button[type="submit"]:disabled,
.dc-contact-company .dc-contact-form-embed .elementor-form .elementor-button[type="submit"].elementor-button-disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

/* Native Elementor icon styling when the reference icon switch is disabled. */
.dc-contact-company .dc-contact-form-embed:not(.dc-contact-form-embed--reference-icon) .elementor-form .elementor-button[type="submit"] .elementor-button-icon {
    width: var(--dc-form-button-icon-size);
    height: var(--dc-form-button-icon-size);
    flex: 0 0 var(--dc-form-button-icon-size);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--dc-form-button-icon-bg);
    color: var(--dc-form-button-icon);
}

.dc-contact-company .dc-contact-form-embed:not(.dc-contact-form-embed--reference-icon) .elementor-form .elementor-button[type="submit"] .elementor-align-icon-right {
    margin-right: 0;
    margin-left: var(--dc-form-button-icon-gap);
}

.dc-contact-company .dc-contact-form-embed:not(.dc-contact-form-embed--reference-icon) .elementor-form .elementor-button[type="submit"] .elementor-align-icon-left {
    margin-right: var(--dc-form-button-icon-gap);
    margin-left: 0;
}

.dc-contact-company .dc-contact-form-embed:not(.dc-contact-form-embed--reference-icon) .elementor-form .elementor-button[type="submit"]:hover .elementor-button-icon,
.dc-contact-company .dc-contact-form-embed:not(.dc-contact-form-embed--reference-icon) .elementor-form .elementor-button[type="submit"]:focus-visible .elementor-button-icon {
    background: var(--dc-form-button-hover-icon-bg);
    color: var(--dc-form-button-hover-icon);
}

.dc-contact-company .dc-contact-form-embed .elementor-form .elementor-message,
.dc-contact-company .dc-contact-form-embed .elementor-form .elementor-help-inline {
    margin-top: var(--dc-form-message-gap) !important;
    font-size: 13px;
    line-height: 1.45;
}

.dc-contact-company .dc-contact-form-embed .elementor-form .elementor-message-success {
    color: var(--dc-form-message-success) !important;
}

.dc-contact-company .dc-contact-form-embed .elementor-form .elementor-message-danger,
.dc-contact-company .dc-contact-form-embed .elementor-form .elementor-message-error,
.dc-contact-company .dc-contact-form-embed .elementor-form .elementor-help-inline {
    color: var(--dc-form-message-error) !important;
}

@media (max-width: 1024px) {
    .dc-contact-company {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .dc-contact-map {
        height: 520px;
    }

    .dc-contact-company__title {
        font-size: clamp(30px, 5vw, 38px);
    }
}

@media (max-width: 767px) {
    .dc-contact-company {
        gap: 28px;
    }

    .dc-contact-map {
        height: 360px;
        border-radius: 18px;
    }

    .dc-contact-badge {
        min-height: 36px;
    }

    .dc-contact-company__title {
        margin: 18px 0 20px;
        font-size: clamp(28px, 8vw, 34px);
        line-height: 1.2;
    }

    .dc-contact-info__content {
        font-size: 15px;
    }

    .dc-contact-social__link {
        width: 40px;
        height: 40px;
    }

    .dc-contact-support {
        margin-top: 26px;
        padding-top: 26px;
    }

    .dc-contact-support__title {
        font-size: 32px;
        line-height: 1.2;
    }

    .dc-contact-support__description {
        margin-bottom: 20px;
    }

    .dc-contact-company .dc-contact-form-embed .elementor-form .elementor-form-fields-wrapper {
        width: 100% !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .dc-contact-company .dc-contact-form-embed .elementor-form .elementor-field-group.elementor-column,
    .dc-contact-company .dc-contact-form-embed .elementor-form .elementor-field-group[class*="elementor-col-"] {
        width: 100% !important;
        max-width: 100% !important;
        flex-basis: 100% !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .dc-contact-company .dc-contact-form-embed .elementor-form .elementor-button[type="submit"] {
        min-height: var(--dc-form-button-height) !important;
    }

}

@media (prefers-reduced-motion: reduce) {
    .dc-contact-social__link,
    .dc-contact-company .dc-contact-form-embed .elementor-form input.elementor-field,
    .dc-contact-company .dc-contact-form-embed .elementor-form select.elementor-field,
    .dc-contact-company .dc-contact-form-embed .elementor-form textarea.elementor-field,
    .dc-contact-company .dc-contact-form-embed .elementor-form .elementor-button[type="submit"] {
        transition: none;
    }
}

