/* Bitcoiniacs KYC Plugin Styles */

/* Base body styles - DARK THEME like original */
body {
  background-color: #2d2d2d;
  color: #fff;
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
}

/* Main container */
.bitcoiniacs-kyc-form-container {
  width: 80%;
  min-width: 320px;
  margin: 50px auto;
  padding: 40px;
  background-color: #2d2d2d;
}

/* Header section */
.kyc-header {
  text-align: center;
  margin-bottom: 40px;
}

/* Progress bar / breadcrumb indicator - MATCH ORIGINAL SIZE */
.kyc-progress-bar {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kyc-progress-bar li {
  color: #888;
  text-align: center;
  width: 25%;
  position: relative;
  font-size: 14px;
}

.kyc-progress-bar li span {
  display: block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50%;
  background-color: #555;
  color: #fff;
  margin: 0 auto 10px auto;
  border: 3px solid #555;
  font-weight: bold;
  font-size: 18px;
}

.kyc-progress-bar li.active span {
  background-color: #28a745;
  border-color: #28a745;
}

/* Title and subtitle - WHITE TEXT like original */
.kyc-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #fff;
}

.kyc-subtitle {
  font-size: 18px;
  color: #aaa;
  margin-bottom: 0;
}

/* Content card/panel - WHITE background like original */
.kyc-form-content {
  background-color: #fff;
  color: #333;
  padding: 0;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: relative;
}

/* Nudge text section - proper header like original */
.kyc-nudge-text {
  background-color: #f8f9fa;
  padding: 15px 30px;
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: #333;
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid #e9ecef;
}

/* Main content area */
.kyc-form-content form {
  padding: 30px;
}

/* Terms and conditions text */
.terms-and-conditions {
  margin-bottom: 30px;
}

.terms-and-conditions p {
  margin-bottom: 15px;
  line-height: 1.6;
  color: #333;
}

.terms-and-conditions p strong {
  color: #333;
}

/* Agreement toggle styling */
.agreement-toggle {
  display: flex;
  align-items: center;
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  margin-right: 15px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: #28a745;
}

input:focus + .slider {
  box-shadow: 0 0 1px #28a745;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Toggle label - green text */
.toggle-label {
  font-size: 16px;
  color: #28a745;
  font-weight: bold;
  cursor: pointer;
}

/* Form buttons - NORMAL SIZE like original */
.form-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 0;
  gap: 20px;
}

.button-secondary, .button-primary {
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
}

/* Left button - yellow background, black text */
.button-secondary {
  background-color: #ffc107;
  color: #000;
}

.button-secondary:hover {
  background-color: #e0a800;
}

/* Right button - green background, white text */
.button-primary {
  background-color: #28a745;
  color: #fff;
}

.button-primary:hover {
  background-color: #218838;
}

.button-primary:disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
}

/* Form layout */
.form-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
  width: 100%;
}

.form-row .form-group {
  width: 48%;
}

/* Floating label form groups need consistent spacing */
.form-group .form-floating {
  margin-bottom: 0;
}

/* Form labels */
/* Regular form labels (not floating) */
.form-group label:not(.form-floating > label) {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

/* Override for floating labels - more specific */
.form-group .form-floating > label {
  display: block !important;
  margin-bottom: 0 !important;
  font-weight: 400 !important;
  font-size: 1rem !important;
}

/* Form inputs */
.form-group input,
.form-group select,
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"] {
  width: 100%;
  height: auto;
  padding: 4px 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #fff !important;
  color: #000 !important;
  font-size: 14px;
  line-height: normal;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

/* Force text color and height for webkit autofill */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  width: 100%;
  height: auto !important;
  padding: 2px 10px !important;
  border: 1px solid #ddd;
  box-sizing: border-box;
  line-height: normal !important;
  -webkit-text-fill-color: #000 !important;
  -webkit-box-shadow: 0 0 0px 1000px #fff inset !important;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
  outline: none;
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
}

.form-group input::placeholder {
  color: #999 !important;
  opacity: 1;
}

/* Bootstrap Floating Labels Support */
.form-floating {
  position: relative;
}

.form-floating > .form-control,
.form-floating > .form-select {
  height: calc(3.5rem + 2px);
  line-height: 1.25;
  padding: 1rem 0.75rem;
}

/* Prevent input text from jumping when label floats */
.form-floating > .form-control:not(:placeholder-shown),
.form-floating > .form-control:focus {
  padding-top: 1rem; /* same as initial */
  padding-left: 0.75rem; /* ensure constant horizontal offset */
}

/* Respect wider left padding for phone inputs */
.form-floating input[type="tel"]:not(:placeholder-shown),
.form-floating input[type="tel"]:focus {
  padding-left: 4.25rem !important; /* keep room for country selector */
}

.form-floating > label {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  padding: 1rem 0.75rem;
  pointer-events: none;
  border: 1px solid transparent;
  transform-origin: 0 0;
  transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
  color: #6c757d;
  z-index: 2;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
  opacity: 0.65;
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
  color: #fff;
  background-color: transparent;
  z-index: 3;
}

.form-floating > .form-control:focus ~ label {
  color: #fff;
}

.form-control {
  display: block;
  width: 100%;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #000 !important;
  background-color: #fff;
  background-image: none;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  color: #000 !important;
  background-color: #fff;
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.bg-transparent {
  background-color: transparent !important;
}

.border-2 {
  border-width: 2px !important;
}

.border-secondary {
  border-color: #6c757d !important;
}

/* Simple country code selector that floats over the input */
.country-code-selector {
  position: absolute !important;
  left: 2px !important;
  top: 2px !important;
  height: 94% !important;
  width: 4rem !important;
  max-width: 4rem !important;
  min-width: 4rem !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border: none !important;
  border-radius: 0.375rem 0 0 0.375rem !important;
  font-size: 0.8rem !important;
  color: #000 !important;
  z-index: 5 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  padding: 0 0.25rem !important;
  cursor: pointer !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.country-code-selector:focus {
  outline: none;
  background: rgba(255, 255, 255, 1);
}

/* Adjust phone input padding to make room for country selector */
.form-floating input[type="tel"] {
  padding-left: 4.25rem !important;
}

/* Position phone label where the text input starts */
.form-floating .country-code-selector ~ label {
  left: 4.25rem !important;
  padding-left: 0 !important;
}

/* Enhanced select styling for floating labels */
.form-floating > select.form-control {
  padding-top: 1.625rem;
  padding-bottom: 0.625rem;
}

.form-floating > select.form-control:focus ~ label,
.form-floating > select.form-control:not([value=""]) ~ label {
  opacity: 0.65;
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
  color: #fff;
}

/* SMS send section styling */
.sms-send-section {
  margin-top: 10px;
}

/* SMS verification container */
.sms-verification-container {
  margin-top: 20px;
}

.sms-verification-input-group {
  display: flex;
  gap: 10px;
}

.sms-verification-input-group input {
  flex-grow: 1;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

.sms-verification-input-group button {
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  white-space: nowrap;
  min-width: 100px;
}

.sms-verification-actions {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
}

.sms-verification-actions a {
  color: #17a2b8;
  text-decoration: none;
  font-size: 14px;
}

.sms-verification-actions a:hover {
  text-decoration: underline;
}

/* SMS verification states */
.sms-verification-container.verified {
  border-left: 4px solid #28a745;
  padding-left: 15px;
  background-color: rgba(40, 167, 69, 0.1);
}

.sms-verification-container.verified::before {
  content: "✓";
  color: #28a745;
  font-weight: bold;
  margin-right: 10px;
}

/* SMS message styles */
.sms-message {
  padding: 10px 15px;
  margin: 10px 0;
  border-radius: 5px;
  font-size: 14px;
  animation: slideIn 0.3s ease-out;
}

.sms-message.success {
  background-color: rgba(40, 167, 69, 0.1);
  border: 1px solid #28a745;
  color: #28a745;
}

.sms-message.error {
  background-color: rgba(220, 53, 69, 0.1);
  border: 1px solid #dc3545;
  color: #dc3545;
}

.sms-message.info {
  background-color: rgba(23, 162, 184, 0.1);
  border: 1px solid #17a2b8;
  color: #17a2b8;
}

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

/* Phone input readonly state */
input[readonly] {
  background-color: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}

/* Verification code input focus state */
#sms-verification-code:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
}

/* Button states */
.button-secondary:disabled,
.button-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  color: #666;
}

/* Amount input group */
.amount-input-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.amount-input-group input {
  flex: 1;
  min-width: 0;
}

.amount-input-group select {
  flex: 0 0 auto;
  width: 100px;
  min-width: 80px;
}

.amount-group {
  width: 100%;
}

/* Verification results */
.verification-result {
  text-align: center;
  padding: 30px;
  border-radius: 8px;
  margin-top: 20px;
}

.verification-result h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #333;
}

.verification-result p {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

.verification-result.success {
  background-color: rgba(40, 167, 69, 0.1);
  border: 2px solid #28a745;
}

.verification-result.success h3 {
  color: #28a745;
}

.verification-result.failure {
  background-color: rgba(220, 53, 69, 0.1);
  border: 2px solid #dc3545;
}

.verification-result.failure h3 {
  color: #dc3545;
}

/* Responsive design */


@media (max-width: 768px) {
  .bitcoiniacs-kyc-form-container {
    width: 95%;
    min-width: 280px;
    margin: 10px auto;
    padding: 20px;
  }
  
  .kyc-progress-bar {
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .kyc-progress-bar li {
    font-size: 12px;
  }
  
  .kyc-progress-bar li span {
    width: 40px;
    height: 40px;
    line-height: 40px;
  }
  
  .kyc-title {
    font-size: 24px;
  }
  
  .kyc-subtitle {
    font-size: 16px;
  }
  
  .kyc-nudge-text {
    padding: 12px 20px;
    font-size: 16px;
  }
  
  .kyc-form-content form {
    padding: 20px;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .form-row .form-group {
    width: 100%;
  }
  
  .form-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .sms-verification-input-group {
    flex-direction: column;
    gap: 10px;
  }
  
  .sms-verification-input-group input {
    border-radius: 5px;
  }
  
  .sms-verification-input-group button {
    border-radius: 5px;
  }
  
  .sms-verification-actions {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .amount-input-group {
    flex-direction: column;
    gap: 10px;
  }
  
  .amount-input-group input,
  .amount-input-group select {
    width: 100%;
  }
}