/* HKTS Membership Registration Form Styles */


/* Login Container */
.hkts-mm-registration-container {
  max-width: 670px;
  color: #1D5E8C;
  margin: 0 auto;
}

.hkts-mm-registration-form-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-block: 16px;
  color: #439FE6;
  h2 {
    color: #1D5E8C;
    font-weight: 400;
    margin-bottom: 0;
  }
  a {
    color: #439FE6;
    font-weight: medium;
    font-size: 14px;
    text-decoration: none;
  }
}

.hkts-mm-registration-form-body {
  background-color: #f8fcff;
  padding: 16px;
  hr {
    color: #D9D9D9;
    margin-block: 16px;
  }
}

.hkts-mm-registration-title {
  color: #1D5E8C;
  font-weight: 700;
  font-size: 18px;
}

.hkts-mm-registration-subtitle {
  color: #1D5E8C;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 0;
  margin-top: 10px;
}

.hkts-mm-form-group .radio-options {
  display: flex;
  flex-direction: row;
  gap: 8px;
  > div {
    flex-basis: 50%;
    width: 100%;
  }
  label {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    flex-basis: 50%;
    width: 100%;
    border: none;
    padding: 0;
    height: 106px;
    span {
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #888888;
      font-style: italic;
      font-size: 26px;
      font-weight: 100;
      border: 1px solid #d9d9d9;
      border-radius: 8px;
      width: 100%;
      line-height: 1.3;
    }
    input:checked + span {
      color: #2D7FBA;
      font-weight: 500;
      border-color: #2D7FBA;
      font-style: normal;
    }
    ~ p {
      margin-top: 8px;
      color: #000;
      font-size:16px;
      font-weight: 300;
    }
  }
}
/* Sponsor Information */
.hkts-mm-sponsor-info {
  background-color: #fff;
  border-radius: 8px;
  padding: 8px;
  p {
    font-size: 16px;
    color: #E67260;
    margin-bottom: 0;
  }
}

.hkts-mm-registration-form-body-actions {
  padding: 16px;
}

/* Error Messages */
.hkts-mm-form-group .error-message {
  color: #e53e3e;
  font-size: 0.9em;
  margin-top: 8px;
  padding: 8px 12px;
  background-color: #fed7d7;
  border: 1px solid #feb2b2;
  border-radius: 8px;
  display: flex;
  align-items: center;
}

.hkts-mm-form-group .error-message::before {
  content: "⚠️";
  margin-right: 8px;
  font-size: 1.1em;
}

/* Success and Error Messages */
.hkts-mm-message {
  padding: 20px 24px;
  margin-bottom: 32px;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 500;
  border-left: 4px solid;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hkts-mm-success {
  background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%);
  color: #22543d;
  border-left-color: #38a169;
}

.hkts-mm-error {
  background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
  color: #742a2a;
  border-left-color: #e53e3e;
}

.hkts-mm-error ul {
  margin: 12px 0 0 0;
  padding-left: 24px;
}

.hkts-mm-error li {
  list-style-type: disc;
  margin-bottom: 4px;
}

/* AJAX Feedback */
.hkts-mm-form-group .hkts-mm-ajax-feedback {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
}

/* Remarks Section */
.hkts-mm-remarks {
  background-color: #fff;
  border-radius: 8px;
  padding: 16px;
  color: #444444;
  ul {
    margin: 0;
    padding-left: 24px;
    list-style: disc;
  }
  li {
    margin-bottom: 16px;
    line-height: 1.6;
    color: #4a5568;
    font-weight: 500;
  }
  li:last-child {
    margin-bottom: 0;
  }
  a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
  }
  a:hover {
    color: #005177;
    text-decoration: underline;
  }
}

/* Helper Text for Password Fields */
.hkts-mm-helper-text {
  margin-top: 8px;
  padding: 8px 12px;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border: 1px solid #90caf9;
  border-radius: 8px;
  font-size: 0.85em;
  box-shadow: 0 1px 4px rgba(25, 118, 210, 0.1);
}

.hkts-mm-helper-text p {
  margin: 0 0 6px 0;
  font-weight: 600;
  color: #1565c0;
  font-size: 0.9em;
}

.hkts-mm-helper-text ul {
  margin: 0;
  padding-left: 16px;
}

.hkts-mm-helper-text li {
  margin-bottom: 2px;
  color: #2e7d32;
  line-height: 1.3;
  font-weight: 400;
}

.hkts-mm-helper-text li:last-child {
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hkts-mm-remarks {
    padding: 20px;
    margin: 32px 0 24px 0;
  }
}

.newsletter_email-label,
.newsletter_address-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

/* Summary Dialog Modal */
.hkts-mm-summary-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 100000;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
}

.hkts-mm-summary-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hkts-mm-summary-modal-content {
  background-color: #fff;
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hkts-mm-summary-modal-header {
  padding: 24px;
  border-bottom: 2px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8fcff;
  border-radius: 12px 12px 0 0;
}

.hkts-mm-summary-modal-header h2 {
  color: #1D5E8C;
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.hkts-mm-summary-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #888;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.hkts-mm-summary-modal-close:hover {
  background-color: #e0e0e0;
  color: #333;
}

.hkts-mm-summary-modal-body {
  padding: 24px;
  color: #333;
}

.hkts-mm-summary-section {
  margin-bottom: 24px;
}

.hkts-mm-summary-section:last-child {
  margin-bottom: 0;
}

.hkts-mm-summary-section-title {
  color: #1D5E8C;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #D9D9D9;
}

.hkts-mm-summary-item {
  display: flex;
  margin-bottom: 12px;
  padding: 12px;
  background-color: #f8fcff;
  border-radius: 8px;
  border-left: 3px solid #439FE6;
}

.hkts-mm-summary-item:last-child {
  margin-bottom: 0;
}

.hkts-mm-summary-label {
  font-weight: 600;
  color: #1D5E8C;
  min-width: 200px;
  flex-shrink: 0;
  margin-right: 16px;
}

.hkts-mm-summary-value {
  color: #333;
  flex: 1;
  word-break: break-word;
}

.hkts-mm-summary-value.empty {
  color: #999;
  font-style: italic;
}

.hkts-mm-summary-modal-footer {
  padding: 24px;
  border-top: 2px solid #f0f0f0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background-color: #f8fcff;
  border-radius: 0 0 12px 12px;
}

.hkts-mm-summary-button {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  min-width: 120px;
}

.hkts-mm-summary-button-cancel {
  background-color: #fff;
  color: #1D5E8C;
  border: 2px solid #1D5E8C;
}

.hkts-mm-summary-button-cancel:hover {
  background-color: #f0f0f0;
}

.hkts-mm-summary-button-confirm {
  background-color: #1D5E8C;
  color: #fff;
}

.hkts-mm-summary-button-confirm:hover {
  background-color: #155a7a;
}

.hkts-mm-summary-button-confirm:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Responsive Design for Modal */
@media (max-width: 768px) {
  .hkts-mm-summary-modal-content {
    max-width: 100%;
    margin: 10px;
  }

  .hkts-mm-summary-modal-header,
  .hkts-mm-summary-modal-body,
  .hkts-mm-summary-modal-footer {
    padding: 16px;
  }

  .hkts-mm-summary-item {
    flex-direction: column;
  }

  .hkts-mm-summary-label {
    min-width: auto;
    margin-bottom: 8px;
    margin-right: 0;
  }

  .hkts-mm-summary-modal-footer {
    flex-direction: column;
  }

  .hkts-mm-summary-button {
    width: 100%;
  }
}
