/* Custom Dashboard Styles - New Design */
:root {
  --cd-primary: #e9509b;
  --cd-primary-dark: #e9509b;
  --cd-bg: #fff;
  --cd-border: #e5e5e5;
  --cd-text: #333;
  --cd-muted: #666;
  --cd-danger: #e63946;
  --cd-sidebar-bg: #fff5f7;
  --cd-active-bg: #e9509b;
}

.cd-dashboard {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: #fff;
  min-height: 100vh;
}
.highlight_link {
  color: #ea5698;
}
.highlight_link:hover {
  color: #ea5698;
  text-decoration: underline;
}
.cd-dashboard a {
  text-decoration: none !important;
}
.cd-sidebar {
  background: #fff;
  border-radius: 16px;
  border: none;
  padding: 0;
  position: sticky;
  top: 20px;
  align-self: start;
  /* box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); */
  overflow: hidden;
}
/* .entry-content ul, .entry-content ol {
    padding: 18px;
    margin-top: 20px;
    border: 1px solid #E9509B;
    border-radius: 18px;
} */
.cd-profile {
  text-align: center;
  padding: 18px 50px;
  background: var(--cd-sidebar-bg);
  border-radius: 16px;
  border: 1px solid #e9509b;
}

.cd-avatar img,
.cd-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-block;
  border: 1px solid #e9509b;
}

.cd-name {
  margin-top: 12px;
  font-weight: 600;
  color: var(--cd-text);
  font-size: 18px;
}

.cd-view-profile {
  display: inline-block;
  margin-top: 8px;
  color: var(--cd-primary) !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.cd-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
}

.cd-menu li {
  margin: 0;
}

.cd-menu a {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  color: var(--cd-text);
  text-decoration: none;
  border-left: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  border-radius: 8px;
  outline: unset;
}

.cd-menu a::before {
  content: "";
  width: 20px;
  height: 20px;
  margin-right: 12px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.cd-menu a[href="#account"]::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23666" viewBox="0 0 24 24"><path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>');
}

.cd-menu a[href="#bio"]::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23666" viewBox="0 0 24 24"><path d="M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8l-6-6zm-1 7V3.5L18.5 9H13z"/></svg>');
}

.cd-menu a[href="#chat"]::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23666" viewBox="0 0 24 24"><path d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z"/></svg>');
}

.cd-menu a[href="#password"]::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23666" viewBox="0 0 24 24"><path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"/></svg>');
}

.cd-menu a[href="#privacy"]::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23666" viewBox="0 0 24 24"><path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4z"/></svg>');
}

.cd-menu a[href="#membership"]::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23666" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>');
}

.cd-menu a[href="#delete"]::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23666" viewBox="0 0 24 24"><path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"/></svg>');
}

.cd-menu li.active a {
  background: #ffebf299;
  color: #e9509b;
  font-weight: 600;
  border-left: 3px solid;
}
input[type="text"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="reset"],
input[type="tel"],
input[type="date"],
select,
textarea {
  box-shadow: none;
}

.cd-content {
  background: #fff;
  border: 1px solid #e9509b;
  border-radius: 16px;
  padding: 30px 20px;
}

.cd-preview-btn {
  font-family: "Sofia Sans", Sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #e9509b !important;
  border: 1px solid transparent !important;
  border-radius: 12px;
  /* gradient border that follows radius */
  background: linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(180deg, #e9509b 0%, #f58f7d 100%) border-box !important;
  background-origin: border-box;
  background-clip: padding-box, border-box;
  padding: 15px 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-decoration: none !important;
  line-height: 1;
}

.cd-preview-btn::before {
  content: "";
  width: 18px;
  height: 18px;
  display: inline-block;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  /* pink icon */
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23E9509B"><path d="M19 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H8V4h11v12zM5 6H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2v-1H5V6z"/></svg>');
}

.cd-preview-btn:hover {
  background: linear-gradient(180deg, #e9509b 0%, #f58f7d 100%);
  color: #e9509b;
  border-color: #e9509b;
  box-shadow: 0 6px 16px rgba(233, 80, 155, 0.2);
}

.cd-tab.active h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--cd-text);
  margin-bottom: 32px;
  border-bottom: none;
  padding-bottom: 0;
}

.cd-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 30px;
}

.cd-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.cd-form-row .cd-field {
  display: flex;
  flex-direction: column;
}
div#cd-tab-account .cd-form {
  gap: 20px;
}
.cd-field label {
  color: var(--cd-text);
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 600;
}

.cd-field input {
  padding: 14px 16px;
  border: 1px solid var(--cd-border);
  border-radius: 8px;
  font-size: 15px;
  color: var(--cd-text);
  background-color: #fff;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.cd-field input:focus {
  outline: none;
  border-color: var(--cd-primary);
  box-shadow: 0 0 0 3px rgba(233, 80, 155, 0.1);
}

.cd-field input:disabled {
  background-color: #f8f9fa;
  color: var(--cd-muted);
}

.cd-field textarea {
  padding: 14px 16px;
  border: 1px solid var(--cd-border);
  border-radius: 8px;
  font-size: 15px;
  color: var(--cd-text);
  background-color: #fff;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  resize: vertical;
  min-height: 100px;
}

.cd-field textarea:focus {
  outline: none;
  border-color: var(--cd-primary);
  box-shadow: 0 0 0 3px rgba(233, 80, 155, 0.1);
}

.cd-btn {
  font-family: "Sofia Sans", Sans-serif;
  font-size: 18px;
  font-weight: 700;
  background-image: linear-gradient(180deg, #e9509b 0%, #f58f7d 100%);
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-color: #e9509b;
  border-radius: 7px;
  padding: 12px 40px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none !important;
  display: inline-block;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  min-width: 120px;
  width: 250px;
}

.cd-btn:disabled {
  background-image: linear-gradient(180deg, #cccccc 0%, #999999 100%);
  border-color: #cccccc;
  cursor: not-allowed;
  opacity: 0.6;
}

.cd-btn-secondary {
  color: white;
}

.cd-btn-secondary:hover {
  background-color: transparent;
  color: #e9509b;
  background-image: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
}

.cd-btn-danger {
  color: white;
}

.cd-btn-danger:hover {
  background-color: transparent;
  color: #e9509b;
  background-image: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
}

/* Profile Photo Upload Section - New Design */
.cd-profile-upload-section {
  margin-bottom: 32px;
}

.cd-upload-area {
  border: 2px dashed var(--cd-border);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  /* background: #fafafa; */
  position: relative;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.cd-upload-area:hover {
  border-color: var(--cd-primary);
  background: #fff5f7;
}

.cd-upload-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 16px;
  position: relative;
}

.cd-upload-icon svg {
  width: 100%;
  height: 100%;
  fill: #ccc;
}

.cd-camera-icon {
  position: absolute;
  bottom: -5px;
  right: -5px;
  width: 24px;
  height: 24px;
  background: var(--cd-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cd-camera-icon svg {
  width: 14px;
  height: 14px;
  fill: #fff;
}

.cd-upload-text {
  color: var(--cd-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.cd-upload-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.cd-btn-remove {
  background: transparent;
  color: var(--cd-primary);
  border: 1px solid var(--cd-primary);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cd-btn-remove:hover {
  background: var(--cd-primary);
  color: #fff;
}

.cd-btn-choose {
  font-family: "Sofia Sans", Sans-serif;
  font-size: 14px;
  font-weight: 700;
  background-image: linear-gradient(180deg, #e9509b 0%, #f58f7d 100%);
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-color: #e9509b;
  border-radius: 8px;
  padding: 12px 24px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none !important;
  display: inline-block;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
a.pms-account-subscription-action-link.pms-account-subscription-action-link__update-payment-method {
  display: none;
}

/* Style subscription action links as buttons */
.pms-account-subscription-action-link {
  font-family: "Sofia Sans", Sans-serif;
  font-size: 14px;
  font-weight: 700;
  background-image: linear-gradient(180deg, #e9509b 0%, #f58f7d 100%);
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-color: #e9509b;
  border-radius: 7px;
  padding: 12px 40px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none !important;
  display: inline-block;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  margin-right: 12px;
  min-width: 100px;
  text-align: center;
}

.pms-account-subscription-action-link:hover {
  background-color: transparent;
  color: #e9509b;
  background-image: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
}

.pms-account-subscription-action-link.pms-account-subscription-action-link__cancel,
.pms-account-subscription-action-link.pms-account-subscription-action-link__abandon {
  background-image: linear-gradient(180deg, #6c757d 0%, #5a6268 100%);
  border-color: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
}

.pms-account-subscription-action-link.pms-account-subscription-action-link__cancel:hover,
.pms-account-subscription-action-link.pms-account-subscription-action-link__abandon:hover {
  background-image: linear-gradient(180deg, #6c757d 0%, #5a6268 100%);
  color: white;
}
.cd-btn-choose:hover {
  background-color: transparent;
  color: #e9509b;
  background-image: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
}
.pms-account-subscription-details-table {
  /* margin-bottom: 12px; */
  background: #fff6f9;
  border-radius: 8px;
  border: 1px solid #e9509b33;
  overflow: hidden;
}

/* Bio Page Edit - ACF Form Styling */
.cd-acf-form .acf-field {
  margin-bottom: 24px;
}
.cd-acf-form .acf-input select {
  padding: 8px 16px;
}
.cd-acf-form .acf-label label {
  font-family: "Sofia Sans", Sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--cd-text);
  margin-bottom: 8px;
  display: block;
}

.cd-acf-form .acf-input input,
.cd-acf-form .acf-input textarea,
.cd-acf-form .acf-input select {
  width: 100%;
  padding: 8px 16px;
  border: 1px solid var(--cd-border);
  border-radius: 8px;
  font-size: 15px;
  color: var(--cd-text);
  background-color: #fff;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  font-family: inherit;
}

.cd-acf-form .acf-input input:focus,
.cd-acf-form .acf-input textarea:focus,
.cd-acf-form .acf-input select:focus {
  outline: none;
  border-color: var(--cd-primary);
  box-shadow: 0 0 0 3px rgba(233, 80, 155, 0.1);
}

.cd-acf-form .acf-input textarea {
  resize: vertical;
  min-height: 120px;
}

.cd-acf-form .acf-button {
  font-family: "Sofia Sans", Sans-serif;
  font-size: 18px;
  font-weight: 700;
  background-image: linear-gradient(180deg, #e9509b 0%, #f58f7d 100%);
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-color: #e9509b !important;
  border-radius: 7px;
  padding: 12px 40px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none !important;
  display: inline-block;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  min-width: 120px;
}

.cd-acf-form .acf-button:hover {
  background-color: transparent;
  color: #e9509b;
  background-image: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
  border-color: #e9509b !important;
}

.cd-acf-form .acf-notice.-success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.cd-acf-form .acf-notice.-error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}
.cd-photo-file-input {
  display: none;
}

.cd-tab {
  display: none;
}
.cd-tab.active {
  display: block;
}

.cd-form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.cd-btn-upload {
  font-family: "Sofia Sans", Sans-serif;
  font-size: 18px;
  font-weight: 700;
  background-image: linear-gradient(180deg, #e9509b 0%, #f58f7d 100%);
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-color: #e9509b;
  border-radius: 7px;
  padding: 12px 40px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none !important;
  display: inline-block;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  min-width: 120px;
}

.cd-btn-upload:hover {
  background-color: transparent;
  color: #e9509b;
  background-image: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
}

/* Disabled state for Bio Page Edit Save button */
#cd-bio-save.cd-btn-disabled,
#cd-bio-save[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .cd-dashboard {
    grid-template-columns: 1fr;
  }
  .cd-form-row {
    grid-template-columns: 1fr;
  }
  .cd-sidebar {
    position: static;
    top: auto;
  }
}
@media (max-width: 767px) {
  .cd-user-gallery img {
    flex: 0 0 calc(50% - 16px);
  }
}
@media (max-width: 575px) {
  .cd-user-gallery img {
    flex: 0 0 calc(100% - 16px);
  }
}

/* css for testimonials */
/* Layout container */
.carousel-wrap {
  margin: 0 auto;
  position: relative;
}
/* Arrows */
.arrow {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  position: absolute;
  top: 165px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  z-index: 5;
}
.arrow.prev {
  left: -96px;
  border: 2px solid #ff7bb3;
  color: #ff7bb3;
  background: #fff;
}
.arrow.next {
  right: -96px;
  background: linear-gradient(135deg, #ff6fae, #ff9b6a);
  color: #fff;
}
/* Card */
.testimonial {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 75%;
}
.owl-item {
  width: 100% !important;
  margin-right: 22px !important;
}
.image-box {
  width: 90%;
  height: 395px;
  border-radius: 18px;
  overflow: hidden;
  z-index: 9999;
}
.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Text box */
.text-box {
  width: 100%;
  background: #fff2ea;
  padding: 70px 35px 29px 35px;
  margin-top: -48px;
  font-size: 16px;
  line-height: 1.7;
  border-radius: 18px;
}
/* Owl spacing */
.owl-carousel .owl-stage {
  display: flex;
}
.owl-carousel .owl-item {
  display: flex;
  justify-content: center;
}
/* Responsive */
@media (max-width: 1024px) {
  .arrow.prev {
    left: -60px;
  }
  .arrow.next {
    right: -60px;
  }
}
@media (max-width: 768px) {
  .section h2 {
    font-size: 34px;
    margin-bottom: 60px;
  }
  .arrow {
    top: auto;
    bottom: -90px;
  }
  .arrow.prev {
    left: 38%;
  }
  .arrow.next {
    right: 38%;
  }
  .text-box {
    width: 90%;
  }
	.cd-dashboard, ul.cd-menu {
		padding: 20px 0;
		margin: 0;
	}
	.cd-content {
		padding: 15px 10px;
	}
	.pms-account-subscription-details-table tr td {
		padding: 8px;
		font-size: 14px;
	}
}
@media (max-width:550px) {
.pms-account-subscription-details-table tr td {
    padding: 6px;
    font-size: 12px;
}
}
/* Chat Tab Styles */
.cd-chat-container {
  margin-top: 15px;
}

.cd-chat-container * {
  box-sizing: border-box;
}

/* Ensure better messages plugin works well within the dashboard */
.cd-chat-container .better-messages-container {
  width: 100%;
  height: 600px;
  border-radius: 8px;
  overflow: hidden;
}
