/* ========================================
   OTR Date Picker Input Custom Wrapper
   ======================================== */

.otr-date-input-wrapper {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
}

.otr-date-input-wrapper input[type="text"] {
  width: 100% !important;
  padding-right: 40px !important;
}

.otr-calendar-icon {
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 10 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  opacity: 0.7;
  transition: opacity 0.15s ease;
  user-select: none;
}

.otr-calendar-icon:hover {
  opacity: 1;
}

.otr-hidden-date-picker {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ========================================
   OTR Forms - Unified Clean Style
   ======================================== */

.otr-training-list-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.otr-training-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  align-items: stretch;
}

.otr-training-card {
  padding: 18px 20px 16px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  min-height: 240px;
}

.otr-training-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.otr-training-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0e2a47, #1d4e89);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.otr-training-card-tag {
  color: #0d5c7c;
  font-weight: 700;
  font-size: 13px;
  background: rgba(15, 118, 175, 0.08);
  padding: 6px 10px;
  border-radius: 999px;
}

.otr-training-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.35;
  color: #173a57;
}

.otr-training-meta {
  margin: 0 0 8px;
  color: #3f5367;
  font-size: 0.95rem;
}

.otr-training-topics {
  margin-top: auto;
  margin-bottom: 16px;
  color: #145f7d;
  font-size: 0.9rem;
  font-weight: 600;
}

.otr-btn-secondary {
  background: #efefef;
  color: #173a57;
  min-width: unset;
  width: auto;
  padding: 10px 14px;
  border-radius: 8px;
}

/* ========================================
   OTR Training Filter Bar - Modern horizontal design
   ======================================== */

.otr-training-filter-widget {
  margin: 50px 0 28px;
  background: #e2eaef;
  border: 1px solid #e6ebf0;
  border-radius: 16px;
  padding: 18px 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.otr-training-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.otr-training-filter-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0e2a47;
  letter-spacing: 0.01em;
}

.otr-training-filter-header h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c8d400;
  margin-right: 8px;
  vertical-align: middle;
}

.otr-filter-reset {
  border: 1px solid #dbe3ea;
  background: #f8fafc;
  color: #445468;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.otr-filter-reset:hover {
  background: #eef2f6;
  border-color: #c8d0da;
  color: #173a57;
}

.otr-training-filter-groups {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 22px 28px;
}

.otr-filter-group {
  margin-bottom: 0;
  min-width: 180px;
}

.otr-filter-group[data-filter-group="topic"] {
  flex: 1 1 280px;
}

.otr-filter-group[data-filter-group="location"],
.otr-filter-group[data-filter-group="time"] {
  flex: 0 1 250px;
}

.otr-filter-group h4 {
  margin: 0 0 10px;
  font-size: 1.20rem !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #90a0b2;
}

.otr-filter-options[data-filter-options="topic"] {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.otr-filter-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #dde4eb;
  background: #f7f9fb;
  color: #33465c;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.otr-filter-option:hover {
  border-color: #c8d0da;
  background: #eef2f6;
}

.otr-filter-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.otr-filter-option:has(input:checked) {
  background: #0e2a47;
  border-color: #0e2a47;
  color: #fff;
  box-shadow: 0 2px 8px rgba(14, 42, 71, 0.25);
}

.otr-filter-option:has(input:focus-visible) {
  outline: 2px solid #c8d400;
  outline-offset: 2px;
}

.otr-filter-group select,
.otr-filter-group input[type="date"],
.otr-filter-group input[type="text"],
.otr-date-picker {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #dde4eb;
  border-radius: 10px;
  padding: 10px 14px;
  background: #f7f9fb;
  color: #1f2937;
  font-size: 1.07rem;
  font-family: inherit;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.otr-filter-group select {
  padding-right: 36px;
  background: #f7f9fb url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23445468'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.19l3.71-3.96a.75.75 0 111.08 1.04l-4.25 4.53a.75.75 0 01-1.08 0L5.21 8.27a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E") right 12px center no-repeat;
  background-size: 16px;
}

.otr-filter-group select:hover,
.otr-filter-group input[type="date"]:hover,
.otr-filter-group input[type="text"]:hover,
.otr-date-picker:hover {
  border-color: #c8d0da;
}

.otr-filter-group select:focus,
.otr-filter-group input[type="date"]:focus,
.otr-filter-group input[type="text"]:focus,
.otr-date-picker:focus {
  outline: none;
  border-color: #0e2a47;
  box-shadow: 0 0 0 3px rgba(14, 42, 71, 0.12);
}

@media (max-width: 700px) {
  .otr-training-filter-widget {
    padding: 16px;
    border-radius: 14px;
  }

  .otr-training-filter-groups {
    flex-direction: column;
    gap: 18px;
  }

  .otr-filter-group[data-filter-group="topic"],
  .otr-filter-group[data-filter-group="location"],
  .otr-filter-group[data-filter-group="time"] {
    flex: 1 1 auto;
    width: 100%;
  }
}

.otr-form {
  background: #fff;
  border-radius: 10px;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

.otr-row {
  display: flex;
  width: 100%;
  margin: auto !important;
}

.otr-pt-30 {
  padding-top: 30px !important;
}

.otr-mr-25 {
  margin-right: 25px;
}

.otr-col-2 {
  width: 50% !important;
}

.otr-col-3 {
  width: 33% !important;
}

.otr-w-30 {
  width: 30% !important;
}

.otr-w-40 {
  width: 40% !important;
}

.otr-form h3 {
  color: #193755;
  font-size: 22px;
  margin-bottom: 25px;
  font-weight: 600;
}

.otr-input {
  margin-bottom: 20px;
  margin-left: 5px;
  margin-right: 5px;
}

.otr-input label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
  font-size: 14px;
}

.otr-input select {
  width: 100%;
}

.otr-input input,
.otr-input select {
  padding: 11px 13px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  background: #fff;
}

.otr-input input:focus,
.otr-input select:focus {
  border-color: #0594f2;
  outline: none;
}

.otr-input input::placeholder {
  color: #aaa;
}

.otr-checkbox label {
  font-weight: normal;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.d-flex {
  display: flex;
}

.col-2 {
  width: 50%;
}

.otr-forgot {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: #0594f2;
  text-decoration: none;
}

.otr-forgot:hover {
  text-decoration: underline;
}

.otr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: auto;
  min-width: 160px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  padding: 13px 22px;
  cursor: pointer;
  font-size: 15px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(90deg, #193755, #0594f2);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.3s;
}

.otr-btn:hover {
  background: linear-gradient(90deg, #193755, #193755);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
  color: white;
}

.otr-btn-full {
  width: 100%;
}

.otr-form .otr-btn {
  width: 100%;
}

.country-select {
  width: 100% !important;
}

#gender {
  width: 100% !important;
}

.otr-error {
  background: #ffe5e5;
  border-left: 4px solid #cc0000;
  padding: 12px 15px;
  margin-top: 15px;
  margin-bottom: 15px;
  border-radius: 6px;
  color: #b10000;
  font-size: 14px;
}

.otr-success {
  background: #e6ffed;
  border-left: 4px solid #0f8b3d;
  padding: 12px 15px;
  margin-top: 15px;
  margin-bottom: 15px;
  border-radius: 6px;
  color: #0f6d2f;
  font-size: 14px;
}