/* University Profile Search Form Styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.loader-wrapper {
  text-align: center;
  padding: 30px;
  max-width: 500px;
  margin: auto;
}

.loading-text {
  font-size: 18px;
  font-weight: 600;
  color: #0a1f8f;
  margin-bottom: 15px;
}

/* PROGRESS BAR */
.progress-bar {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

/* ANIMATED FILL */
#progress-fill {
  height: 100%;
  width: 0%;
  background: #6fcf97 !important;
  border-radius: 20px;
  transition: width 0.4s ease;
  display: block;
}


.ups-container {
  max-width: 600px;
  margin: 0 auto;
  /*     min-height: 100vh;     */
}

/* Search history detail: reuse service form markup inside My Account (no nested max-width). */
.ups-account-record-form-wrap .ups-container--account-prefill {
  max-width: 100%;
  margin: 0;
  width: 100%;
}

h1 {
  text-align: center;
  color: #333;
  margin-bottom: 10px;
  font-size: 28px;
}

div#api-message {
  margin-top: 23px;
  text-align: center;
  color: #000000;
  font-size: 15px;
  font-weight: 500;
  line-height: 19px;
}

.header_row_actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 10px;
}
.ups-clear-form-btn {
  border: 1px solid #070a8c;
  /* color: #FFF !important; */
  background: #fff;
  padding: 5px 10px !important;
  font-size: 15px !important;
  text-transform: capitalize !important;
}
.ups-clear-form-btn:disabled {
  border-color: #b9bfd3;
  color: #b9bfd3;
  cursor: not-allowed;
}

div#api-message .gpa-normalization-msg {
  margin: 20px;
  font-size: 19px;
  line-height: 1.45;
  color: #1a1a1a;
  font-weight: 600;
  letter-spacing: 0.5px;
}

div#api-message .ups-report-email-note {
  margin: 12px auto 0;
  max-width: 520px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: #070a8c;
}

/*
 * Wide cells + horizontal scroll on the public search page only.
 * My Account saved records use #ups-results.ups-record-results-php — fixed cell widths
 * break normal <table> column layout there.
 */
#ups-results:not(.ups-record-results-php) td,
#ups-results:not(.ups-record-results-php) td span {
  font-size: 15px !important;
  min-width: 220px !important;
  line-height: 1.6 !important;
  color: #000 !important;
/*   width: 220px !important; */
/*   max-width: 220px; */
  white-space: normal !important;
}

.subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 40px;
  font-size: 14px;
}

#combo-selector button.select-form {
    cursor: pointer;
}

/* Service Selection Step */
#service_selection_step {
  display: none;
  background: white;
  padding: 40px 30px;
  /* border-radius: 8px; */
}

/* .ups-container #service_selection_step, .ups-container #ups-form{
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.18);
} */

#compare_management {
  clip: unset !important;
  position: unset !important;
}

#service_selection_step.active {
  display: block;
}

.service_options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.service_radio_group {
  position: relative;
}

.service_radio_group input[type="radio"] {
  display: none;
}

.service_radio_label {
  display: block;
  width: 100%;
  padding: 20px 15px;
  border: 2px solid #070a8c;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: #000;
  transition: all 0.3s ease;
  background-color: white;
}

.service_radio_group input[type="radio"]:checked + .service_radio_label {
  border-color: #4caf50;
  background-color: #f0f8f0;
  color: #4caf50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.service_radio_label:hover {
  border-color: #999;
  background-color: #f9f9f9;
}

/* Form Section */
#form_section {
  display: none;
  background: white;
  padding: 40px 30px;
  border-radius: 8px;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
  animation: slideIn 0.4s ease-out;
}

#form_section.active {
  display: block;
}

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

/* Single field */
input.error,
select.error {
  border-color: #e63946 !important;
}

/* Grouped fields */
.error-group {
  border: 1px solid #e63946 !important;
  padding: 8px;
  border-radius: 6px;
}

.form_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #eee;
}

.form_title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.service_badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: #4caf50;
  color: white;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-left: 10px;
}

.change_service_btn {
  background: none;
  border: none;
  color: #4caf50;
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  margin-left: 10px;
}

.change_service_btn:hover {
  color: #45a049;
}

.change_service_btn.hidden {
  display: none;
}

.header_row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  align-items: flex-end;
}

.header_row label {
  font-weight: 500;
  color: #333;
  margin: 0;
}

#ups-form button.submit-btn,
#ups-form-plus button.submit-btn,
#ups-form-mba button.submit-btn {
  background-color: #070a8c !important;
  color: #fff !important;
  padding: 10px 13px !important;
  width: max-content !important;
}

.compare_input {
  display: flex;
  align-items: center;
  gap: 10px;
}

.woocommerce-account-ups-search-record nav.woocommerce-MyAccount-navigation {
    display: none !important;
    width: 0% !important;
    float: unset !important;
}

.woocommerce-account-ups-search-record .woocommerce-MyAccount-content{
    float: unset;
    width: 100%;
}

.compare_input label {
  font-weight: 500;
  color: #555;
  cursor: pointer;
  user-select: none;
  margin: 0;
}

.compare_input input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.compare_input.hidden {
  display: none;
}

select,
input[type="text"],
input[type="email"],
input[type="number"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background-color: white;
  margin-bottom: 15px;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

select:hover,
input:hover {
  border-color: #999;
}

select:focus,
input:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

select:disabled {
  background-color: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}

label {
  display: block;
  font-weight: 600 !important;
  color: #333;
  margin-top: 15px !important;
  margin-bottom: 8px;
}

label.required::after {
  content: "*";
  color: #d32f2f;
  margin-left: 4px;
}

/* Service 2 — optional demographics (fieldset matches form label rhythm) */
#ups-form-plus .ups-demographics-fieldset,
#ups-form-mba .ups-demographics-fieldset {
  border: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

#ups-form-plus .ups-demographics-fieldset legend,
#ups-form-mba .ups-demographics-fieldset legend {
  display: block;
  width: 100%;
  font-weight: 600;
  color: #333;
  margin-top: 15px;
  margin-bottom: 8px;
  padding: 0;
  font-size: 14px;
}

/* Service 1 — India UG rank/cutoff tab */
.ups-india-tab-intro {
  padding: 12px;
}

.ups-india-tab-intro p {
  margin: 0 0 8px 0;
  color: #333;
}

.ups-india-tab-note {
  padding: 16px;
  background: #f5f7fa;
  border-radius: 4px;
  color: #333;
  line-height: 1.5;
}

.ups-india-rank-table tbody tr.ups-india-row-even td {
  background-color: #ffffff !important;
}

.ups-india-rank-table tbody tr.ups-india-row-odd td {
  background-color: #e8f5e9 !important;
}

.ups-category-header {
  background: #f9fafb;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 16px;
  color: #111827;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #e5e7eb !important;
  transition: background 0.2s;
}

.ups-category-header .collapsed {
  border: 1px solid #e5e7eb;
}

.ups-svc2-india-section {
  margin-bottom: 25px;
}

.selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

label.error {
  color: red !important;
  font-size: 15px;
  line-height: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  padding: 6px 12px;
  font-size: 14px;
  color: #333;
  margin-top: 10px;
}

button.remove-btn {
  background: transparent !important;
  padding: 0 !important;
}
.tag button {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 18px;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.tag button:hover {
  color: #555;
}

.no-message {
  color: #999;
  font-size: 14px;
}

.max-limit-message {
  color: #d32f2f;
  font-size: 13px;
  margin-top: 10px;
  font-weight: 500;
}

.gmat_box {
  margin-bottom: 15px;
}

.gmat_box label {
  display: inline-block;
  margin-right: 20px;
  font-weight: normal;
}

.gmat_box input[type="radio"] {
  width: auto;
  margin-right: 8px;
  margin-bottom: 0;
}

.gpa-input-group {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  margin-bottom: 15px;
}

.gpa-input-group input,
.gpa-input-group select {
  margin-bottom: 0;
}

.ups-field-hint {
  font-size: 13px;
  color: #666;
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.ups-standardized-tests {
  margin-bottom: 10px;
}

.ups-test-row {
  margin-bottom: 12px;
}

.ups-test-row-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ups-test-row-inner .ups-test-select {
  flex: 1 1 160px;
  visibility: unset;
  min-width: 140px;
  visibility: visible !important;
}

.ups-test-row-inner .ups-test-other-name {
  flex: 1 1 140px;
  min-width: 120px;
}

.ups-test-row-inner .ups-test-score {
  flex: 1 1 120px;
  min-width: 90px;
}

.ups-test-select,
.ups-test-score,
.ups-test-other-name {
  width: 100%;
  margin-bottom: 0;
  box-sizing: border-box;
}

.ups-test-remove {
  background: #2d2d8c;
  color: #fff !important;
  border: none;
  border-radius: 4px;
  width: 36px;
  height: 36px;
  /* padding: 7px 15px 10px 15px !important; */
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.ups-test-remove:hover {
  background: #c62828;
}

.ups-add-test-btn {
  background: #e8f5e9 !important;
  color: #2e7d32 !important;
  border: 1px solid #a5d6a7 !important;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-bottom: 20px;
  margin-top: 0;
  padding: 10px;
}

.ups-add-test-btn:hover {
  background: #c8e6c9;
}

button[type="submit"] {
  background-color: #4caf50;
  color: white;
  padding: 14px 30px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  width: 100%;
  margin-top: 20px;
}

button[type="submit"]:hover {
  background-color: #45a049;
}

button[type="submit"]:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

#ups-results {
  background-color: #f9f9f9;
  animation: slideIn 0.4s ease-out;
  user-select: none;
}

/*
 * Service 1 (UniMatch) — tab strip + pane layout.
 * Lives in CSS (not injected with admissions HTML) so skeleton loading shows the same
 * horizontal navy bar as the loaded state (second reference image).
 */
#ups-results.ups-service-1 .ups-tabs {
  background: #ffffff;
  border: 1px solid #ebebeb;
}

#ups-results.ups-service-1 .ups-s1-accordion-group {
  display: grid;
  gap: 14px;
}

#ups-results.ups-service-1 .ups-s1-accordion {
  border: 1px solid #ebebeb;
  background: #fff;
  overflow: hidden;
}

#ups-results.ups-service-1 .ups-s1-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border: 0;
  background: #f9fafb;
  color: #111827;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

#ups-results.ups-service-1 .ups-s1-accordion-header:hover {
  background: #f3f4f6;
}

#ups-results.ups-service-1 .ups-s1-accordion-icon {
  font-size: 13px;
  transition: transform 0.2s ease;
}

#ups-results.ups-service-1 .ups-s1-accordion.is-open .ups-s1-accordion-icon {
  transform: rotate(180deg);
}

#ups-results.ups-service-1 .ups-s1-accordion-body {
  border-top: 1px solid #ebebeb;
}

#ups-results.ups-service-1 > .ups-tabs > ul.tab-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 28px;
  padding: 16px 20px;
  list-style: none;
  margin: 0;
  background: #070a8c;
}

#ups-results.ups-service-1 .ups-s1-accordion-body .ups-tabs > ul.tab-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 28px;
  padding: 16px 20px;
  list-style: none;
  margin: 0;
  background: #070a8c;
}

#ups-results.ups-service-1 > .ups-tabs > ul.tab-nav li {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  padding-bottom: 6px;
  margin: 0;
}

#ups-results.ups-service-1 .ups-s1-accordion-body .ups-tabs > ul.tab-nav li {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  padding-bottom: 6px;
  margin: 0;
}

#ups-results.ups-service-1 > .ups-tabs > ul.tab-nav li.active {
  font-weight: 700;
  border-bottom-color: #fff;
}

#ups-results.ups-service-1 .ups-s1-accordion-body .ups-tabs > ul.tab-nav li.active {
  font-weight: 700;
  border-bottom-color: #fff;
}

#ups-results.ups-service-1 .tab-content,
.ups-tabs.ups-service-1 .tab-content {
  display: none;
  /* padding: 16px 20px 24px; */
  max-height: min(70vh, 720px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

#ups-results.ups-service-1 .tab-content.active,
.ups-tabs.ups-service-1 .tab-content.active {
  display: block;
}

/* Service 1 tab tables: match prior inline admissions styles (sticky headers / first column) */
#ups-results.ups-service-1 .tab-content .ups-table th,
#ups-results.ups-service-1 .tab-content .ups-table td,
.ups-tabs.ups-service-1 .tab-content .ups-table th,
.ups-tabs.ups-service-1 .tab-content .ups-table td {
  font-size: 15px !important;
}

#ups-results.ups-service-1 .tab-content .ups-table thead th,
.ups-tabs.ups-service-1 .tab-content .ups-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  min-width: 157px;
  padding: 14px 12px;
  text-align: left;
  font-weight: 600;
  color: #374151;
  border-bottom: 2px solid #e5e7eb;
  background: #e2e3ee !important;
  white-space: nowrap;
}

#ups-results.ups-service-1 .tab-content .ups-table tbody td,
.ups-tabs.ups-service-1 .tab-content .ups-table tbody td {
  padding: 14px 12px;
  color: #111827;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

#ups-results.ups-service-1 .tab-content .ups-table th:first-child,
#ups-results.ups-service-1 .tab-content .ups-table td:first-child,
.ups-tabs.ups-service-1 .tab-content .ups-table th:first-child,
.ups-tabs.ups-service-1 .tab-content .ups-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 180px;
  white-space: normal !important;
}

#ups-results.ups-service-1 .tab-content .ups-table thead th:first-child,
.ups-tabs.ups-service-1 .tab-content .ups-table thead th:first-child {
  z-index: 4;
  background-color: #e2e3ee !important;
}

#ups-results.ups-service-1 .tab-content .ups-table tbody tr:hover td,
.ups-tabs.ups-service-1 .tab-content .ups-table tbody tr:hover td {
  filter: brightness(0.97);
}

/*
 * Service 2 (UniMatch Plus) — horizontal navy tab bar per accordion category.
 * Injected <style> in renderResults does not run during skeleton; these rules match loaded + skeleton.
 * Descendant ul (not direct child): summary-first layout places tabs inside .ups-svc2-detail-drawer-php.
 */
#ups-results .ups-category-block.ups-svc2 .ups-category-content ul.ups-tab-nav.tab-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 24px;
  padding: 16px 20px;
  list-style: none;
  margin: 0;
  background: #070a8c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

#ups-results .ups-category-block.ups-svc2 .ups-category-content ul.ups-tab-nav.tab-nav li {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  padding-bottom: 6px;
  margin: 0;
}

#ups-results .ups-category-block.ups-svc2 .ups-category-content ul.ups-tab-nav.tab-nav li:not(.active) {
  opacity: 0.88;
}

#ups-results .ups-category-block.ups-svc2 .ups-category-content ul.ups-tab-nav.tab-nav li.active {
  font-weight: 700;
  opacity: 1;
  border-bottom-color: #fff;
}

.ups-results-container {
  gap: 20px;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: column;
}

/* Pairs step: Country 1 column, then Country 2 column (lists); tint by category block */
.ups-comparison-results .ups-comp-block[data-category="ambitious"] .ups-comp-pairs-list li {
  background-color: #fce4d6 !important;
}

.ups-comparison-results .ups-comp-block[data-category="reach"] .ups-comp-pairs-list li {
  background-color: #d9eaf7 !important;
}

.ups-comparison-results .ups-comp-block[data-category="safe"] .ups-comp-pairs-list li {
  background-color: #e2f0d9 !important;
}

#ups-results h3 {
  color: #333;
  margin-top: 0;
  margin-bottom: 15px;
}

#ups-results pre {
  background-color: white;
  padding: 15px;
  border-radius: 4px;
  overflow-x: auto;
}

.section-divider {
  height: 1px;
  background-color: #eee;
  margin: 25px 0;
}

.error-message {
  background-color: #ffebee;
  border-left: 4px solid #d32f2f;
  padding: 15px;
  border-radius: 4px;
  color: #c62828;
  margin-bottom: 20px;
}

.ups-info-message {
  background-color: #e3f2fd;
  border-left: 4px solid #1565c0;
  padding: 15px;
  border-radius: 4px;
  color: #0d47a1;
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.6;
}

.ups-warning-message {
  background-color: #fff3e0;
  border-left: 4px solid #e65100;
  padding: 15px;
  border-radius: 4px;
  color: #bf360c;
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.6;
}

.ups-message-action {
  text-align: center;
  margin-top: 0;
}

.ups-message-action a {
  display: inline-block;
  padding: 10px 24px;
  background-color: #070A8C;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.ups-message-action a:hover {
  background-color: #050770;
  color: #fff;
}

/* =====================================================
   PREMIUM (SERVICE 3) HERO
   ===================================================== */
.ups-premium-hero {
  background: #ffffff;
  padding: 48px 36px;
  text-align: center;
  border: 1px solid #EBEBEB;
  border-radius: 8px;
}

.ups-premium-title {
  font-size: 28px;
  font-weight: 700;
  color: #070A8C;
  margin: 0 0 8px;
}

.ups-premium-subtitle {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 6px;
}

.ups-premium-desc {
  font-size: 15px;
  color: #555;
  margin: 0 0 28px;
}

.ups-premium-features {
  list-style: none;
  padding: 0;
  margin: 0 auto 32px;
  max-width: 380px;
  text-align: left;
}

.ups-premium-features li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 15px;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
}

.ups-premium-features li:last-child {
  border-bottom: none;
}

.ups-premium-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 8px;
  color: #070A8C;
  font-weight: 700;
  font-size: 16px;
}

.ups-premium-cta-label {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 20px;
}

.ups-premium-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 520px;
  margin: 0 auto;
}

.ups-premium-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 2px solid transparent;
}

.ups-premium-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.ups-premium-btn--basic {
  background: #070A8C;
  border-color: #070A8C;
}

.ups-premium-btn--basic:hover {
  background: #050770;
}

.ups-premium-btn--plus {
  background: #1a6b3c;
  border-color: #1a6b3c;
}

.ups-premium-btn--plus:hover {
  background: #145530;
}

.ups-premium-btn__title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.ups-premium-btn__desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 600px) {
  .ups-premium-hero {
    padding: 32px 20px;
  }

  .ups-premium-title {
    font-size: 22px;
  }

  .ups-premium-buttons {
    grid-template-columns: 1fr;
  }
}

.error-text {
  color: #d32f2f;
  font-size: 13px;
  margin-top: -10px;
  margin-bottom: 10px;
  display: block;
  font-weight: 500;
}

.info-message {
  background-color: #e3f2fd;
  border-left: 4px solid #4caf50;
  padding: 15px;
  border-radius: 4px;
  color: #1565c0;
  margin-bottom: 20px;
  font-size: 14px;
}

/* Error state for form fields */
input.error,
select.error {
  border-color: #d32f2f !important;
  box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.1) !important;
}

input[type="radio"] + label::before {
  content: none;
  display: none;
}

.service_step_title {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 40px 0 15px;
}

.ups-container h1 {
  font-size: 16px;
  font-weight: 600;
  font-family: "DM Sans", sans-serif;
  text-align: start;
  margin-bottom: 10px;
}

hr,
.elementor hr {
  margin: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.ups-container select,
.ups-container number,
.ups-container input[type="number"],
.ups-container input[type="email"],
.ups-container input[type="text"] {
  border: 1px solid #9C9DD1 !important;
  padding: 6px 10px !important;
}

.ups-container textarea.ups-textarea-wide {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #9c9dd1 !important;
  padding: 8px 10px !important;
  margin-top: 6px;
  margin-bottom: 12px;
  font-family: inherit;
  font-size: 14px;
  min-height: 100px;
}

.ups-history-form-summary .filled.fill_inited{
  cursor: not-allowed !important;
  color: #918d89 !important;
}

.ups-container input[type="file"]#resume_file {
  margin-top: 6px;
  margin-bottom: 16px;
  max-width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
  .ups-container {
    padding: 10px;
  }

  h1 {
    font-size: 24px;
  }

  #form_section,
  #service_selection_step {
    padding: 20px 15px;
  }

  .service_options {
    grid-template-columns: 1fr;
  }

  .form_header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .header_row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Loading messages animation */
.loading-msg-container {
  margin-top: 25px;
  margin-bottom: 25px;
  text-align: center;
  min-height: 50px;
}

.loading-msg {
  font-size: 17px;
  color: #333;
  animation: fadeInUp 0.6s ease-out;
  display: block;
}

.highlight-msg {
  color: #070a8c;
  font-weight: 600;
  position: relative;
  padding-bottom: 12px;
  display: inline-block;
}

.highlight-msg::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #4caf50, #81c784);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(76, 175, 80, 0.4);
  animation: premiumPulse 2s ease-in-out infinite;
}

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

@keyframes premiumPulse {
  0% {
    width: 40px;
    opacity: 0.7;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
  }
  50% {
    width: 120px;
    opacity: 1;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.6);
  }
  100% {
    width: 40px;
    opacity: 0.7;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
  }
}

/* UPS Table & Results Styling */
.ups-table {
  border-collapse: collapse;
  font-size: 14px;
  background: #ffffff;
  width: 100% !important;
  border: 1px solid #ebebeb;
}

.ups-table thead th {
  background: #e2e3ee !important;
  padding: 12px 15px;
  text-align: left;
  font-weight: 500;
  color: #374151;
  border-bottom: 2px solid #eaeaea;
  white-space: nowrap;
  font-size: 18px;
}

.ups-table tbody td {
  padding: 12px 15px;
  border-bottom: 1px solid #eaeaea;
  vertical-align: top;
  color: #4b5563;
}

/*
 * Generic .ups-table fallback (low specificity contexts only).
 * Service 1 and Service 2 override below.
 */
.ups-table tbody tr:nth-child(odd) td,
.ups-table tbody tr:nth-child(odd) td:first-child {
  background-color: #fafafa !important;
}

.ups-table tbody tr:nth-child(even) td,
.ups-table tbody tr:nth-child(even) td:first-child {
  background-color: #ffffff !important;
}

/* --- Service 1 (UniMatch): alternating tbody rows --- */
#ups-results.ups-service-1 .ups-table tbody tr:nth-child(odd) td,
#ups-results.ups-service-1 .ups-table tbody tr:nth-child(odd) td:first-child {
  background-color: #ffffff !important;
}

#ups-results.ups-service-1 .ups-table tbody tr:nth-child(even) td,
#ups-results.ups-service-1 .ups-table tbody tr:nth-child(even) td:first-child {
  background-color: #e8f5e9 !important;
}

#ups-results.ups-service-1 .ups-table tbody tr:hover td {
  filter: brightness(0.97);
}

/* --- Service 2 (UniMatch Plus): solid row color by category class on <tr> (no nth-child) --- */
.ups-results-container .ups-table tbody tr.ambitious td,
.ups-results-container .ups-table tbody tr.ambitious td:first-child,
.ups-results-container .ups-table tbody tr.ambitious td.sticky-col,
.ups-comparison-results .ups-table tbody tr.ambitious td,
.ups-comparison-results .ups-table tbody tr.ambitious td.sticky-col {
  background-color: #fce4d6 !important;
}

.ups-results-container .ups-table tbody tr.reach td,
.ups-results-container .ups-table tbody tr.reach td:first-child,
.ups-results-container .ups-table tbody tr.reach td.sticky-col,
.ups-comparison-results .ups-table tbody tr.reach td,
.ups-comparison-results .ups-table tbody tr.reach td.sticky-col {
  background-color: #d9eaf7 !important;
}

.ups-results-container .ups-table tbody tr.safe td,
.ups-results-container .ups-table tbody tr.safe td:first-child,
.ups-results-container .ups-table tbody tr.safe td.sticky-col,
.ups-comparison-results .ups-table tbody tr.safe td,
.ups-comparison-results .ups-table tbody tr.safe td.sticky-col {
  background-color: #e2f0d9 !important;
}

.ups-results-container .ups-table tbody tr:hover td,
.ups-comparison-results .ups-table tbody tr:hover td {
  filter: brightness(0.97);
}

/* Sticky first <thead> row (Service 2 live, comparison tables, any .sticky-thead) */
.sticky-thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #e2e3ee !important;
  color: #000 !important;
  box-shadow: 0 1px 0 #e5e7eb;
}

.sticky-thead th:first-child {
  z-index: 4;
}

/* Service 2 + saved records: scroll tall tables; thead stays visible inside the pane */
.ups-results-container .ups-table-pane,
.ups-comparison-results .ups-table-pane {
  max-height: min(70vh, 720px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.ups-results-container .ups-table-pane .ups-table thead th,
.ups-comparison-results .ups-table-pane .ups-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #e2e3ee !important;
  box-shadow: 0 1px 0 #e5e7eb;
}

.ups-results-container .ups-table-pane .ups-table thead th:first-child,
.ups-comparison-results .ups-table-pane .ups-table thead th:first-child {
  z-index: 4;
}

.ups-table th:first-child,
.ups-table td:first-child {
  position: sticky;
  left: 0;
  /*   background-color: #fff !important; */
  z-index: 2;
  min-width: 180px;
  border-right: 1px solid #ebebeb;
}

.ups-table thead th:first-child {
  z-index: 4;
  background: #e2e3ee !important;
}

/* Category & Comparison Blocks */
.ups-comp-block {
  margin-bottom: 25px;
  border: 1px solid #e5e7eb;
  background: #fff;
  /* border-radius: 4px; */
  overflow: hidden;
}

.ups-comp-header {
  background: #f9fafb;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 16px;
  color: #111827;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.2s;
}

.ups-comp-header:hover {
  background: #f3f4f6;
}

.ups-comp-body {
  padding: 0; /* Keep it tight for the tab bar */
  display: none; /* Collapsed by default */
}

.ups-comp-block.active .ups-comp-body {
  display: block;
}

/* Comparison Tabs */
.ups-comp-tabs-nav {
  display: flex;
  gap: 30px;
  padding: 0 25px;
  background: #070a8c;
  list-style: none;
  margin: 0;
  overflow-x: auto;
}

.ups-comp-tabs-nav li {
  padding: 15px 0;
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
  opacity: 0.8;
  white-space: nowrap;
  position: relative;
  font-weight: 500;
}

.ups-comp-tabs-nav li:hover {
  opacity: 1;
}

.ups-comp-tabs-nav li.active {
  opacity: 1;
  font-weight: 600;
}

.ups-comp-tabs-nav li.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #ffffff;
}

.ups-comp-pane {
  display: none;
  padding: 20px;
}

.ups-comp-pane.active {
  display: block;
}

/* Specific button area */
.details-btn-area {
  padding: 15px 20px;
  background: #fdfdfd;
  border-bottom: 1px solid #eee;
}

.btn-view-details {
  background: #070a8c;
  color: white;
  border: none;
  padding: 8px 20px;
  /* border-radius: 4px; */
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-view-details:hover {
  background: #000450;
}

/* Pairs step: two columns (all Country 1, then all Country 2) */
.ups-comp-pairs-split {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 0;
}

.ups-comp-pairs-col {
  flex: 1 1 220px;
  min-width: 0;
  border: 1px solid #e5e7eb;
  /* border-radius: 6px; */
  overflow: hidden;
  background: #fff;
}

.ups-comp-pairs-col-head {
  background: #e2e3ee !important;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #111827;
  font-size: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.ups-comp-pairs-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ups-comp-pairs-list li {
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  font-weight: 500;
  color: #111827;
  font-size: 15px;
}

.ups-comp-pairs-list li:last-child {
  border-bottom: none;
}

/* Legacy pairs table (if used elsewhere) */
.ups-comp-pairs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
}

.usage-msg {
  margin-bottom: 20px;
}

.refining-progress-wrap {
  margin-top: 10px;
  width: min(420px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.refining-progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.refining-progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1a5cff, #070a8c);
  transition: width 0.35s ease;
}

.refining-progress-percent {
  margin-top: 6px;
  font-size: 12px;
  color: #334155;
  font-weight: 600;
}

.ups-comp-pairs-table th {
  background: #e2e3ee !important;
  border-bottom: 1px solid #fff !important;
  padding: 12px 20px;
  text-align: left;
  font-weight: 500;
  color: #000;
  font-size: 17px;
}

.ups-comp-pairs-table td {
  padding: 14px 20px;
  border-bottom: 1px solid #f9fafb;
  font-weight: 500;
  color: #111827;
}

.extra-item {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.extra-item strong {
  color: #1f2937;
  margin-right: 5px;
}

/* Loading Sequences */
.loading-pulse {
  animation: upsPulse 1.5s infinite;
  color: red;
  font-weight: 700;
  display: block;
  padding: 20px;
  text-align: center;
}

.loading-pulse-message {
  color: #1a5cff;
  font-weight: 700;
  display: block;
  text-align: center;
}

@keyframes upsPulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

/* =====================================================
   SKELETON LOADER FOR PROGRESSIVE TAB LOADING
   ===================================================== */

.ups-tab-loading {
  padding: 16px;
  overflow-x: auto;
}

.ups-skeleton-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.ups-skeleton-table thead th {
  padding: 14px 12px;
  background: #e2e3ee !important;
  border-bottom: 1px solid #eaeaea;
}

.ups-skeleton-table tbody td {
  padding: 16px 12px;
  border-bottom: 1px solid #f3f4f6;
}

.ups-skeleton-bar {
  display: inline-block;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 200% 100%;
  animation: upsShimmer 1.5s ease-in-out infinite;
}

@keyframes upsShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Service 2 admissions: shimmer placeholders while detail API is in flight (name-only rows) */
.ups-svc2-adm-sk {
  min-height: 14px;
}

#ups-results .ups-results-container .ups-table tbody tr.ups-svc2-row-pending td {
  background-color: rgba(255, 247, 237, 0.55);
}

#ups-results .ups-results-container .ups-table tbody tr.ups-svc2-row-pending td.sticky-col {
  background-color: #fff7ed;
  font-weight: 600;
}

.ups-tab-error {
  padding: 24px;
  text-align: center;
  color: #dc2626;
  font-weight: 500;
  font-size: 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  margin: 16px;
}

/* My Account — search history */
.ups-history-intro {
  margin-bottom: 1rem;
  color: #4b5563;
  font-size: 14px;
}

.ups-history-order-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.ups-history-order-filter label {
  font-weight: 600;
}

.ups-history-table {
  margin-top: 0.5rem;
}

.ups-history-groups {
  display: grid;
  gap: 1.25rem;
}

.ups-history-order-group {
  /* border: 1px solid #e5e7eb; */
/*   border-radius: 8px; */
  /* background: #fff; */
  padding: 12px;
}

.ups-history-order-title {
  margin: 0 0 8px;
  font-size: 15px;
  color: #4b5563;
  font-weight: 500;
}

.ups-history-service-group + .ups-history-service-group {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #d1d5db;
}

.ups-history-service-title {
  margin: 0;
  color: #111827;
  font-size: 24px;
  font-weight: 500;
}

.ups-history-card-list {
  display: grid;
  gap: 8px;
}

.ups-history-card {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 2px;
  background: #f7f7f7;
}

.ups-history-card-flag {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
/*   border: 1px solid #e5e7eb; */
/*   border-radius: 2px; */
/*   background: #fff; */
  font-size: 26px;
  line-height: 1;
  font-weight: 600;
  color: #4b5563;
  overflow: hidden;
}

.ups-history-card-meta {
  margin: 0 0 2px;
  font-size: 12px;
  color: #737373;
}

.ups-history-card-fields {
  margin: 0;
  color: #111827;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ups-history-card-main {
  flex: 1;
  min-width: 0;
}

.ups-history-card-action a {
  white-space: nowrap;
  color: #6b21a8;
  font-weight: 600;
  font-size: 15px;
}

.ups-history-card-action {
  margin-left: auto;
}

@media (max-width: 640px) {
  .ups-history-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .ups-history-card-fields {
    font-size: 18px;
  }

  .ups-history-card-action {
    margin-left: 0;
  }
}

.ups-history-form-summary .ups-history-dl {
  display: grid;
  grid-template-columns: minmax(120px, 220px) 1fr;
  gap: 8px 16px;
  font-size: 14px;
}

.ups-history-form-summary dt {
  font-weight: 600;
  color: #374151;
}

.ups-history-form-summary dd {
  margin: 0;
  color: #111827;
  word-break: break-word;
}

.ups-meta-muted {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 1rem;
}

.ups-back-link {
  margin-bottom: 0.75rem;
}

.ups-history-tab-note {
  padding: 12px 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #374151;
  font-size: 14px;
  margin: 8px 0;
}

.woocommerce-MyAccount-content-ups-record .ups-history-results-wrap {
  margin-top: 1rem;
}

/* PHP-rendered record: tab strip (Service 1) */
.ups-record-php > ul.tab-nav.ups-record-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 0 0 0;
  padding: 14px 18px;
  background: #070a8c;
}

.ups-record-php > ul.tab-nav.ups-record-tab-nav li {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.ups-record-php > ul.tab-nav.ups-record-tab-nav li.active {
  border-bottom-color: #fff;
}

.ups-record-php > .tab-content {
  display: none;
  padding: 16px 0 24px;
}

.ups-record-php > .tab-content.active {
  display: block;
}

.ups-record-subheading {
  margin: 20px 0 10px;
  font-size: 15px;
  color: #111827;
}

.ups-comp-pairs-split-php {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 10px;
}

@media (max-width: 600px) {
  .ups-comp-pairs-split-php {
    grid-template-columns: 1fr;
  }
}

.ups-comp-pairs-col-php .ups-comp-pairs-col-head {
  font-weight: 600;
  margin-bottom: 8px;
}

.ups-comp-block-php {
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.ups-svc2-php .ups-category-header {
  background: #f3f4f6;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 15px;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  border-bottom: 1px solid #e5e7eb;
  transition: background 0.2s ease;
}

.ups-svc2-php .ups-category-header:hover {
  background: #e5e7eb;
}

.ups-svc2-php .ups-category-header-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.ups-svc2-php .ups-category-label {
  font-weight: 700;
}

.ups-svc2-php .ups-header-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: help;
}

.ups-svc2-php .ups-header-tooltip-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #6b7280;
  color: #4b5563;
  font-size: 11px;
  font-weight: 700;
  font-style: italic;
  line-height: 16px;
  text-align: center;
  background: #fff;
}

.ups-svc2-php .ups-header-tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  z-index: 50;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(100% + 8px);
  width: min(320px, 70vw);
  padding: 10px 12px;
  background: #1f2937;
  color: #f9fafb;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.ups-svc2-php .ups-header-tooltip:hover .ups-header-tooltip-text,
.ups-svc2-php .ups-header-tooltip:focus .ups-header-tooltip-text,
.ups-svc2-php .ups-header-tooltip:focus-within .ups-header-tooltip-text {
  visibility: visible;
  opacity: 1;
}

.ups-svc2-php .ups-category-header .toggle-icon {
  font-size: 12px;
  color: #6b7280;
  user-select: none;
  flex-shrink: 0;
}

/* Service 2 — summary-first layout (PHP history + comparison tiers) */
.ups-svc2-gpa-intro-php {
  text-align: center;
  margin: 20px;
  font-size: 19px;
  line-height: 1.45;
  color: #1a1a1a;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.ups-svc2-summary-split-php {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 0;
  background: #e5e7eb;
  border: 1px solid #e5e7eb;
}

.ups-svc2-summary-split-php--cols-1 {
  grid-template-columns: 1fr;
}

.ups-svc2-summary-split-php--cols-2 {
  grid-template-columns: 1fr 1fr;
}

.ups-svc2-summary-other-php {
  grid-column: 1 / -1;
}

.ups-svc2-summary-col-php,
.ups-svc2-summary-other-php {
  background: #fff;
  min-width: 0;
  overflow: hidden;
}

.ups-svc2-summary-col-head-php {
  background: #e2e3ee !important;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 15px;
  color: #111827;
  border-bottom: 1px solid #e5e7eb;
}

.ups-svc2-summary-list-php {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ups-svc2-summary-list-php li {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  font-weight: 500;
  font-size: 15px;
  color: #111827;
}

.ups-svc2-summary-list-php li:last-child {
  border-bottom: none;
}

.ups-svc2-summary-empty {
  color: #6b7280;
  font-weight: 400;
}

.ups-svc2-summary-split-php--ambitious .ups-svc2-summary-list-php {
  background: #fce4d6;
}

.ups-svc2-summary-split-php--reach .ups-svc2-summary-list-php {
  background: #d9eaf7;
}

.ups-svc2-summary-split-php--safe .ups-svc2-summary-list-php {
  background: #e2f0d9;
}

.ups-svc2-details-btn-area-php {
  margin: 0;
  border-top: 1px solid #e5e7eb;
}

.ups-svc2-summary-php{
  width: stretch !important;
}

.ups-svc2-summary-php .details-btn-area {
  background: #fdfdfd;
}

.ups-svc2-detail-drawer-php {
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

@media (max-width: 640px) {
  .ups-svc2-summary-split-php {
    grid-template-columns: 1fr;
  }
}

#ups-results .ups-category-block.ups-svc2 .ups-category-content .ups-tab-pane {
  background: #f9fafb;
  padding: 0;
}

/* Service 2 — India rank/cutoff as its own collapsible (outside tier tabs) */
.ups-svc2-india-section .ups-svc2-india-section-inner {
  padding: 16px 20px 20px;
}

.ups-svc2-india-section .ups-svc2-india-hint {
  margin-bottom: 12px;
  max-width: 900px;
}

.ups-user-dashboard {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ups-dashboard-header h2 {
  margin-bottom: 8px;
}

.ups-dashboard-header p {
  margin: 0;
  color: #4b5563;
}

.ups-dashboard-section {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
}

.ups-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.ups-service-card {
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #f9fafb;
  min-height: 90px;
  text-align: left;
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ups-service-card:hover {
  transform: translateY(-1px);
  border-color: #1d4ed8;
}

.ups-service-card.is-locked {
  opacity: 0.6;
  cursor: not-allowed;
}

.ups-service-card-title {
  display: block;
  font-weight: 600;
  color: #111827;
}

.ups-service-card-meta {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #6b7280;
}

.ups-dashboard-search-form {
  display: grid;
  gap: 10px;
}

.ups-dashboard-row label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.ups-dashboard-row select,
.ups-dashboard-row input {
  width: 100%;
}

.ups-dashboard-results,
.ups-purchase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.ups-result-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px;
  background: #fff;
}

.ups-result-card h4 {
  margin-top: 0;
  margin-bottom: 10px;
}

.ups-dashboard-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.ups-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ups-dashboard-logout-row {
  text-align: right;
}

.ups-logout-btn {
  min-width: 140px;
}

@media (max-width: 767px) {
  .ups-dashboard-section {
    padding: 16px;
  }

  .ups-dashboard-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .ups-dashboard-logout-row {
    text-align: left;
  }
}

.ups-my-services-section {  
  background: var(--surface-ivory);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}

.ups-my-services-section h3 {
  margin: 0 0 12px;
}

.ups-my-services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ups-my-service-card {
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 14px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

p.ups-my-service-attempts {
    margin: 0;
}

.ups-my-service-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ups-my-service-title {
  margin: 0;
  font-size: 19px;
  color: #111827;
}

.ups-my-service-actions a.btn1 {
    background: transparent !important;
    border: 1px solid #070a8c !important;
    color: #070a8c !important;
}

.ups-my-service-card .button {
    color: #fff !important;
    background: #1a5cff !important;
    line-height: 30px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
}

a.button-secondary {
    text-decoration: none;
    border-radius: 12px !important;
    font-size: 13px !important;
    border: 1px solid #1a5cff;
    padding: 13px;
}

.ups-my-services-empty {
  margin: 0;
  color: #6b7280;
}

.ups-history-results-wrap .ups-table tbody td {
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
    white-space: normal !important;
}

.ups-comparison-results.ups-record-php.ups-svc2-php {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 25px;
}

.ups-preview-used-note,
.ups-preview-quota-note {
  background: #eef3ff;
  border: 1px solid #d6e4ff;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 18px;
  color: #1b2340;
  font-size: 15px;
  line-height: 1.5;
}

.ups-preview-used-note a {
  color: #1a5cff;
  font-weight: 600;
}

.ups-preview-banner {
  background: #fff;
  border: 1px solid #e7e4dc;
  border-radius: 16px;
  padding: 22px 20px;
  margin: 0 0 22px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(20, 21, 26, 0.06);
}

.ups-preview-banner-title {
  font-size: 22px;
  font-weight: 700;
  color: #14151a;
  line-height: 1.25;
}

.ups-preview-banner-sub {
  margin-top: 8px;
  font-size: 16px;
  color: #14151a;
}

.ups-preview-banner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  background: #1a5cff;
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  padding: 12px 22px;
}

.ups-preview-banner-btn:hover {
  background: #1248d6;
}

.ups-preview-mode .ups-preview-locked {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
  opacity: 0.72;
}

.ups-preview-mode .ups-table tbody tr:hover td.ups-preview-locked,
.ups-preview-mode .ups-results-container .ups-table tbody tr:hover td.ups-preview-locked,
#ups-results.ups-preview-mode .ups-table tbody tr:hover td.ups-preview-locked,
#ups-results.ups-preview-mode .ups-table thead th.ups-preview-locked {
  filter: blur(6px);
}

.ups-preview-mode tr.ups-preview-row-locked td,
.ups-preview-mode tr.ups-preview-row-locked td.ups-preview-free,
.ups-preview-mode tr.ups-preview-row-locked td.sticky-col,
.ups-preview-mode .ups-table tbody tr.ups-preview-row-locked:hover td,
.ups-preview-mode .ups-table tbody tr.ups-preview-row-locked:hover td.ups-preview-free,
.ups-preview-mode .ups-table tbody tr.ups-preview-row-locked:hover td.sticky-col,
.ups-preview-mode .ups-results-container .ups-table tbody tr.ups-preview-row-locked:hover td,
#ups-results.ups-preview-mode .ups-table tbody tr.ups-preview-row-locked:hover td {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
  opacity: 0.72;
}

.ups-preview-mode .ups-table-pane-wrap {
  position: relative;
}

.ups-preview-blur-cta {
  position: absolute;
  top: 0;
  left: 0;
  right: 18px;
  bottom: 18px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none !important;
  pointer-events: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  background: rgba(255, 255, 255, 0.58);
  box-sizing: border-box;
}

.ups-preview-blur-cta.is-ready {
  opacity: 1;
  visibility: visible;
}

.ups-record-php.ups-preview-mode .ups-preview-blur-cta {
  opacity: 1;
  visibility: visible;
  left: 38%;
  right: 18px;
  bottom: 18px;
}

.ups-preview-blur-cta-text {
  pointer-events: auto;
  display: inline-block;
  max-width: min(22em, 92%);
  padding: 12px 18px;
  color: #14151a;
  font-size: clamp(20px, 2.8vw, 30px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.03em;
  cursor: pointer;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ups-preview-blur-cta-text em {
  font-style: normal;
  color: #1a5cff;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.ups-preview-blur-cta:hover .ups-preview-blur-cta-text em {
  color: #1248d6;
}
