/* Registration Modal Styles - matching Nadymov Innergy brand */
.reg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: max(16px, 4vh) 16px 24px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  box-sizing: border-box;
}
.reg-overlay.is-active {
  opacity: 1;
  visibility: visible;
}
.reg-modal {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  padding: 28px 24px;
  position: relative;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.35);
  color: #000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin: auto;
  box-sizing: border-box;
}
.reg-overlay.is-active .reg-modal {
  transform: translateY(0) scale(1);
}
.reg-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 24px;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.reg-close:hover {
  color: #0f172a;
  background: #f1f5f9;
}
.reg-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
  padding-right: 28px;
  color: #0f172a;
  line-height: 1.25;
}
.reg-sub {
  font-size: 14px;
  color: #475569;
  margin: 0 0 18px;
  line-height: 1.4;
}
.reg-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.reg-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  text-align: left;
}
.reg-inp {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  color: #000;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.reg-inp:focus {
  border-color: #f76835;
  box-shadow: 0 0 0 2px rgba(247, 104, 53, 0.25);
}

/* Phone Field Container with Country Dropdown */
.reg-phone-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}
.reg-cc-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 11px 10px;
  font-size: 15px;
  color: #0f172a;
  cursor: pointer;
  flex: none;
  min-width: 82px;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  user-select: none;
  box-sizing: border-box;
}
.reg-cc-btn:hover {
  background: #f1f5f9;
}
.reg-cc-btn:focus-visible, .reg-cc-btn.is-active {
  border-color: #f76835;
  box-shadow: 0 0 0 2px rgba(247, 104, 53, 0.25);
  outline: none;
}
.reg-flag {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
  display: block;
  flex: none;
  object-fit: cover;
}
.reg-cc-dial {
  font-weight: 500;
  font-size: 14px;
  color: #0f172a;
}
.reg-chev {
  color: #64748b;
  flex: none;
  margin-left: auto;
  transition: transform 0.15s ease;
}
.reg-cc-btn.is-active .reg-chev {
  transform: rotate(180deg);
}
.reg-inp-phone {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  font: inherit;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 15px;
  color: #000;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.reg-inp-phone:focus {
  border-color: #f76835;
  box-shadow: 0 0 0 2px rgba(247, 104, 53, 0.25);
}

/* Country dropdown popup */
.reg-country-pop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 1000;
  width: min(100%, 310px);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22);
  padding: 8px;
  display: none;
  box-sizing: border-box;
}
.reg-country-pop.is-open {
  display: block;
  animation: regPopIn 0.15s ease-out;
}
@keyframes regPopIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.reg-country-search {
  width: 100%;
  box-sizing: border-box;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
  color: #0f172a;
  outline: none;
  margin-bottom: 6px;
}
.reg-country-search:focus {
  border-color: #f76835;
  box-shadow: 0 0 0 2px rgba(247, 104, 53, 0.18);
}
.reg-country-list {
  max-height: 240px;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}
.reg-country-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  font-size: 14px;
  color: #0f172a;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.1s;
}
.reg-country-opt:hover, .reg-country-opt.is-selected {
  background: #fff1ea;
}
.reg-cname {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reg-cdial {
  color: #64748b;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  flex: none;
}
.reg-country-empty {
  padding: 12px;
  font-size: 13px;
  color: #64748b;
  text-align: center;
}

.reg-slot-label {
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  margin-bottom: 2px;
}
.reg-slots {
  display: flex;
  gap: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
}
.reg-slot-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
  color: #0f172a;
  font-weight: 500;
}
.reg-slot-opt input[type="radio"] {
  accent-color: #f76835;
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
}
.reg-consents {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
  text-align: left;
}
.reg-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
  cursor: pointer;
}
.reg-consent input[type="checkbox"] {
  accent-color: #f76835;
  width: 15px;
  height: 15px;
  margin-top: 1px;
  flex-shrink: 0;
  cursor: pointer;
}
.reg-consent a {
  color: #0284c7;
  text-decoration: underline;
}
.reg-error {
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
  line-height: 1.35;
}
.reg-submit-btn {
  background: linear-gradient(180deg, #ff6b3d 0%, #f75520 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 15px 20px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(247, 85, 32, 0.35);
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}
.reg-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(247, 85, 32, 0.45);
}
.reg-submit-btn:active {
  transform: translateY(1px);
  box-shadow: 0 4px 12px rgba(247, 85, 32, 0.3);
}
.reg-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}
@media (max-width: 480px) {
  .reg-modal {
    padding: 24px 18px;
  }
  .reg-title {
    font-size: 20px;
  }
}
