/* ============================================================
   CONTACT PAGE
============================================================ */


/* ============================================================
   CONTACT INTRO
============================================================ */

.contact-intro {
    padding: 75px 0 55px;
    background: #ffffff;
}

.contact-intro-container {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
}

.contact-intro-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.contact-tag,
.contact-form .tag {
    display: inline-block;

    margin-bottom: 12px;

    color: var(--accent);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;
}

.contact-intro-content h1 {
    margin: 0 0 20px;

    color: var(--primary-dark);

    font-size: 42px;
    line-height: 1.3;
    font-weight: 700;
}

.contact-intro-content h1 span {
    color: var(--accent);
}

.contact-intro-content p {
    max-width: 800px;

    margin: 0 auto;

    color: var(--text-light, #555);

    font-size: 16px;
    line-height: 1.8;
}

.contact-intro-content p strong {
    color: var(--primary-dark);
}


/* ============================================================
   CONTACT INFORMATION SECTION
============================================================ */

.contact-info {
    padding: 80px 60px;

    background: #f8f9fc;
}


/* ============================================================
   CONTAINER
============================================================ */

.contact-container {
    width: min(1180px, 100%);

    margin: 0 auto;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 30px;
}


/* ============================================================
   CONTACT CARD
============================================================ */

.contact-card {
    position: relative;

    padding: 40px 25px;

    background: #ffffff;

    border-radius: 16px;

    text-align: center;

    overflow: hidden;

    border: 2px solid var(--primary);

    transition: 0.4s ease;

    cursor: pointer;

    z-index: 1;
}


/* ============================================================
   SLIDING BLUE BACKGROUND
============================================================ */

.contact-card::after {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 0%;
    height: 100%;

    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary-dark)
    );

    transition: 0.5s ease;

    z-index: -1;
}


/* ============================================================
   CARD HOVER
============================================================ */

.contact-card:hover::after {
    width: 100%;
}

.contact-card:hover {
    transform: translateY(-10px);

    border-color: var(--primary-dark);

    box-shadow:
        0 20px 50px rgba(13, 29, 70, 0.25);
}


/* ============================================================
   CARD ICON
============================================================ */

.contact-card .icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 20px;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    background: var(--accent);

    color: var(--white);

    font-size: 22px;

    transition: 0.4s ease;
}


/* ============================================================
   ICON HOVER
============================================================ */

.contact-card:hover .icon {
    background: #ffffff;

    color: var(--accent);

    transform: scale(1.1);
}


/* ============================================================
   CARD TITLE
============================================================ */

.contact-card h3 {
    margin: 0 0 10px;

    font-size: 18px;

    color: var(--primary);

    transition: 0.4s ease;
}


/* ============================================================
   CARD TEXT
============================================================ */

.contact-card p {
    margin: 0 0 7px;

    font-size: 14px;

    color: var(--text-light);

    line-height: 1.6;

    transition: 0.4s ease;
}

.contact-card p:last-child {
    margin-bottom: 0;
}

.contact-card p strong {
    color: var(--primary);
}


/* ============================================================
   CARD LINKS
============================================================ */

.contact-card a {
    color: var(--text-light);

    text-decoration: none;

    transition: 0.3s ease;
}

.contact-card a:hover {
    color: var(--accent);
}


/* ============================================================
   CARD HOVER TEXT
============================================================ */

.contact-card:hover h3,
.contact-card:hover p,
.contact-card:hover p strong,
.contact-card:hover a {
    color: #ffffff;
}


/* ============================================================
   CONTACT MAIN SECTION
============================================================ */

.contact-main {
    padding: 80px 60px;

    background: #f5f7f8;
}


/* ============================================================
   CONTACT WRAPPER
============================================================ */

.contact-wrapper {
    width: min(1180px, 100%);

    margin: 0 auto;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 40px;

    align-items: stretch;
}


/* ============================================================
   MAP + CTA WRAPPER
============================================================ */

.contact-map-wrapper {
    display: flex;

    flex-direction: column;

    gap: 25px;
}


/* ============================================================
   MAP
============================================================ */

.contact-map {
    width: 100%;

    height: 450px;

    border-radius: 12px;

    overflow: hidden;

    background: #ffffff;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.08);
}

.contact-map iframe {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;
}


/* ============================================================
   FREE CONSULTATION CTA
============================================================ */

.contact-office-cta {
    padding: 35px;

    background: #ffffff;

    border-radius: 12px;

    border: 1px solid #eeeeee;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-office-cta .contact-tag {
    margin-bottom: 10px;
}

.contact-office-cta h2 {
    margin: 0 0 15px;

    color: var(--primary-dark);

    font-size: 28px;

    line-height: 1.35;
}

.contact-office-cta h2 span {
    color: var(--accent);
}

.contact-office-cta p {
    margin: 0 0 22px;

    color: var(--text-light, #555);

    font-size: 14px;

    line-height: 1.75;
}


/* ============================================================
   GET STARTED BUTTON
============================================================ */

.contact-cta-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 13px 23px;

    border-radius: 30px;

    background: var(--accent);

    color: #ffffff;

    font-size: 14px;

    font-weight: 600;

    text-decoration: none;

    transition: all 0.3s ease;
}

.contact-cta-btn:hover {
    background: var(--primary);

    color: #ffffff;

    transform: translateY(-3px);

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.15);
}

.contact-cta-btn i {
    transition: 0.3s ease;
}

.contact-cta-btn:hover i {
    transform: translateX(4px);
}


/* ============================================================
   CONTACT FORM
============================================================ */

.contact-form {
    padding: 40px;

    background: #ffffff;

    border-radius: 12px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.05);
}


/* ============================================================
   FORM TAG
============================================================ */

.contact-form .tag {
    color: var(--accent);

    font-size: 12px;

    letter-spacing: 2px;
}


/* ============================================================
   FORM HEADING
============================================================ */

.contact-form h2 {
    margin: 10px 0 25px;

    color: var(--primary-dark);

    font-size: 32px;

    line-height: 1.3;
}

.contact-form h2 strong {
    color: var(--accent);
}


/* ============================================================
   FORM GRID
============================================================ */

.form-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;
}


/* ============================================================
   FORM GROUP
============================================================ */

.form-group {
    display: flex;

    flex-direction: column;

    margin-bottom: 12px;
}


/* ============================================================
   INPUTS
============================================================ */

.contact-form input,
.contact-form textarea {
    box-sizing: border-box;

    width: 100%;

    padding: 12px 14px;

    border-radius: 6px;

    border: 1px solid #dddddd;

    background: #ffffff;

    color: #333333;

    font-family: inherit;

    font-size: 14px;

    outline: none;

    transition: 0.3s ease;
}

.contact-form input {
    min-height: 46px;
}

.contact-form textarea {
    min-height: 120px;

    resize: none;
}


/* ============================================================
   PLACEHOLDER
============================================================ */

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999999;
}


/* ============================================================
   INPUT FOCUS
============================================================ */

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 2px rgba(0, 0, 0, 0.03);
}


/* ============================================================
   TEXTAREA
============================================================ */

.contact-form textarea {
    margin-top: 3px;
}


/* ============================================================
   ERROR MESSAGE
============================================================ */

.error {
    display: block;

    margin-top: 4px;

    color: #ff4d4d;

    font-size: 12px;

    line-height: 1.4;
}


/* ============================================================
   INPUT ERROR BORDER
============================================================ */

input.error-border,
textarea.error-border {
    border: 1px solid red !important;
}


/* ============================================================
   CAPTCHA
============================================================ */

.captcha {
    display: flex;

    align-items: center;

    gap: 10px;

    margin: 10px 0;

    flex-wrap: wrap;
}

#captchaQuestion {
    min-width: 75px;

    padding: 10px 12px;

    border-radius: 6px;

    background: #f4f5f7;

    color: var(--primary-dark);

    font-size: 14px;

    font-weight: 600;

    text-align: center;
}

.captcha input {
    width: 80px !important;

    min-height: 42px;
}

.captcha i {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    cursor: pointer;

    color: var(--primary);

    transition: 0.3s ease;
}

.captcha i:hover {
    color: var(--accent);

    transform: rotate(90deg);
}


/* ============================================================
   CAPTCHA ERROR
============================================================ */

.captcha .error {
    width: 100%;
}


/* ============================================================
   CONTACT BUTTON
============================================================ */

.contact-btn {
    position: relative;

    width: 100%;

    margin-top: 20px;

    min-height: 48px;

    padding: 12px 20px;

    border: none;

    border-radius: 30px;

    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary-dark)
    );

    color: #ffffff;

    font-family: inherit;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.3s ease;
}


/* ============================================================
   BUTTON HOVER
============================================================ */

.contact-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.1);
}


/* ============================================================
   BUTTON LOADER
============================================================ */

.btn-loader {
    display: none;

    width: 18px;
    height: 18px;

    margin: 0 auto;

    border: 2px solid rgba(255, 255, 255, 0.4);

    border-top-color: #ffffff;

    border-radius: 50%;

    animation: contactLoader 0.7s linear infinite;
}

.contact-btn.loading .btn-text {
    display: none;
}

.contact-btn.loading .btn-loader {
    display: block;
}

@keyframes contactLoader {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


/* ============================================================
   SUCCESS MESSAGE
============================================================ */

.success-message {
    display: none;

    margin-top: 10px;

    padding: 10px;

    border-radius: 6px;

    background: #eef9f0;

    color: #237a35;

    font-size: 14px;

    line-height: 1.5;

    text-align: center;
}

.success-message.show {
    display: block;
}


/* ============================================================
   SOCIAL MEDIA SECTION
============================================================ */

.contact-social {
    padding: 80px 0;

    background: #ffffff;
}

.contact-social-container {
    width: min(900px, calc(100% - 40px));

    margin: 0 auto;

    text-align: center;
}

.contact-social-container h2 {
    margin: 0 0 15px;

    color: var(--primary-dark);

    font-size: 38px;

    line-height: 1.3;
}

.contact-social-container h2 span {
    color: var(--accent);
}

.contact-social-container p {
    max-width: 720px;

    margin: 0 auto 30px;

    color: var(--text-light, #555);

    font-size: 15px;

    line-height: 1.75;
}


/* ============================================================
   SOCIAL LINKS
============================================================ */

.social-links {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 15px;

    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    min-width: 145px;

    padding: 13px 20px;

    border: 1px solid #eeeeee;

    border-radius: 8px;

    background: #ffffff;

    color: var(--primary-dark);

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    transition: all 0.3s ease;
}

.social-links a i {
    font-size: 18px;
}

.social-links a:hover {
    background: var(--primary);

    color: #ffffff;

    border-color: var(--primary);

    transform: translateY(-3px);

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.1);
}



/* ============================================================
   TABLET — 992px
============================================================ */

@media (max-width: 992px) {

    .contact-info {
        padding: 65px 40px;
    }

    .contact-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-main {
        padding: 70px 40px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .contact-map {
        height: 400px;
    }

}


/* ============================================================
   MOBILE — 768px
============================================================ */

@media (max-width: 768px) {

    .contact-intro {
        padding: 60px 0 40px;
    }

    .contact-intro-container {
        width: calc(100% - 30px);
    }

    .contact-intro-content h1 {
        font-size: 34px;
    }

    .contact-intro-content p {
        font-size: 15px;
    }

    .contact-info {
        padding: 50px 20px;
    }

    .contact-container {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .contact-card {
        padding: 30px 20px;
    }

    .contact-main {
        padding: 50px 20px;
    }

    .contact-wrapper {
        gap: 25px;
    }

    .contact-map {
        height: 350px;
    }

    .contact-office-cta {
        padding: 30px 25px;
    }

    .contact-form {
        padding: 30px 25px;
    }

    .contact-form h2 {
        font-size: 28px;
    }

    .contact-social {
        padding: 60px 0;
    }

    .contact-social-container {
        width: calc(100% - 30px);
    }

    .contact-social-container h2 {
        font-size: 32px;
    }

    

}


/* ============================================================
   SMALL MOBILE — 600px
============================================================ */

@media (max-width: 600px) {

    .contact-intro {
        padding: 50px 0 35px;
    }

    .contact-intro-content h1 {
        font-size: 28px;
    }

    .contact-intro-content p {
        font-size: 14px;

        line-height: 1.7;
    }

    .contact-card {
        padding: 30px 18px;
    }

    .contact-card .icon {
        width: 60px;
        height: 60px;

        font-size: 20px;
    }

    .contact-map {
        height: 300px;
    }

    .contact-office-cta {
        padding: 28px 20px;

        text-align: center;
    }

    .contact-office-cta h2 {
        font-size: 24px;
    }

    .contact-office-cta p {
        font-size: 14px;
    }

    .contact-cta-btn {
        width: 100%;

        box-sizing: border-box;
    }

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

        gap: 0;
    }

    .contact-form {
        padding: 25px 20px;
    }

    .contact-form h2 {
        font-size: 25px;
    }

    .captcha {
        align-items: center;
    }

    .captcha input {
        flex: 1;

        width: auto !important;

        min-width: 100px;
    }

    .contact-social {
        padding: 50px 0;
    }

    .contact-social-container h2 {
        font-size: 27px;
    }

    .contact-social-container p {
        font-size: 14px;
    }

    .social-links {
        flex-direction: column;

        width: 100%;
    }

    .social-links a {
        width: 100%;

        box-sizing: border-box;
    }

}


/* ============================================================
   EXTRA SMALL MOBILE — 400px
============================================================ */

@media (max-width: 400px) {

    .contact-intro-container,
    .contact-social-container {
        width: calc(100% - 24px);
    }

    .contact-intro-content h1 {
        font-size: 25px;
    }

    .contact-intro-content p {
        font-size: 13.5px;
    }

    .contact-info {
        padding: 45px 15px;
    }

    .contact-card h3 {
        font-size: 17px;
    }

    .contact-card p {
        font-size: 13px;
    }

    .contact-main {
        padding: 45px 15px;
    }

    .contact-map {
        height: 270px;
    }

    .contact-office-cta {
        padding: 25px 18px;
    }

    .contact-office-cta h2 {
        font-size: 22px;
    }

    .contact-form {
        padding: 23px 16px;
    }

    .contact-form h2 {
        font-size: 23px;
    }

    .contact-social-container h2 {
        font-size: 24px;
    }


}