/* =========================================
   CONTACT SECTION
========================================= */

.contact-section {
    position: relative;
    padding: 100px 0;
    background: #fffaf8;
    overflow: hidden;
}


/* =========================================
   SECTION HEADING
========================================= */

.contact-heading {
    max-width: 750px;
    margin: 0 auto 65px;
}

.contact-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 17px;

    background: #f4e6ec;
    border-radius: 50px;
    margin-top: -70px;
    color: #5d0039;

    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.contact-tag i {
    font-size: 13px;
}

.contact-heading h1 {
    margin: 22px 0 18px;

    font-family: "Cormorant Garamond", serif;
    font-size: 62px;
    line-height: 1;
    font-weight: 600;

    color: #4b3035;
}

.contact-heading h1 span {
    color: #5d0039;
    font-style: italic;
}

.contact-heading p {
    max-width: 620px;
    margin: auto;

    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    line-height: 1.8;

    color: #756568;
}


/* =========================================
   MAIN ROW
========================================= */

.contact-row {
    max-width: 1200px;
    margin: auto;
}


/* =========================================
   CONTACT FORM
========================================= */

.contact-form {
    padding: 48px 45px;

    background:rgb(230, 227, 227);

    border: 1px solid #eadfe2;
    border-radius: 24px;

    box-shadow: 0 18px 45px rgba(93, 0, 57, 0.06);
}


/* FORM HEADER */

.form-header {
    margin-bottom: 32px;
}

.form-header > span {
    font-family: "Montserrat", sans-serif;
    font-size: 17px;
    font-weight: 700;
    margin-top: 40px;
    letter-spacing: 1.5px;

    color: #9a7c87;
}

.form-header h2 {
    margin: 8px 0 8px;

    font-family: "Cormorant Garamond", serif;
    font-size: 46px;
    line-height: 1.05;
    font-weight: 600;

    color: #4b3035;
}

.form-header h2 em {
    color: #5d0039;
    font-style: italic;
}

.form-header p {
    margin: 0;

    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    line-height: 1.7;

    color: #817174;
}


/* =========================================
   FORM LABEL
========================================= */

.contact-form .form-label {
    margin-bottom: 7px;

    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 600;

    color: #4b3035;
}


/* =========================================
   INPUTS
========================================= */

.contact-form .form-control {
    min-height: 50px;

    padding: 12px 14px;

    border: 1px solid #e2d7db;
    border-radius: 9px;

    background: #fffaf8;

    font-family: "Montserrat", sans-serif;
    font-size: 14px;

    color: #4b3035;

    box-shadow: none;

    transition: all 0.3s ease;
}

.contact-form textarea.form-control {
    min-height: 120px;
    resize: none;
}

.contact-form .form-control::placeholder {
    color: #aaa0a3;
}

.contact-form .form-control:focus {
    border-color: #5d0039;

    background: #ffffff;

    box-shadow: 0 0 0 3px rgba(93, 0, 57, 0.06);
}


/* =========================================
   CHECKBOX
========================================= */

.contact-form .form-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.contact-form .form-check-input {
    margin-top: 3px;
    flex-shrink: 0;
}

.contact-form .form-check-input:checked {
    background-color: #5d0039;
    border-color: #5d0039;
}

.contact-form .form-check-label {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    line-height: 1.6;

    color: #817174;
}


/* =========================================
   SUBMIT BUTTON
========================================= */

.contact-submit {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 14px 20px;

    border: none;
    border-radius: 9px;

    background: #5d0039;
    color: white;

    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.4px;

    transition: all 0.35s ease;
}

.contact-submit i {
    transition: transform 0.3s ease;
}

.contact-submit:hover {
    background: #420027;
   

    transform: translateY(-2px);

    box-shadow: 0 12px 25px rgba(93, 0, 57, 0.16);
}

.contact-submit:hover i {
    transform: translateX(5px);
}


/* =========================================
   IMAGE SIDE
========================================= */

.contact-image-area {
    position: relative;

    margin-left: 35px;
}


/* IMAGE */

.contact-image {
    width: 100%;

    overflow: hidden;

    border-radius: 26px;
}

.contact-image img {
    width: 100%;
    height: 560px;

    display: block;

    object-fit: cover;

    transition: transform 0.6s ease;
}

.contact-image:hover img {
    transform: scale(1.03);
}


/* =========================================
   CLINIC HOURS
========================================= */

.clinic-hours {
    position: absolute;

    left: 25px;
    right: 25px;
    bottom: 25px;

    padding: 20px 22px;

    background: rgba(255, 255, 255, 0.96);

    border-radius: 17px;

    box-shadow: 0 15px 35px rgba(93, 0, 57, 0.13);

    backdrop-filter: blur(8px);
}


/* HOURS HEADING */

.hours-heading {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 15px;
}

.hours-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 12px;

    background: #5d0039;
    color: #eeef7e;

    font-size: 18px;
}

.hours-heading span {
    display: block;

    margin-bottom: 2px;

    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;

    color: #9a7c87;
}

.hours-heading h4 {
    margin: 0;

    font-family: "Cormorant Garamond", serif;
    font-size: 24px;
    font-weight: 700;

    color: #4b3035;
}


/* HOURS LIST */

.hours-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    padding: 8px 0;

    border-bottom: 1px solid #eee5e7;

    font-family: "Montserrat", sans-serif;
    font-size: 14px;

    color: #756568;
}

.hours-item:last-child {
    border-bottom: none;
}

.hours-item strong {
    color: #5d0039;
    font-weight: 600;
}


/* =========================================
   FLOATING BADGE
========================================= */

.contact-badge {
    position: absolute;

    top: 25px;
    right: -18px;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 10px 16px;

    border-radius: 50px;

    background: #5d0039;
    color: #eeef7e;

    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 600;

    box-shadow: 0 10px 25px rgba(93, 0, 57, 0.18);

    animation: contactBadgeFloat 3s ease-in-out infinite;
}

.contact-badge i {
    font-size: 12px;
}

@keyframes contactBadgeFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* =========================================
   SOCIAL MEDIA
========================================= */

.contact-social {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-top: 18px;
    padding: 15px 20px;

    background: #fff9f7;
    border: 1px solid #eee2dd;
    border-radius: 16px;

    transition: .35s ease;
}

.contact-social:hover {
    border-color: #e2d0ca;
    transform: translateY(-2px);
}


/* LABEL */

.social-label {
    color: #5d0039;
    font-family:'Times New Roman', Times, serif;
    font-size: 18px;
  margin-left: 40px;
    font-weight: 700;
    letter-spacing: 2px;
}


/* SOCIAL LINKS */

.social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}


.social-links a {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #5d0039;
    background: #ffffff;

    border: 1px solid #eadbd6;
    border-radius: 50%;

    text-decoration: none;

    font-size: 20px;

    transition:
        transform .3s ease,
        background .3s ease,
        color .3s ease,
        border-color .3s ease;
}


.social-links a:hover {
    background: #5d0039;
    color: #ffffff;
    border-color: #7a2f35;

    transform: translateY(-4px);
}


/* MOBILE */

@media (max-width: 576px) {

    .contact-social {
        padding: 13px 16px;
    }

    .social-links {
        gap: 7px;
    }

    .social-links a {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .social-label {
        font-size: 9px;
        letter-spacing: 1.5px;
    }

}
/* =========================================
   TABLET
========================================= */

@media (max-width: 991px) {

    .contact-section {
        padding: 75px 0;
    }

    .contact-heading {
        margin-bottom: 50px;
    }

    .contact-heading h1 {
        font-size: 56px;
    }

    .contact-form {
        padding: 40px 30px;
    }

    .contact-image-area {
        margin-left: 0;
        margin-top: 35px;
    }

    .contact-image img {
        height: 500px;
    }

    .contact-badge {
        right: 15px;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 576px) {

    .contact-section {
        padding: 55px 0;
    }

    .contact-heading {
        margin-bottom: 35px;
    }

    .contact-tag {
        padding: 7px 14px;
        font-size: 9px;
        letter-spacing: 1px;
    }

    .contact-heading h1 {
        margin-top: 20px;
        font-size: 43px;
        line-height: 1.05;
    }

    .contact-heading p {
        padding: 0 10px;
        font-size: 12px;
        line-height: 1.75;
    }

    .contact-form {
        padding: 30px 20px;
        border-radius: 18px;
    }

    .form-header h2 {
        font-size: 36px;
    }

    .form-header p {
        font-size: 11px;
    }

    .contact-form .form-control {
        min-height: 48px;
    }

    .contact-image-area {
        margin-top: 35px;
    }

    .contact-image {
        border-radius: 20px;
    }

    .contact-image img {
        height: 430px;
    }

    .clinic-hours {
        left: 15px;
        right: 15px;
        bottom: 15px;

        padding: 16px;
    }

    .hours-heading h4 {
        font-size: 21px;
    }

    .hours-item {
        font-size: 9px;
    }

    .contact-badge {
        top: 15px;
        right: 15px;
        font-size: 4px;
    }
}
/* =========================================
   CONTACT SECTION ANIMATION
========================================= */

.contact-section {
  overflow: hidden;
}


/* =========================
   SECTION HEADER
========================= */

.contact-heading {
  animation: contactFadeUp 0.9s ease both;
}

.contact-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  animation: contactFadeUp 0.7s ease both;
}

.contact-heading h1 {
  animation: contactFadeUp 0.9s ease 0.15s both;
}

.contact-heading h1 span {
  display: inline-block;
  animation: contactTitleFloat 4s ease-in-out infinite;
}

.contact-heading p {
  animation: contactFadeUp 0.9s ease 0.3s both;
}


/* =========================
   CONTACT FORM
========================= */

.contact-form {
  animation: contactFormReveal 0.9s ease 0.35s both;
}


/* Form Header */

.form-header {
  animation: contactFadeUp 0.7s ease 0.45s both;
}


/* Form Fields */

.contact-form .col-md-6,
.contact-form .col-12 {
  animation: contactFieldReveal 0.6s ease both;
}

.contact-form .col-md-6:nth-child(1) {
  animation-delay: 0.5s;
}

.contact-form .col-md-6:nth-child(2) {
  animation-delay: 0.6s;
}

.contact-form .col-md-6:nth-child(3) {
  animation-delay: 0.7s;
}

.contact-form .col-md-6:nth-child(4) {
  animation-delay: 0.8s;
}

.contact-form .col-12:nth-child(5) {
  animation-delay: 0.9s;
}

.contact-form .col-12:nth-child(6) {
  animation-delay: 1s;
}

.contact-form .col-12:nth-child(7) {
  animation-delay: 1.1s;
}


/* Input Focus */

.contact-form .form-control {
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.contact-form .form-control:focus {
  transform: translateY(-2px);
}


/* Submit Button */

.contact-submit {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.contact-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(122, 47, 53, 0.18);
}

.contact-submit i {
  transition: transform 0.3s ease;
}

.contact-submit:hover i {
  transform: translateX(5px);
}


/* =========================
   IMAGE SIDE
========================= */

.contact-image-area {
  animation: contactImageReveal 1s ease 0.3s both;
}


/* Main Image */

.contact-image {
  overflow: hidden;
}

.contact-image img {
  transition: transform 0.8s ease;
}

.contact-image:hover img {
  transform: scale(1.05);
}


/* =========================
   CLINIC HOURS
========================= */

.clinic-hours {
  animation: contactHoursReveal 0.8s ease 0.7s both;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clinic-hours:hover {
  transform: translateY(-5px);
}


/* Clock Icon */

.hours-icon {
  transition: transform 0.35s ease;
}

.clinic-hours:hover .hours-icon {
  transform: rotate(8deg) scale(1.08);
}


/* =========================
   BADGE
========================= */

.contact-badge {
  animation: contactBadgeFloat 4s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.contact-badge:hover {
  transform: translateY(-5px);
}


/* =========================
   KEYFRAMES
========================= */

@keyframes contactFadeUp {

  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

}


@keyframes contactFormReveal {

  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }

}


@keyframes contactImageReveal {

  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }

}


@keyframes contactFieldReveal {

  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

}


@keyframes contactHoursReveal {

  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

}


@keyframes contactTitleFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }

}


@keyframes contactBadgeFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 767px) {

  .contact-form,
  .contact-image-area {
    animation: contactFadeUp 0.8s ease both;
  }

  .contact-submit:hover {
    transform: none;
  }

  .contact-image img {
    transition: none;
  }

}


/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {

  .contact-heading,
  .contact-tag,
  .contact-heading h1,
  .contact-heading p,
  .contact-form,
  .form-header,
  .contact-form .col-md-6,
  .contact-form .col-12,
  .contact-image-area,
  .clinic-hours,
  .contact-badge {
    animation: none;
    opacity: 1;
    transform: none;
  }

}