* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Poppins", Arial, sans-serif;
    background: #f4f8fc;
    color: #1b2530;
    overflow-x: hidden;
}

.navbar-top {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    z-index: 1050;
}

.nav-contact {
    background: #004a72;
    color: #ffffff;
    padding: 4px 0;
    font-size: 18px;
}

.nav-contact .nav-contact-div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.nav-contact a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

.nav-contact .bi {
    margin-right: 6px;
}

.navbar {
    background: #ffffff;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    min-height: 76px;
}

.navbar .navbar-brand.tm-logo-header {
    width: 240px !important;
    height: auto !important;
    max-height: 62px;
    object-fit: contain !important;
    object-position: center center !important;
    display: block;
}

.navbar .nav-link,
.navbar .btn.btn-secondary {
    font-size: 15px;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    color: #1f2833;
    font-weight: 700;
}

.navbar .dropdown-toggle {
    border: 0;
    background: transparent;
}

.navbar .navbar-nav {
    align-items: center;
}

.tm-nav-collapse {
    flex-grow: 0.5;
    justify-content: space-between;
}

.navbar .navbar-contact {
    background: transparent !important;
    color: #000000 !important;
    border: 1px solid #000 !important;
    border-radius: 28px;
    padding: 5px 5px 5px 15px !important;
    font-weight: 600;
    gap: 10px !important;
}

.navbar .navbar-contact i {
    color: #000000 !important;
    background: transparent !important;
}

.contact-main {
    padding-top: 160px;
    padding-bottom: 40px;
    padding-left: clamp(12px, 3vw, 24px);
    padding-right: clamp(12px, 3vw, 24px);
}

.contact-layout {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    min-width: 0;
}

.contact-left {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #dce5ef;
    overflow: hidden;
    min-width: 0;
}

.contact-info {
    padding: 24px 22px;
    background: #f1f2f4;
}

.info-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 14px;
    margin-bottom: 22px;
    align-items: start;
    min-width: 0;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #ffffff;
    color: #0b3f5f;
    font-size: 24px;
}

.info-item h4 {
    margin: 0 0 6px;
    font-size: 18px;
    letter-spacing: 0.3px;
    color: #0e2f46;
}

.info-item p,
.info-item a {
    margin: 0;
    font-size: 15px;
    color: #1f3242;
    line-height: 1.5;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.map-wrap iframe {
    width: 100%;
    height: 360px;
    border: 0;
    display: block;
}

.contact-right {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #dce5ef;
    padding: 26px 28px;
    min-width: 0;
}

.contact-right h1 {
    margin: 0 0 8px;
    font-size: clamp(30px, 4vw, 52px);
    color: #0a3858;
    line-height: 1.12;
}

.contact-right .intro {
    margin: 0 0 20px;
    color: #344455;
    font-size: 16px;
    line-height: 1.6;
    max-width: 640px;
}

.contact-form {
    position: relative;
}

.contact-form-status {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid transparent;
}

.contact-form-status.is-success {
    color: #0e4a2f;
    background: #e9f8ef;
    border-color: #9dd6b4;
}

.contact-form-status.is-error {
    color: #7f1d1d;
    background: #fff1f1;
    border-color: #f1b5b5;
}

.contact-hp {
    position: absolute;
    left: -99999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px 18px;
}

.field-full {
    grid-column: 1 / -1;
    min-width: 0;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    color: #222;
    font-weight: 500;
    font-size: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #d9d9d9;
    background: #ffffff;
    border-radius: 10px;
    padding: 16px 16px;
    font-size: 16px;
    color: #222;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.phone-field {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: stretch;
    border: 1px solid #d9d9d9;
    background: #ffffff;
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-width: 0;
}

.phone-field:focus-within,
.phone-field.is-open {
    border-color: #2d7cad;
    box-shadow: 0 0 0 3px rgba(45, 124, 173, 0.13);
}

.phone-field .country-picker-toggle,
.phone-field input {
    border: 0;
    background: transparent;
    box-shadow: none;
    min-width: 0;
}

.phone-field .country-picker-toggle:focus,
.phone-field input:focus {
    box-shadow: none;
}

.country-picker-toggle {
    min-width: 112px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 14px;
    border-right: 1px solid #d0d0d0;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.country-picker-flag {
    font-size: 28px;
    line-height: 1;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.country-picker-flag img,
.country-option-flag img {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
}

.country-picker-code {
    white-space: nowrap;
}

.country-picker-toggle .bi {
    font-size: 11px;
    color: #567086;
}

.phone-field input {
    padding: 16px 16px 16px 10px;
}

.country-picker-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: min(100%, 360px);
    max-height: 280px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #dce5ef;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(17, 45, 70, 0.14);
    padding: 8px;
    z-index: 20;
}

.country-option {
    width: 100%;
    border: 0;
    background: transparent;
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 10px;
    align-items: center;
    text-align: left;
    padding: 11px 12px;
    border-radius: 12px;
    color: #17354a;
    font-size: 15px;
}

.country-option-label {
    min-width: 0;
    overflow-wrap: anywhere;
}

.country-option:hover,
.country-option:focus {
    background: #eef5fb;
    outline: none;
}

.country-option-flag {
    font-size: 24px;
    line-height: 1;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.country-option-code {
    color: #6a8094;
    font-weight: 500;
    white-space: nowrap;
}

.contact-form textarea {
    border-radius: 18px;
    min-height: 220px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #2d7cad;
    box-shadow: 0 0 0 3px rgba(45, 124, 173, 0.13);
}

.contact-submit {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    margin-top: 24px;
    background: #074a9e;
    color: #ffffff;
    border: none;
    border-radius: 28px;
    font-weight: 700;
    font-size: 16px;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(7, 74, 158, 0.18);
}

.contact-submit:hover,
.contact-submit:focus-visible {
    background: #0d5fb6;
    transform: translateY(-1px);
    outline: none;
    box-shadow: 0 18px 36px rgba(7, 74, 158, 0.22);
}

.contact-submit:active {
    transform: translateY(0);
    box-shadow: 0 10px 24px rgba(7, 74, 158, 0.18);
}

@media (max-width: 1100px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .map-wrap iframe {
        height: 300px;
    }
}

@media (max-width: 991px) {
    .nav-contact {
        font-size: 14px;
    }

    .nav-contact .nav-contact-div {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .navbar .navbar-brand.tm-logo-header {
        width: 180px !important;
    }

    .navbar .nav-link,
    .navbar .btn.btn-secondary {
        font-size: 18px;
    }

    .contact-main {
        padding-top: 116px;
    }

    .contact-right {
        padding: 22px 16px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .country-picker-dropdown {
        width: 100%;
    }
}

@media (max-width: 1199.98px) {
    .navbar > .container {
        max-width: calc(100% - 24px);
        gap: 10px;
        flex-wrap: wrap;
        align-items: center;
    }

    .navbar > .container > a {
        margin-right: 0;
        min-width: 0;
    }

    .navbar .navbar-brand.tm-logo-header {
        width: 158px !important;
        max-height: 68px;
    }

    .navbar-toggler {
        flex: 0 0 auto;
        margin-left: auto;
        padding: 10px 13px;
    }

    .navbar .navbar-collapse {
        flex-basis: 100%;
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .contact-main {
        padding-top: 104px;
        padding-bottom: 28px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .contact-layout {
        gap: 16px;
    }

    .contact-info,
    .contact-right {
        padding: 18px 14px;
    }

    .contact-left,
    .contact-right {
        border-radius: 12px;
    }

    .info-item {
        grid-template-columns: 42px 1fr;
        gap: 10px;
    }

    .info-icon {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    .contact-right h1 {
        font-size: clamp(28px, 9vw, 38px);
    }

    .contact-form input,
    .contact-form textarea,
    .contact-form label,
    .contact-submit,
    .country-picker-toggle,
    .country-option {
        font-size: 16px !important;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 14px 12px;
    }

    .country-picker-toggle {
        min-width: 98px;
        gap: 6px;
        padding: 14px 10px;
    }

    .country-picker-flag {
        font-size: 22px;
    }

    .phone-field input {
        padding: 14px 10px;
    }

    .country-picker-dropdown {
        max-height: 240px;
        border-radius: 12px;
    }

    .map-wrap iframe {
        height: 240px;
    }

    .contact-submit {
        width: 100%;
        padding: 16px 18px;
        font-size: 15px !important;
        border-radius: 26px;
        min-height: 54px;
        box-shadow: 0 10px 26px rgba(7, 74, 158, 0.16);
    }

    footer .footer-padding {
        padding-block: 34px !important;
    }

    footer .footer-head h4,
    footer .footer-link h4,
    footer .footer-get h4 {
        font-size: 22px !important;
    }

    footer .footer-head p,
    footer .footer-link a,
    footer .footer-get a,
    footer .footer-get li {
        font-size: 16px !important;
        line-height: 1.55 !important;
    }

    footer .footer-get {
        text-align: left;
        width: 100%;
    }

    footer .footer-get h4 {
        text-align: center;
    }

    footer .footer-get ul {
        width: 100%;
        align-items: stretch !important;
    }

    footer .footer-get ul li {
        width: 100%;
        display: grid !important;
        grid-template-columns: 28px minmax(0, 1fr);
        align-items: start;
        justify-content: start;
        gap: 12px;
        text-align: left;
    }

    footer .footer-get ul li i {
        width: 28px;
        min-width: 28px;
        padding-top: 3px;
        text-align: center;
    }

    footer .footer-get ul li a,
    footer .footer-get ul li a[href^="tel:"] {
        display: block;
        min-width: 0;
        max-width: 100%;
        white-space: normal !important;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .tm-floating-actions {
        right: 10px;
        bottom: 74px;
        gap: 8px;
    }

    .tm-floating-actions__btn {
        width: 52px;
        height: 52px;
    }

    .tm-floating-actions__btn i {
        font-size: 24px;
    }
}
