/* NEW ANIMATIONS */
:root {
    --slide-distance: 40px;
    --slide-duration: 1500ms;
    --slide-ease: cubic-bezier(.2, .9, .2, 1);
}

/* common styles for items that will animate */
.animate-on-scroll {
    opacity: 0;
    transform: translateX(0) translateY(0);
    transition-property: opacity, transform;
    transition-duration: var(--slide-duration);
    transition-timing-function: var(--slide-ease);
    will-change: transform, opacity;
}

/* initial offsets based on direction */
.animate-on-scroll[data-direction="left"] {
    transform: translateX(calc(-1 * var(--slide-distance)));
}

.animate-on-scroll[data-direction="right"] {
    transform: translateX(var(--slide-distance));
}

.animate-on-scroll[data-direction="up"] {
    transform: translateY(calc(-1 * var(--slide-distance)));
}

.animate-on-scroll[data-direction="down"] {
    transform: translateY(var(--slide-distance));
}

/* when element becomes visible */
.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/* ----- Animation Items ------ */
.anim-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.anim-item.show {
    opacity: 1;
    transform: translateY(0);
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        transition: none;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* NEW ANIMATIONS END */


/* ========= SECTION BACKGROUND ========= */
.contact-section {
    position: relative;
    padding: 10rem 8rem 4rem;
    font-size: 1.4rem;
    color: #020617;
    overflow: hidden;
    background: #ffffff;
    /* pure white */
}

/* keep content centered and not too wide */
.contact-section .container-fluid {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

/* ========= LEFT COLUMN ========= */
.contact-left {
    padding: 0rem 2rem 2rem 2rem;
    /* animation: fadeInRight 0.8s ease-out forwards; */
}

.contact-left__title {
    font-weight: 700;
    font-size: 5rem;
    margin-bottom: 1.4rem;
    letter-spacing: 0.04rem;
    color: #020617;
}

.contact-left__title::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    border-radius: 999px;
    margin-top: 1rem;
    background-color: #cc5500;
    /* background: linear-gradient(135deg, #0279d3, #61adf4); */
}

.contact-left__lead {
    font-size: 2rem;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 1rem;
    max-width: 88%;
}

.contact-left__small {
    font-size: 1.2rem;
    line-height: 1.8rem;
    color: #6b7280;
    margin-bottom: 1.2rem;
    max-width: 40rem;
}

/* Call button */
.contact-left__phone {
    background: linear-gradient(135deg, #0279d3 0%, #61adf4 100%);
    color: white;
    padding: 12px 28px;
    font-size: 1.6rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.8rem;
}

.contact-left__phone:hover {
    background-color: #166e7b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 137, 153, 0.3);
}

.contact-left__phone:active {
    transform: translateY(0);
    box-shadow: 0 8px 20px rgba(2, 121, 211, 0.24);
}

/* ========= CONTACT INFO BLOCKS ========= */
/* Wrapper (optional, for future if you wrap them) */
.contact-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    padding: 1.4rem 0 0;
    flex-wrap: nowrap;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.4rem;
    padding: 1.4rem 0;
    border-radius: 16px;
}

.contact-info-icon {
    min-width: 52px;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    /* background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.1)), linear-gradient(135deg, #0279d3, #61adf4); */
    background: linear-gradient(135deg, #0279d3 0%, #61adf4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
}

.contact-info-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Details text */
.contact-info-details h3 {
    margin: 0 0 6px 0;
    font-size: 2rem;
    font-weight: 600;
    color: #020617;
}

.contact-info-details p {
    margin: 0;
    font-size: 1.8rem;
    color: #4b5563;
    line-height: 1.5;
}

.contact-info-email {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.contact-info-email:hover {
    color: #020617;
}

/* ========= RIGHT COLUMN â€“ CARD ========= */
.contact-card-outer {
    padding: 1.2rem;
}

.contact-card {
    background: transparent;
    border: none;
    padding: 0;
}

.contact-card__inner {
    background: rgba(255, 255, 255, 0.96);
    padding: 2rem 2.4rem 2.4rem;
    border-radius: 1.8rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: translateY(0);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-card__inner:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 55px rgba(15, 23, 42, 0.22);
}

/* ========= FORM ELEMENTS ========= */
.contact-form .form-group {
    margin-bottom: 1.6rem;
}

.contact-form .form-control {
    height: 4.4rem;
    border-radius: 0.8rem;
    border: 1px solid #e2e8f0;
    box-shadow: none;
    font-size: 1.5rem;
    padding: 0.9rem 1.1rem;
    background-color: #f9fafb;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, transform 0.12s ease;
}

.contact-form textarea.form-control {
    min-height: 11rem;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    resize: vertical;
    font-size: 1.5rem;
}

.contact-form .form-control::placeholder {
    color: #9ca3af;
}

.contact-form .form-control:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #0279d3;
    box-shadow: 0 0 0 1px rgba(2, 121, 211, 0.32), 0 8px 22px rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
}

.contact-form label {
    font-size: 1.1rem;
    color: #4b5563;
}

/* If you re-enable icon input groups */
.contact-form .input-group-addon {
    background: #f9fafb;
    border: 1px solid #e2e8f0;
    border-right: none;
    border-radius: 0.8rem 0 0 0.8rem;
    min-width: 3.4rem;
    text-align: center;
    padding: 0.65rem 0.75rem;
    color: #9aa0a6;
    font-size: 1.125rem;
}

.contact-form .input-icon-left .form-control {
    border-left: none;
    border-radius: 0 0.8rem 0.8rem 0;
}

/* Checkbox copy */
.sms-text {
    font-size: 1.35rem;
    color: #6b7280;
    display: inline-block;
    line-height: 1.6rem;
    vertical-align: middle;
    margin-left: 0.6rem;
}

/* Privacy link row */
.contact-card__privacy {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.4rem;
}

.contact-card__privacy a {
    text-decoration: none;
    font-weight: 500;
    font-size: 1.3rem;
    color: #64748b;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-card__privacy a:hover {
    color: #0279d3;
    border-color: rgba(2, 121, 211, 0.7);
}

/* Center aligned button wrapper */
.contact-form__actions {
    text-align: center;
    margin-top: 1rem;
}

.contact-form .btn-submit {
    background: linear-gradient(135deg, #0279d3 0%, #61adf4 100%);
    color: white;
    padding: 10px 20px;
    font-size: 1.4rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.2rem;
}

.contact-form .btn-submit:hover {
    background-color: #166e7b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 137, 153, 0.3);
}

.contact-form .btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 8px 20px rgba(2, 121, 211, 0.24);
}

/* SUCCESS message */
.contact-form__success {
    display: none;
    margin-top: 1rem;
    font-size: 1.2rem;
    color: #16a34a;
}

/* ========= ERROR STATES ========= */
.contact-form .error-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 1.05rem;
    color: #dc2626;
}

.contact-form .has-error .form-control {
    border-color: #dc2626 !important;
    box-shadow: none;
    background-color: #fef2f2;
}

.contact-form .has-error .input-group-addon {
    border-color: #dc2626 !important;
    color: #dc2626 !important;
    background-clip: padding-box;
}

.contact-form .has-error.input-icon-left .form-control,
.contact-form .has-error .input-icon-left .form-control {
    border-left: 1px solid #dc2626 !important;
    border-color: #dc2626 !important;
}

/* ========= ANIMATIONS ========= */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(40px, 10px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* ========= RESPONSIVE ========= */
@media (max-width: 1199px) {
    .contact-section {
        padding: 8rem 6rem 3rem;
    }

    .contact-left__title {
        font-size: 4.2rem;
    }
}

@media (max-width: 991px) {
    .contact-section {
        padding: 7rem 4rem 3rem;
    }

    .contact-left {
        padding: 2rem 2rem 3rem 2rem;
    }

    .contact-left__title {
        font-size: 3rem;
    }

    .contact-left__lead {
        font-size: 1.6rem;
        max-width: 100%;
    }

    .contact-card__inner {
        padding: 1.6rem 1.8rem 2.2rem;
    }

    .contact-form .form-control {
        height: 3.8rem;
        font-size: 1.15rem;
        padding: 0.7rem 0.9rem;
    }

    .contact-form textarea.form-control {
        min-height: 9.5rem;
    }

    .contact-form .btn-submit {
        padding: 0.9rem 1.6rem;
        font-size: 1.1rem;
    }

    .contact-left__phone {
        padding: 10px 26px;
        font-size: 1.3rem;
    }
}

@media (max-width: 767px) {
    .contact-section {
        padding: 6.5rem 2.4rem 2.8rem;
    }

    .contact-left__title {
        font-size: 2.8rem;
    }

    .contact-left__lead {
        font-size: 1.5rem;
    }

    .contact-info-item {
        padding: 1.1rem 0;
    }

    .contact-card__inner {
        padding: 1.4rem 1.5rem 2rem;
        border-radius: 1.4rem;
    }

    .contact-form .form-control {
        height: 3.6rem;
        font-size: 1.1rem;
    }

    .contact-form textarea.form-control {
        min-height: 8.5rem;
        font-size: 1.1rem;
    }

    .contact-left__phone {
        margin-top: 1.4rem;
    }

    .sms-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 6rem 1.6rem 2.4rem;
    }

    .contact-left__title {
        font-size: 2.4rem;
    }

    .contact-left__lead {
        font-size: 1.4rem;
    }

    .contact-info-details h3 {
        font-size: 1.8rem;
    }

    .contact-info-details p {
        font-size: 1.5rem;
    }

    .contact-form .form-control {
        height: 3.2rem;
        font-size: 1.05rem;
    }

    .contact-form textarea.form-control {
        min-height: 7.5rem;
        font-size: 1.05rem;
    }

    .contact-form .btn-submit {
        padding: 0.8rem 2rem;
        font-size: 1.05rem;
    }

    .contact-card__privacy a {
        font-size: 1.1rem;
    }
}