
/* ========== RESPONSIVE MEDIA QUERIES ========== */

@media screen and (max-width: 500px) {
    .contact-form {
        padding: 20px;
        padding-top: 0px;
        padding-left: 0;
        padding-right: 0;
    }
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    section.contact-wrapper {
        padding-top: 60px;
    }

    .contact-content {
        padding-right: 0;
    }

    .contact_from_box {
        padding: 20px;
    }

    .cda-single-content {
        margin: 0 10px;
        padding: 15px 0;
    }

    .cda-icon i {
        font-size: 30px;
        height: 45px;
        width: 45px;
        line-height: 45px;
    }

    .cda-content-inner h4 {
        font-size: 18px;
    }

    .cda-content-inner p {
        font-size: 14px;
    }

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

    .contact-page-heading p {
        font-size: 14px;
    }

    .contact-page-heading {
        margin: 0 10px;
        padding-top: 10px;
    }

    .contact_from_box .our-contact-heading h3 {
        font-size: 28px;
    }

    .contact_from_box .heading h6 {
        font-size: 24px;
    }

    .reservation-grid {
        flex-direction: column;
        align-items: flex-start;
    }

    .divider {
        display: none;
    }

    .reservations {
        width: 100%;
        justify-content: flex-start;
    }

    form button.main-btn {
        width: 100%;
    }

    .map-box {
        padding-bottom: 65%;
    }
}

/* Small devices (portrait tablets and large phones, 600px to 768px) */
@media only screen and (min-width: 601px) and (max-width: 768px) {
    section.contact-wrapper {
        padding-top: 80px;
    }

    .contact-content {
        padding-right: 20px;
    }

    .contact_from_box {
        padding: 30px;
    }

    .cda-single-content {
        margin: 0 15px;
    }

    .divider {
        margin-left: 20px;
        margin-right: 20px;
    }

    .contact-page-heading h2 {
        font-size: 32px;
    }

    .contact_from_box .our-contact-heading h3 {
        font-size: 32px;
    }
}

/* Medium devices (landscape tablets, 768px to 1024px) */
@media only screen and (min-width: 769px) and (max-width: 1024px) {
    .contact-content {
        padding-right: 40px;
    }

    .contact_from_box {
        padding: 30px;
    }

    .cda-single-content {
        margin: 0 18px;
    }

    .divider {
        margin-left: 25px;
        margin-right: 25px;
    }
}

/* Large devices (laptops/desktops, 1024px to 1366px) */
@media only screen and (min-width: 1025px) and (max-width: 1366px) {
    .contact-content {
        padding-right: 60px;
    }
}

/* Specific breakpoints for 320px, 375px, 540px, 980px */
@media only screen and (max-width: 320px) {
    .contact-page-heading h2 {
        font-size: 24px;
    }

    .contact_from_box .our-contact-heading h3 {
        font-size: 24px;
    }

    .cda-icon i {
        font-size: 24px;
        height: 40px;
        width: 40px;
        line-height: 40px;
    }

    .cda-content-inner h4 {
        font-size: 16px;
    }

    .cda-content-inner p {
        font-size: 13px;
    }

    .contact-content .reservations a {
        font-size: 18px;
    }
}

@media only screen and (max-width: 375px) {
    .contact-page-heading h2 {
        font-size: 26px;
    }

    .contact_from_box .our-contact-heading h3 {
        font-size: 26px;
    }
}

@media only screen and (max-width: 540px) {
    section.contact-wrapper {
        padding-top: 70px;
    }

    .contact-content {
        padding-right: 0;
        padding-right: 0;
    }

    .contact_from_box {
        padding: 25px;
    }

    .cda-single-content {
        margin: 0 12px;
    }
}

@media only screen and (max-width: 980px) {
    .contact-content {
        padding-right: 30px;
    }

    .contact_from_box .our-contact-heading h3 {
        font-size: 30px;
    }
}

/* Ensure images and iframes are responsive */
img, iframe {
    max-width: 100%;
    height: auto;
}

/* Additional fixes for very small devices */
@media only screen and (max-width: 480px) {
    .reservations {
        flex-wrap: wrap;
        gap: 8px;
    }

    .icon-wrapper {
        width: 30px;
        font-size: 20px;
    }

    .contact-link, .adds {
        font-size: 1rem;
    }

    form input.form-control {
        font-size: var(--f13); /* fallback if variable not defined */
        padding-top: 20px !important;
    }

    textarea#floatingTextarea {
        height: 80px;
    }

    .contact-title h3 {
        font-size: 22px;
        padding-left: 15px;
    }
}

/* Tablet portrait and landscape adjustments */
@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .contact-content {
        padding-right: 20px;
    }

    .contact_from_box {
        padding: 25px;
    }

    .cda-single-content {
        margin: 0 12px;
    }
}

/* Ensure form elements are readable on all devices */
input, textarea, button {
    font-size: 16px; /* Prevents zoom on mobile */
}

/* Fix for floating label positioning on small screens */
.form-floating {
    margin-bottom: 20px;
}

/* Adjust error label position */
label.error {
    bottom: auto;
    top: 100%;
    font-size: 11px;
    line-height: 1.2;
    height: auto;
    min-height: 18px;
}

/* Responsive map container */
.map-wrapper {
    height: auto;
    min-height: 350px;
}

.map-box {
    width: 100%;
    height: 100%;
    padding-bottom: 56.25%;
    position: relative;
}

.map-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Contact banner adjustments */
section.contact-banner {
    background-size: cover;
    background-position: center;
    padding-top: 30px;
}

section.contact-banner h5 {
    margin-top: 50px;
    font-size: 14px;
    letter-spacing: 4px;
}

section.contact-banner h1 {
    font-size: 28px;
}

@media only screen and (max-width: 768px) {
    section.contact-banner {
        padding-top: 20px;
    }

    section.contact-banner h5 {
        margin-top: 40px;
    }

    section.contact-banner h1 {
        font-size: 24px;
    }
}

/* Address section responsiveness */
.address .right {
    border-right: none;
    border-bottom: 1px solid var(--heading-color);
    margin-bottom: 15px;
    padding-bottom: 15px;
}

@media only screen and (min-width: 768px) {
    .address .right {
        border-right: 1px solid var(--heading-color);
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
}

/* Flex adjustments for reservation grid on mobile */
.reservation-grid {
    display: flex;
    flex-wrap: wrap;
}

@media only screen and (max-width: 768px) {
    .reservation-grid {
        flex-direction: column;
        align-items: flex-start;
    }

    .divider {
        display: none !important;
    }

    .reservations {
        width: 100%;
        justify-content: flex-start;
        margin: 10px 0;
    }
    section.contact-details .mmap{
      width: 100%;
      margin-bottom: 20px;
      padding-left: 0;
      padding-right: 0;
    }
}

/* General spacing for mobile */
@media only screen and (max-width: 600px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .contact-content .reservations img {
        width: 28px;
    }

    .contact-content .reservations a {
        font-size: 18px;
    }
}

/* Footer or extra elements if needed */
/* Ensure no horizontal scroll */
body {
    overflow-x: hidden;
}

/* High-resolution screens (1366px and above) */
@media only screen and (min-width: 1367px) {
    .container {
        max-width: 1320px;
    }
}

/* Custom for 1024px */
@media only screen and (max-width: 1024px) {
    .contact_from_box {
        padding: 30px;
    }

    .cda-content-area {
        padding: 15px 0;
    }
}

/* Fix for captcha input on small screens */
input#captcha {
    font-size: 14px;
}

input#captcha::placeholder {
    font-size: 14px;
}

/* Ensure button doesn't overflow */
form button.main-btn {
    max-width: 100%;
}

/* Additional adjustments for 540px (surface duo, etc.) */
@media only screen and (width: 540px) {
    .contact_from_box {
        padding: 20px;
    }

    .cda-single-content {
        margin: 0 10px;
    }

    .contact-page-heading h2 {
        font-size: 30px;
    }
}

/* 980px (iPad Pro portrait? or small laptop) */
@media only screen and (width: 980px) {
    .contact-content {
        padding-right: 50px;
    }

    .contact_from_box {
        padding: 35px;
    }
}

/* Ensure all elements scale properly */
* {
    box-sizing: border-box;
}

/* Responsive typography using clamp or vw units (optional) */
h2.form-head {
    font-size: clamp(24px, 5vw, 30px);
}

.contact-page-heading h2 {
    font-size: clamp(28px, 6vw, 38px);
}

.contact_from_box .our-contact-heading h3 {
    font-size: clamp(26px, 7vw, 39px);
}

/* Final touch: center content on very small devices */
@media only screen and (max-width: 480px) {
  .cda-single-content {
    text-align: center;
  }
  
  .cda-icon i {
    margin-right: 0;
    margin-bottom: 10px;
  }
  
  .cda-content-inner h4,
  .cda-content-inner p {
    text-align: center;
  }
}
@media only screen and (max-width: 320px) {
  .contact-content{
    padding-left: 0;
    padding-right: 0;
  }
  .contact-form{
     padding-left: 0;
    padding-right: 0;
  }
}