/* =========================================================
   NWSGS Presenter Update System
   File: presenter-update-system.css
   ========================================================= */

/* ---------------------------------------------------------
   Hide default page title / theme page header on the
   Update Presenter Profile page
   Page ID = 18583
   --------------------------------------------------------- */
.page-id-18583 .entry-header,
.page-id-18583 .entry-title,
.page-id-18583 .page-title,
.page-id-18583 .header-post-title-container,
.page-id-18583 .post-header,
.page-id-18583 .page-header {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.page-id-18583 .main-content-section,
.page-id-18583 #main,
.page-id-18583 .inner-wrap,
.page-id-18583 .site-content,
.page-id-18583 .content-area {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* ---------------------------------------------------------
   Main wrapper
   --------------------------------------------------------- */
.nwsgs-pu-wrap {
  max-width: 980px;
  margin: 8px auto 24px;
  padding: 0 18px 42px;
  color: #243447;
}

.nwsgs-pu-box {
  background: #fdfefe;
  border: 1px solid #d8e2ec;
  border-radius: 20px;
  padding: 28px 24px;
}

.nwsgs-pu-box h2 {
  margin: 0 0 12px;
  color: #5a344d;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 500;
}

.nwsgs-pu-box p {
  line-height: 1.7;
}

/* ---------------------------------------------------------
   Intro / messages
   --------------------------------------------------------- */
.nwsgs-pu-intro {
  margin: 0 0 20px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #d8e2ec;
  border-radius: 14px;
}

.nwsgs-pu-errors {
  margin: 0 0 20px;
  padding: 14px 16px;
  background: #fff3f3;
  border: 1px solid #efc1c1;
  border-radius: 14px;
  color: #7a1f1f;
}

.nwsgs-pu-errors ul {
  margin: 0;
  padding-left: 18px;
}

/* ---------------------------------------------------------
   Current photo block
   --------------------------------------------------------- */
.nwsgs-pu-current-photo {
  margin: 0 0 26px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #d8e2ec;
  border-radius: 14px;
}

.nwsgs-pu-current-photo p {
  margin: 0 0 10px;
}

.nwsgs-pu-current-photo img {
  display: block;
  width: 180px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 14px;
  border: 1px solid #d8e2ec;
}

/* ---------------------------------------------------------
   Form layout
   --------------------------------------------------------- */
.nwsgs-pu-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

/* Full-width fields for long content */
.nwsgs-pu-field:has(textarea),
.nwsgs-pu-field:has(input[type="file"]) {
  grid-column: 1 / -1;
}

/* Fallback classes if :has support is limited somewhere */
.nwsgs-pu-field.nwsgs-pu-field-full {
  grid-column: 1 / -1;
}

.nwsgs-pu-field {
  min-width: 0;
}

.nwsgs-pu-field label {
  display: block;
  margin: 0 0 8px;
  font-weight: 700;
  color: #5a344d;
  line-height: 1.35;
}

.nwsgs-pu-required {
  color: #b3261e;
}

.nwsgs-pu-field input[type="text"],
.nwsgs-pu-field input[type="email"],
.nwsgs-pu-field input[type="url"],
.nwsgs-pu-field input[type="file"],
.nwsgs-pu-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cfd9e3;
  border-radius: 12px;
  background: #fff;
  color: #243447;
  font-size: 15px;
  line-height: 1.5;
  box-sizing: border-box;
  display: block;
}

.nwsgs-pu-field textarea {
  resize: vertical;
  min-height: 120px;
}

.nwsgs-pu-field input:focus,
.nwsgs-pu-field textarea:focus {
  outline: none;
  border-color: #6f96b6;
  box-shadow: 0 0 0 3px rgba(111, 150, 182, 0.15);
}

.nwsgs-pu-help {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #5a6b7b;
}

.nwsgs-pu-checkbox {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 500 !important;
  color: #243447 !important;
  margin-top: 2px;
}

.nwsgs-pu-checkbox input[type="checkbox"] {
  width: auto;
  margin: 0;
}

/* ---------------------------------------------------------
   Button row
   --------------------------------------------------------- */
.nwsgs-pu-actions {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.nwsgs-pu-btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  background: #6f96b6;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid #6f96b6;
  cursor: pointer;
  transition: all 0.18s ease;
}

.nwsgs-pu-btn:hover,
.nwsgs-pu-btn:focus {
  background: #5e84a3;
  border-color: #5e84a3;
  color: #fff;
}

/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */
@media (max-width: 780px) {
  .nwsgs-pu-form {
    grid-template-columns: 1fr;
  }

  .nwsgs-pu-actions {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  .nwsgs-pu-wrap {
    padding: 0 14px 32px;
  }

  .nwsgs-pu-box {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .nwsgs-pu-box h2 {
    font-size: 26px;
  }
}