/* ── Overlay ── */
#cmp-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.50);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999999;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

#cmp-overlay.cmp-active {
  display: flex;
  animation: cmpFadeIn 0.25s ease forwards;
}

@keyframes cmpFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Modal box ── */
#cmp-modal {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 30px 30px;
    width: 100%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
    animation: cmpSlideUp 0.3s ease forwards;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
    border-top: 10px solid #6F5DF8;
}

@keyframes cmpSlideUp {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ── Close button ── */
#cmp-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #f2f2f2;
  font-size: 20px;
  line-height: 1;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s, color 0.2s;
}
#cmp-close:hover {
  background: #e5e5e5;
  color: #111;
}

#cmp-overlay .modal-contact-form label{
	color: #0C0233;
    font-weight: 600;
}

 #cmp-overlay .modal-contact-form .input-group select, #cmp-overlay .modal-contact-form .input-group textarea {
    width: 100%;
    padding: 0px;
    font-size: 16px;
    font-family: inherit !important;
    border: 1px solid white;
    min-height: 48px;
    color: var(--e-global-color-0ca1400);
    border-radius: 14px;
    border: 1px solid hsl(0deg 0% 100% / 10%);
   background: #fafafa !important;
    padding-left: 15px;
    color: #a79b9b;
}

/* ── Header ── */
.cmp-header {
  margin-bottom: 24px;
}
.cmp-header h2 {
    margin: 0 0 6px;
    font-family: "Schibsted Grotesk", Sans-serif;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3em;
    color: #0C0233;
}
.cmp-header p {
  font-size: 14px;
  color: #888;
  margin: 0;
  line-height: 1.6;
}

/* ── Body (shortcode content lives here) ── */
.cmp-body {
  font-size: 15px;
  color: #333;
  line-height: 1.6;
}

/* Make CF7 / WPForms look good inside the modal */
.cmp-body input[type="text"],
.cmp-body input[type="email"],
.cmp-body input[type="tel"],
.cmp-body input[type="url"],
.cmp-body textarea,
.cmp-body select {
  width: 100% !important;
  box-sizing: border-box !important;
  border-radius: 8px !important;
  border: 1.5px solid #e0e0e0 !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  background: #fafafa !important;
  transition: border 0.2s !important;
}
.cmp-body input:focus,
.cmp-body textarea:focus {
  border-color: #4f46e5 !important;
  background: #fff !important;
  outline: none !important;
}
.custom-submit{
	 background: #4f46e5 !important;
}
.cmp-body input[type="submit"],
.cmp-body button[type="submit"] {
  background: #4f46e5 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 20px 28px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
  width: 100% !important;
}
.cmp-body input[type="submit"]:hover,
.cmp-body button[type="submit"]:hover {
  background: #4338ca !important;
}
.wpcf7-spinner {
    position: absolute;
    bottom: 13%;
    left: 20px;
}

/* ── Floating button ── */
#cmp-float-btn {
  position: fixed;
  bottom: 28px;
	display:none !important;
  right: 28px;
  z-index: 99998;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.45);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
#cmp-float-btn:hover {
  background: #4338ca;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(79, 70, 229, 0.5);
}
#cmp-float-btn svg {
  flex-shrink: 0;
}

/* ── Inline button (from shortcode) ── */
.cmp-inline-btn {
  display: inline-block;
  background: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.cmp-inline-btn:hover {
  background: #4338ca;
}

/* ── Mobile ── */
@media (max-width: 540px) {
  #cmp-modal {
    padding: 36px 20px 28px;
    border-radius: 12px;
  }
  #cmp-float-btn span {
    display: none;
  }
  #cmp-float-btn {
    padding: 14px;
    border-radius: 50%;
  }
}

.wpcf7 form .wpcf7-response-output {
    margin: 0em 0.5em 0em;
    padding: 0.2em 1em;
    border: 0px solid #00a0d2;
}
.wpcf7-spinner {
    position: absolute;
    left: 20px;
    bottom: 85px;
}
/* Success - Form sent */
.wpcf7 form.sent .wpcf7-response-output {
  border: 2px solid #28a745;
  background-color: #d4edda;
  color: #155724;
  margin: 0px 0;
  padding: 10px 16px;
  border-radius: 8px;
}

/* Validation Error - Fields missing */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
  border: 2px solid #dc3545;
  background-color: #f8d7da;
  color: #721c24;
  margin: 0px 0;
  padding: 10px 16px;
  border-radius: 8px;
}

/* Spam Error */
.wpcf7 form.spam .wpcf7-response-output {
  border: 2px solid #fd7e14;
  background-color: #ffecd2;
  color: #7d3800;
  margin: 0px 0;
  padding: 10px 16px;
  border-radius: 8px;
}

/* Mail Error - Sending failed */
.wpcf7 form.failed .wpcf7-response-output {
  border: 2px solid #dc3545;
  background-color: #f8d7da;
  color: #721c24;
  margin: 0px 0;
  padding: 10px 16px;
  border-radius: 8px;
}

/* Mail Sent but with some issues */
.wpcf7 form.aborted .wpcf7-response-output {
  border: 2px solid #ffc107;
  background-color: #fff3cd;
  color: #856404;
  margin: 0px 0;
  padding: 10px 16px;
  border-radius: 8px;
}

.cmp-body textarea{
  height: 100px;
}

/* Individual field error */
.wpcf7-not-valid-tip {
  color: #dc3545;
  font-size: 14px;
  margin-top: 4px;
  display: block;
}
.wpcf7-not-valid-tip ~ .wpcf7-not-valid-tip {
  display: none !important;
}