/* Contact details modal for every Mauritius Dealz quotation type */
.md-contact-dialog {
    border: 0;
    padding: 0;
    border-radius: 20px;
    width: min(700px, calc(100vw - 28px));
    max-height: 90vh;
    box-shadow: 0 24px 70px #153f4b50;
    color: #163e42;
    background: #fff
}

.md-contact-dialog::backdrop {
    background: rgba(7, 37, 42, .65)
}

.md-contact-card {
    padding: clamp(18px, 3vw, 34px);
    max-height: 90vh;
    overflow: auto;
    font: inherit
}

.md-contact-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: start
}

.md-contact-header h2 {
    font: 400 clamp(25px, 3vw, 36px)/1.16 Georgia, serif;
    margin: 8px 0 6px
}

.md-kicker {
    letter-spacing: .17em;
    font-size: 11px;
    color: #85704c;
    font-weight: 700
}

.md-selected {
    font-size: 13px;
    color: #557274;
    margin: 0 0 18px
}

#mdClose {
    border: 0;
    background: #eff5f3;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    width: 38px;
    height: 38px;
    flex-shrink: 0
}

.md-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px
}

.md-contact-grid label {
    font-size: 12px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    gap: 6px
}

.md-contact-grid input,
.md-contact-grid textarea {
    font: inherit;
    font-size: 15px;
    padding: 12px;
    border: 1px solid #c6dbd7;
    border-radius: 9px;
    background: #fff;
    color: #123f44;
    min-width: 0;
    width: 100%;
    box-sizing: border-box
}

.md-wide {
    grid-column: 1/-1
}

.md-consent {
    margin-top: 20px;
    display: flex;
    align-items: start;
    gap: 9px;
    font-size: 12px;
    line-height: 1.6
}

.md-consent input {
    margin-top: 3px
}

.md-contact-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    align-items: center
}

.md-contact-footer button {
    border-radius: 9px;
    padding: 12px 17px;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    border: 1px solid #9fb9b5
}

.md-send {
    background: #245b60;
    color: #fff;
    border-color: #245b60 !important
}

.md-send:disabled {
    opacity: .65;
    cursor: default
}

.md-cancel {
    background: #fff
}

.md-status {
    font-size: 12px;
    line-height: 1.65;
    color: #4a686b;
    margin: 15px 0 0
}

.md-error {
    color: #a8322c
}

.md-whatsapp-cta {
    display: grid;
    gap: 8Ûpx;
    margin-top: 12px
}

.md-whatsapp-cta a {
    display: block;
    padding: 13px 15px;
    text-align: center;
    background: #e0f5e8;
    color: #0f6240;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none
}

.md-whatsapp-cta small {
    color: #627577;
    text-align: center
}

.md-honeypot {
    position: absolute !important;
    left: -10000px !important;
    height: 1px !important;
    width: 1px !important;
    opacity: 0 !important
}

@media(max-width:540px) {
    .md-contact-grid {
        grid-template-columns: 1fr
    }

    .md-contact-footer {
        justify-content: stretch
    }

    .md-contact-footer button {
        flex: 1
    }
}


/* MAURITIUS DEALZ - HOLIDAY PLANNER */

/* Only style the detailed holiday planner */
dialog:has(#mdV14Services) {
    width: min(920px, 94vw);
    max-width: 920px;
    max-height: 90vh;
    margin: auto;
    padding: 36px;
    border: 0;
    border-radius: 20px;
    background: #ffffff;
    color: #243d43;
    box-shadow: 0 25px 80px rgba(0, 35, 45, 0.28);
    overflow-y: auto;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
  }
  
  dialog:has(#mdV14Services)::backdrop {
    background: rgba(9, 36, 45, 0.7);
    backdrop-filter: blur(5px);
  }
  
  /* Headings and descriptions */
  dialog:has(#mdV14Services) h2 {
    font-family: Georgia, serif;
    font-size: clamp(27px, 4vw, 38px);
    font-weight: 400;
    color: #124e59;
    margin: 8px 0 14px;
  }
  
  dialog:has(#mdV14Services) h3 {
    font-size: 19px;
    color: #124e59;
    margin: 24px 0 16px;
  }
  
  dialog:has(#mdV14Services) p {
    color: #64767a;
    line-height: 1.6;
  }
  
  /* Selected service cards */
  dialog:has(#mdV14Services) .md-v14-service {
    padding: 20px;
    margin: 14px 0;
    border: 1px solid #d9e7e6;
    border-radius: 14px;
    background: #f5faf9;
  }
  
  dialog:has(#mdV14Services) .md-v14-service-title {
    font-weight: 700;
    color: #135c65;
    margin-bottom: 14px;
  }
  
  /* Fields arranged in columns */
  dialog:has(#mdV14Services) .md-v14-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 16px 0;
  }
  
  dialog:has(#mdV14Services) label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #36565d;
    min-width: 0;
  }
  
  /* Inputs */
  dialog:has(#mdV14Services) input,
  dialog:has(#mdV14Services) select,
  dialog:has(#mdV14Services) textarea {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 12px 13px;
    border: 1px solid #cadbdc;
    border-radius: 9px;
    background: #ffffff;
    color: #263e45;
    font: inherit;
    font-size: 15px;
  }
  
  dialog:has(#mdV14Services) textarea {
    min-height: 85px;
    resize: vertical;
  }
  
  dialog:has(#mdV14Services) input[type="checkbox"] {
    width: auto;
    min-width: auto;
    margin: 0 7px 0 0;
    accent-color: #087d86;
  }
  
  dialog:has(#mdV14Services) label:has(input[type="checkbox"]) {
    flex-direction: row;
    align-items: center;
  }
  
  dialog:has(#mdV14Services) input:focus,
  dialog:has(#mdV14Services) select:focus,
  dialog:has(#mdV14Services) textarea:focus {
    outline: 2px solid #31a7a9;
    outline-offset: 1px;
  }
  
  /* Buttons */
  dialog:has(#mdV14Services) button {
    padding: 12px 19px;
    border: 1px solid #c8dbdc;
    border-radius: 9px;
    background: #e9f3f2;
    color: #15515b;
    font-weight: 600;
    cursor: pointer;
  }
  
  dialog:has(#mdV14Services) button:hover {
    background: #d4ece9;
  }
  
  dialog:has(#mdV14Services) #mdV14Send {
    background: #087e88;
    color: white;
    border-color: #087e88;
  }
  
  dialog:has(#mdV14Services) #mdV14Send:hover {
    background: #075e67;
  }
  
  dialog:has(#mdV14Services) .md-v14-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
  }
  
  /* Mobile and iPad */
  @media (max-width: 650px) {
    dialog:has(#mdV14Services) {
      width: 96vw;
      max-height: 92vh;
      padding: 20px;
      border-radius: 15px;
    }
  
    dialog:has(#mdV14Services) .md-v14-grid {
      grid-template-columns: 1fr;
    }
  
    dialog:has(#mdV14Services) .md-v14-actions {
      flex-direction: column;
    }
  
    dialog:has(#mdV14Services) .md-v14-actions button {
      width: 100%;
    }
  }
  