/* -------------------------------------------------------------- */
/* -------------------- SIGNUP AND LOGIN CSS -------------------- */
/* -------------------------------------------------------------- */

/* Wrapper */
/* Global Wrapper */
.cus-reg-container {
  max-width: 650px;
  margin: 50px auto;
  padding: 0 20px;

  --wp--preset--color--primary: #c92d2d;
}

/* Card Box */
.cus-reg-box {
  background: #fff;
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(201, 45, 45, 0.18);
  border: 1px solid #f1f1f1;
}

/* Title */
.cus-reg-title {
  font-size: 42px;
  font-weight: 700;
  color: #c92d2d;
  margin-bottom: 25px;
  line-height: 1.1;
}

.cus-reg-title span {
  font-size: 18px;
  font-weight: 500;
  color: #555;
  margin-top: 4px;
  display: block;
}

/* Fields */
.cus-form-group {
  margin-bottom: 16px;
}

.cus-form-group label {
  font-size: 14px;
  margin-bottom: 6px;
  display: block;
}

.cus-form-group input,
.cus-form-group select,
.cus-form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background: #f8f8f8;
}

/* Button */
/* Reset all possible interfering styles first */
.cus-reg-btn {
  all: unset;              /* resets inherited styles */
  display: inline-block;   
  text-align: center;
  width: 100%;
  padding: 10px 16px;
  background: #c92d2d !important;   /* primary red */
  color: #ffffff !important;        /* text white */
  font-size: 15px;
  font-weight: 500;
  border: none !important;          /* remove white border */
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

/* Hover state */
.cus-reg-btn:hover {
  background: #a82222 !important;  /* darker red */
  color: #ffffff !important;
  box-shadow: 0 3px 6px rgba(0,0,0,0.12);
}

/* Focus / active states */
.cus-reg-btn:focus,
.cus-reg-btn:active {
  outline: none;
  box-shadow: none;
  color: #ffffff !important;
}


/* Switch Link */
.cus-switch-text {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
}

.cus-switch-link {
  color: #c92d2d;
  font-weight: bold;
  text-decoration: none;
}

.cus-switch-link:hover {
  text-decoration: underline;
}

/* Error Message */
.cus-error-message {
  color: red;
  margin-bottom: 15px;
}

/* .cus-reg-container .cus-reg-btn {
  background: linear-gradient(to bottom, #c92d2d, #8b1e1e) !important;
  background-color: #c92d2d !important;

  filter: none !important;
  opacity: 1 !important;
} */

/* UPDATED */
/* -------------------------------------------------------------- */
/* SEARCH BAR (TOP) */
/* -------------------------------------------------------------- */

.cus-search-bar-top {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.cus-search-bar-top input {
  width: 60%;
  max-width: 380px;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.cus-search-bar-top button {
  padding: 12px 20px;
  background: #c92d2d;
  color: #fff;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

/* ---------------- Modern Card ---------------- */
.cus-result-modern-card {
  background: #fff;
  padding: 22px;
  border-radius: 14px;
  margin-bottom: 22px;
  border: 1px solid #eee;
  box-shadow: 0 6px 20px rgba(201, 45, 45, 0.1);
  transition: 0.25s ease;
}

.cus-result-modern-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(201, 45, 45, 0.18);
}

/* BLOCK WRAPPER */
.cus-field-block {
  display: grid;
  grid-template-columns: 120px 1fr; /* label | value */
  gap: 12px;
  align-items: start;

  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f2f2f2;
}

.cus-field-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.cus-field-label {
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #888;
}

.cus-field-value {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  line-height: 1.4;
}

/* FORCE value text to start after label */
.cus-result-modern-card .cus-field-value {
  text-align: left !important;
  justify-self: start !important;
}

/* -------------------------------------------------------------- */
/* PAGINATION */
/* -------------------------------------------------------------- */
.cus-pagination {
  text-align: center;
  margin-top: 20px;
}

.cus-page-link {
  padding: 8px 14px;
  margin: 0 3px;
  border: 1px solid #c92d2d;
  border-radius: 4px;
  color: #c92d2d;
  text-decoration: none;
}

.cus-page-link.active {
  background: #c92d2d;
  color: white;
}

/* -------------------------------------------------------------- */
/* -------------------- PROFILE SETTINGS CSS -------------------- */
/* -------------------------------------------------------------- */
/* Hero Section */
.cus-profile-hero {
  height: 180px;
  background: linear-gradient(to right, #c92d2d, #8b1e1e);
  position: relative;
}

.cus-profile-hero-inner {
  position: absolute;
  bottom: -60px; /* center avatar at bottom of hero */
  width: 100%;
  display: flex;
  justify-content: center;
}

.cus-profile-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid white;
  object-fit: cover;
}

/* Adjust wrapper margin for hero */
.cus-reg-wrapper {
  max-width: 600px;
  margin: 100px auto 40px auto; /* top margin accounts for hero avatar */
  padding: 0 20px;
}

/* -------------------------------------------------------------- */
/* --------------------- PROFILE PAGE NEW UI -------------------- */
/* -------------------------------------------------------------- */

.cus-profile-container {
  max-width: 650px;
  margin: 120px auto 60px;
  padding: 0 20px;
}

.cus-profile-card {
  background: #fff;
  padding: 30px 28px;
  border-radius: 16px;
  border: 1px solid #eee;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.cus-profile-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #333;
}

/* Field wrapper */
.cus-field-block {
  margin-bottom: 22px;
}

/* Small soft label */
.cus-field-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #777;
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
}

/* Input style */
.cus-field-input {
  width: 100%;
  padding: 14px 14px;
  border: 1px solid #ddd;
  background: #fafafa;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.25s ease;
}

.cus-field-input:focus {
  border-color: #c92d2d;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201, 45, 45, 0.12);
}

.cus-field-input.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* File input */
.cus-field-input-file {
  padding: 8px;
  font-size: 14px;
}

/* Button */
.cus-profile-btn {
  margin-top: 10px;
  width: 100%;
  background: #c92d2d;
  color: #fff;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: 0.25s ease;
}

.cus-profile-btn:hover {
  background: #b62626;
}

/* ----------------------------- TOGGLE ----------------------------- */
.cus-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

/* Match the scale of your form inputs */
.cus-switch {
  position: relative;
  width: 44px;
  height: 22px;
  display: inline-block;
}

.cus-switch input {
  display: none;
}

.cus-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #c9c9c9;
  border-radius: 30px;
  transition: 0.3s;
}

.cus-slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}

.cus-switch input:checked + .cus-slider {
  background: #c92d2d; /* theme red */
}

.cus-switch input:checked + .cus-slider:before {
  transform: translateX(22px);
}

/* Text next to toggle */
.cus-toggle-text {
  font-size: 15px;
  font-weight: 500;
  color: #333;
}

/* -------------------------------------------------------------- */
/* -------------------- SEARCH PAGE CSS ---------------------- */
/* -------------------------------------------------------------- */
/* HERO SECTION */
.cus-hero-box {
  background: #c92d2d;
  padding: 60px 20px;
  text-align: center;
  color: white;
  border-radius: 10px;
  margin-bottom: 30px;
}

.cus-hero-title {
  font-size: 40px;
  font-weight: 700;
}

.cus-hero-subtitle {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 20px;
}

.cus-hero-search-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.cus-hero-search-bar input {
  width: 60%;
  max-width: 380px;
  padding: 12px;
  border-radius: 6px;
  border: none;
}

.cus-hero-search-bar button {
  padding: 12px 20px;
  background: #fff;
  color: #c92d2d;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

/* RESULT CARDS */
.cus-result-card {
  background: #fafafa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
}

.cus-result-card h3 {
  margin: 0 0 5px;
}

.cus-address {
  margin-top: 10px;
}

/* PAGINATION */
.cus-pagination {
  text-align: center;
  margin-top: 20px;
}

.cus-page-link {
  padding: 8px 14px;
  margin: 0 3px;
  border: 1px solid #c92d2d;
  border-radius: 4px;
  color: #c92d2d;
  text-decoration: none;
}

.cus-page-link.active {
  background: #c92d2d;
  color: white;
}

/* -------------------------------------------------------------- */
/* ------------- DROPDOWN HEADER LOGIN/PROFILE CSS -------------- */
/* -------------------------------------------------------------- */
/* LOGIN + USER BUTTON */
.login-btn,
.user-dropbtn {
  background-color: #c92d2d;
  color: white;
  padding: 10px 28px; /* wider button */
  border-radius: 25px;
  border: none;
  cursor: pointer;
  transition: 0.3s ease;
  font-weight: 400; /* less bold */
  font-size: 15px;
}

/* Hover */
.login-btn:hover,
.user-dropbtn:hover {
  background-color: #a32525;
  box-shadow: 0 4px 12px rgba(201, 45, 45, 0.4);
  transform: translateY(-2px);
}

/* Dropdown container */
.user-dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown box */
.user-dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background: white;
  border-radius: 10px;
  padding: 8px 0;
  min-width: 180px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 999;
}

/* Dropdown menu item text size */
.user-dropdown-content a {
  font-size: 14px; /* smaller text */
  padding: 8px 14px; /* slightly smaller spacing */
  color: #333;
  text-decoration: none;
  display: block;
  transition: 0.2s ease;
}

/* Dropdown hover */
.user-dropdown-content a:hover {
  background-color: #f3f3f3;
  padding-left: 20px;
}

/* Show dropdown */
.user-dropdown:hover .user-dropdown-content {
  display: block;
}

/* ===============================
   ADDRESS MANAGEMENT + MODAL
================================ */

.cus-address-wrapper {
  max-width: 720px;
  margin: 40px auto;
  padding: 20px;
  font-family: "Segoe UI", sans-serif;
}

.cus-address-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

/* Cards */
.cus-address-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 18px;
  margin-bottom: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(201, 45, 45, 0.08);
}

.cus-address-card.is-active {
  border-color: #c92d2d;
}

.cus-address-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cus-badge-active {
  background: #c92d2d;
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
}

.cus-address-body p {
  margin: 0;
  color: #444;
  line-height: 1.5;
}

.cus-address-notes {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #777;
}

/* Actions */
.cus-address-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Buttons */
.cus-btn-primary,
.cus-btn-edit,
.cus-btn-light,
.cus-btn-danger {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  border: none;
}

.cus-btn-primary {
  background: #c92d2d;
  color: #fff;
}
.cus-btn-primary:hover {
  background: #a82222;
}

.cus-btn-edit {
  background: #f1f1f1;
}

.cus-btn-light {
  background: #ddd;
}

.cus-btn-danger {
  background: #b40000;
  color: #fff;
}

/* ===============================
   MODAL
================================ */

/* ===============================
   MODAL (FIXED)
================================ */

/* ===============================
   MODAL – FULL BACKGROUND DIM
================================ */

/* MODAL HEADER */
.cus-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
}

/* CLOSE BUTTON */
.cus-modal-close {
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.cus-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;
}

.cus-modal.hidden {
  display: none;
}

/* FULL-SCREEN OVERLAY */
.cus-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

/* MODAL BOX */
.cus-modal-box {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 520px;
  max-height: 85vh;

  background: #fff;
  padding: 25px;
  border-radius: 12px;

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);

  display: flex;
  flex-direction: column;
  animation: scaleIn 0.25s ease;
}

/* SCROLLABLE CONTENT */
.cus-modal-body {
  overflow-y: auto;
  flex: 1;
  padding-right: 6px;
}

/* .cus-modal.hidden {
  display: none;
}

.cus-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998;

  display: none;
  align-items: center;
  justify-content: center;
}

.cus-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998;

  display: none;
  align-items: center;
  justify-content: center;
}

.cus-modal-box {
  position: relative;
  max-width: 520px;
  background: #fff;
  margin: 5vh auto;
  padding: 25px;
  border-radius: 12px;
  z-index: 2;
  animation: scaleIn 0.25s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.cus-modal-close {
  position: absolute;
  right: 12px;
  top: 10px;
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
}

.cus-modal-body {
  max-height: calc(85vh - 90px);
  overflow-y: auto;
  padding-right: 6px;
}

// ===========================
// COMMON FORM STYLES
// =========================== */

/* Form */
.cus-form-group {
  margin-bottom: 12px;
}

.cus-form-group label {
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.cus-form-group input,
.cus-form-group textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.cus-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}
