/* by kuldeep-test css */
/* ===================================
   WEDDING ENQUIRY POPUP - CF7
=================================== */

#weddingPopup,
.wedding-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

#weddingPopup.popup-open,
.wedding-popup.popup-open {
  display: flex !important;
}

/* Red Outer Box */
.wedding-popup-box {
  position: relative;
  width: 100%;
  max-width: 650px;
  max-height: 92vh;
  overflow-y: auto;
  background: #d9361e;
  padding: 65px 65px 55px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
}

/* Close Button */
#weddingPopupClose,
.wedding-popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #d9361e;
  font-size: 22px;
  line-height: 34px;
  text-align: center;
  cursor: pointer;
  z-index: 50;
  transition: 0.25s;
}

#weddingPopupClose:hover,
.wedding-popup-close:hover {
  background: #fff;
  color: #b92916;
  transform: rotate(90deg);
}

/* White Form Card */
.wedding-cf7-wrapper {
  background: #fff;
}

.wedding-popup-header {
  background: #fff;
  text-align: center;
  padding: 28px 20px 5px;
}

.wedding-popup-header h2 {
  margin: 0;
  color: #d9361e;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
}

.wedding-cf7-form {
  background: #fff;
  padding: 22px 25px 28px;
}

/* Form Grid */
.wedding-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}

.wedding-field {
  min-width: 0;
}

.wedding-field.full-width {
  grid-column: 1 / -1;
}

/* Labels */
.wedding-field label {
  display: block;
  margin: 0 0 6px;
  color: #d9361e;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  text-align: center;
}

.wedding-field label span {
  color: #d9361e;
}

/* Important for CF7 */
.wedding-field .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* Inputs */
.wedding-field input[type="text"],
.wedding-field input[type="email"],
.wedding-field input[type="tel"],
.wedding-field input[type="date"] {
  display: block;
  width: 100%;
  height: 42px;
  margin: 0;
  padding: 0 16px;

  border: 0 !important;
  outline: 0;
  border-radius: 25px;

  background: #d9361e;
  color: #fff;

  font-size: 13px;
  font-family: inherit;

  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
}

.wedding-field input::placeholder {
  color: rgba(255, 255, 255, 0.9);
  opacity: 1;
}

/* Date icon */
.wedding-field input[type="date"] {
  color-scheme: dark;
}

/* Textarea */
.wedding-field textarea {
  display: block;
  width: 100%;
  min-height: 115px;
  height: 115px;
  padding: 14px 15px;

  border: 1px solid #ccc !important;
  border-radius: 0;

  background: #fff;
  color: #333;

  font-size: 13px;
  font-family: inherit;
  line-height: 1.5;

  resize: vertical;
  outline: none;

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

.wedding-field textarea::placeholder {
  color: #999;
}

/* Focus */
.wedding-field input:focus {
  background: #c9301b;
  box-shadow: 0 0 0 3px rgba(217, 54, 30, 0.15);
}

.wedding-field textarea:focus {
  border-color: #d9361e !important;
  box-shadow: 0 0 0 3px rgba(217, 54, 30, 0.08);
}

/* ===================================
   SERVICE MULTI SELECT DROPDOWN
=================================== */

.wedding-services {
  position: relative;
  user-select: none;
}

/* Red Dropdown Trigger Button - Matches other inputs */
.wedding-services-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 42px;
  padding: 0 16px;
  margin: 0;
  box-sizing: border-box;

  background: #d9361e;
  color: #fff;
  border: 0;
  outline: 0;
  border-radius: 25px;

  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
  transition: all 0.2s ease;
}

.wedding-services-trigger:hover {
  background: #c9301b;
}

.wedding-services.is-open .wedding-services-trigger {
  background: #c9301b;
  box-shadow: 0 0 0 3px rgba(217, 54, 30, 0.15);
}

.wedding-services-placeholder {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  padding-right: 8px;
}

/* Dropdown Arrow */
.wedding-services-arrow {
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  color: #fff;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.wedding-services.is-open .wedding-services-arrow {
  transform: rotate(180deg);
}

/* CF7 checkbox dropdown container */
.wedding-services .wpcf7-checkbox {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  box-sizing: border-box;

  padding: 8px;

  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.wedding-services.is-open .wpcf7-checkbox {
  display: block;
  animation: weddingDropdownOpen 0.2s ease;
}

@keyframes weddingDropdownOpen {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Each option */
.wedding-services .wpcf7-list-item {
  display: block;
  margin: 0 0 2px !important;
}

.wedding-services .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 8px 10px;
  margin: 0;

  color: #333;
  text-align: left;
  font-size: 13px;
  font-weight: 400;

  border-radius: 6px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.wedding-services .wpcf7-list-item label:hover {
  background: #fdf2f0;
  color: #d9361e;
}

.wedding-services input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
  accent-color: #d9361e;
  flex-shrink: 0;
}

/* Scrollbar for dropdown list */
.wedding-services .wpcf7-checkbox::-webkit-scrollbar {
  width: 5px;
}

.wedding-services .wpcf7-checkbox::-webkit-scrollbar-thumb {
  background: rgba(217, 54, 30, 0.35);
  border-radius: 10px;
}

.wedding-services .wpcf7-checkbox::-webkit-scrollbar-thumb:hover {
  background: rgba(217, 54, 30, 0.7);
}

/* ===================================
   SUBMIT BUTTON
=================================== */

.wedding-submit-wrap {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 5px;
}

.wedding-submit-wrap input[type="submit"] {
  min-width: 190px;
  height: 48px;

  padding: 0 28px;

  border: 0 !important;
  border-radius: 25px;

  background: #d9361e !important;
  color: #fff !important;

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;

  box-shadow: 0 6px 16px rgba(217, 54, 30, 0.25);

  transition: all 0.25s ease;
}

.wedding-submit-wrap input[type="submit"]:hover {
  background: #bd2d19 !important;
  transform: translateY(-2px);
  box-shadow: 0 9px 20px rgba(217, 54, 30, 0.3);
}

/* CF7 Spinner */
.wedding-submit-wrap .wpcf7-spinner {
  display: block;
  margin: 10px auto 0;
}

/* Validation Error */
.wedding-cf7-form .wpcf7-not-valid-tip {
  margin-top: 5px;
  font-size: 11px;
  color: #d9361e;
}

/* CF7 Response Message */
.wedding-cf7-form .wpcf7-response-output {
  margin: 15px 0 0 !important;
  padding: 10px 15px !important;
  font-size: 13px;
  text-align: center;
}

/* Remove paragraph spacing added by CF7 */
.wedding-cf7-form p {
  margin: 0;
}

/* Scrollbar */
.wedding-popup-box::-webkit-scrollbar {
  width: 5px;
}

.wedding-popup-box::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 20px;
}

/* ===================================
   TRIGGER BUTTONS CURSOR
=================================== */

#wedding-enquiry-btn,
.wedding-enquiry-btn,
.open-consultation-btn,
.open-consultation-mobile-btn,
[class*="open-consultation"],
[class*="wedding-enquiry"] {
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent;
}

#wedding-enquiry-btn *,
.wedding-enquiry-btn *,
.open-consultation-btn *,
.open-consultation-mobile-btn *,
[class*="open-consultation"] * {
  cursor: pointer !important;
}

/* ===================================
   TABLET & MOBILE RESPONSIVE
=================================== */

@media (max-width: 991px) {
  #weddingPopup,
  .wedding-popup {
    padding: 12px;
  }

  .wedding-popup-box {
    max-width: 580px;
    max-height: 94vh;
    padding: 50px 24px 30px;
    border-radius: 12px;
  }

  #weddingPopupClose,
  .wedding-popup-close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    font-size: 24px;
    line-height: 38px;
  }

  .wedding-popup-header {
    padding: 15px 10px 5px;
  }

  .wedding-popup-header h2 {
    font-size: 24px;
  }

  .wedding-cf7-form {
    padding: 15px 12px 20px;
  }

  .wedding-form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .wedding-field.full-width,
  .wedding-submit-wrap {
    grid-column: auto;
  }

  .wedding-submit-wrap input[type="submit"] {
    width: 100%;
  }
}

@media (max-width: 650px) {
  #weddingPopup,
  .wedding-popup {
    padding: 8px;
  }

  .wedding-popup-box {
    max-height: 96vh;
    padding: 45px 14px 20px;
    border-radius: 10px;
  }

  #weddingPopupClose,
  .wedding-popup-close {
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    font-size: 22px;
    line-height: 36px;
  }

  .wedding-popup-header {
    padding: 12px 8px 5px;
  }

  .wedding-popup-header h2 {
    font-size: 21px;
  }

  .wedding-cf7-form {
    padding: 14px 8px 18px;
  }
}
