/**
 * DeMV Platform - Blockchain Registration Form Styling
 * Enhanced cyberpunk styling for the third step of the vehicle registration form
 */

/* Step 3 Form Styling */
.form-step[data-step="3"] {
  background: rgba(10, 15, 30, 0.7);
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.form-step[data-step="3"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 0, 255, 0.05), rgba(0, 255, 255, 0.05));
  z-index: -1;
}

.form-step[data-step="3"] h3 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: #00ffff;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
  position: relative;
  padding-left: 1.25rem;
  display: flex;
  align-items: center;
}

.form-step[data-step="3"] h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: linear-gradient(to bottom, #0066ff, #00ffff);
  border-radius: 2px;
}

/* Form Group Styling */
.form-step[data-step="3"] .form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-step[data-step="3"] .form-group label {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.form-step[data-step="3"] .form-group small {
  display: block;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  color: rgba(0, 255, 255, 0.7);
}

/* Blockchain Network Select Styling */
.form-step[data-step="3"] select.cyberpunk-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 4px;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300ffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

.form-step[data-step="3"] select.cyberpunk-input:focus {
  outline: none;
  border-color: #00ffff;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* Registration Methods Styling */
.form-step[data-step="3"] .registration-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.form-step[data-step="3"] .registration-method {
  position: relative;
}

.form-step[data-step="3"] .registration-method input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form-step[data-step="3"] .registration-method label {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(20, 20, 30, 0.7);
  border: 1px solid rgba(128, 128, 255, 0.2);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0;
  position: relative;
}

.form-step[data-step="3"] .registration-method label:hover {
  background: rgba(30, 30, 50, 0.8);
  border-color: rgba(0, 255, 255, 0.4);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.form-step[data-step="3"] .registration-method input[type="radio"]:checked + label {
  background: rgba(0, 40, 70, 0.8);
  border: 1px solid #00ffff;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3), inset 0 0 10px rgba(0, 255, 255, 0.1);
}

.form-step[data-step="3"] .registration-method label i {
  font-size: 1.5rem;
  color: #00ffff;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 255, 0.3);
}

.form-step[data-step="3"] .registration-method input[type="radio"]:checked + label i {
  color: #ffffff;
  background: linear-gradient(135deg, #0066ff, #00ffff);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.form-step[data-step="3"] .registration-method label span {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #ffffff;
}

.form-step[data-step="3"] .registration-method label small {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.25rem;
  margin-left: 0;
}

.form-step[data-step="3"] .registration-method label div {
  display: flex;
  flex-direction: column;
}

/* Toggle Switch Styling */
.form-step[data-step="3"] .toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
  margin-top: 0.5rem;
}

.form-step[data-step="3"] .toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.form-step[data-step="3"] .toggle-label {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 255, 255, 0.2);
  transition: .4s;
  border-radius: 30px;
}

.form-step[data-step="3"] .toggle-label:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

.form-step[data-step="3"] input:checked + .toggle-label {
  background: linear-gradient(135deg, #0066ff, #00ffff);
  border-color: transparent;
}

.form-step[data-step="3"] input:checked + .toggle-label:before {
  transform: translateX(30px);
}

.form-step[data-step="3"] input:focus + .toggle-label {
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Gas Fee Info Styling */
.form-step[data-step="3"] .gas-fee-info {
  background: rgba(0, 20, 40, 0.4);
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1.5rem 0;
  border: 1px solid rgba(0, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.form-step[data-step="3"] .gas-fee-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, #0066ff, #00ffff);
}

.form-step[data-step="3"] .gas-fee-info h4 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 1rem;
  color: #00ffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-step[data-step="3"] .gas-fee-info h4::before {
  content: '\f52f';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 1rem;
}

.form-step[data-step="3"] .gas-fee-details {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-step[data-step="3"] .gas-fee-details div {
  display: flex;
  justify-content: space-between;
  font-family: 'Inter', sans-serif;
}

.form-step[data-step="3"] .gas-fee-details strong {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.form-step[data-step="3"] .gas-fee-details span {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  color: #00ffff;
}

.form-step[data-step="3"] #gas-total-estimate {
  font-size: 1.1rem;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

/* Network-specific styling */
.form-step[data-step="3"] .gas-fee-info.polygon-amoy {
  border-color: rgba(130, 71, 229, 0.4);
}

.form-step[data-step="3"] .gas-fee-info.polygon-amoy::before {
  background: linear-gradient(to right, #8247e5, #a78bfa);
}

.form-step[data-step="3"] .gas-fee-info.polygon-amoy .gas-fee-details span {
  color: #a78bfa;
}

.form-step[data-step="3"] .gas-fee-info.polygon-mainnet {
  border-color: rgba(130, 71, 229, 0.4);
}

.form-step[data-step="3"] .gas-fee-info.polygon-mainnet::before {
  background: linear-gradient(to right, #8247e5, #a78bfa);
}

.form-step[data-step="3"] .gas-fee-info.polygon-mainnet .gas-fee-details span {
  color: #a78bfa;
}

.form-step[data-step="3"] .gas-fee-info.ethereum-mainnet {
  border-color: rgba(98, 126, 234, 0.4);
}

.form-step[data-step="3"] .gas-fee-info.ethereum-mainnet::before {
  background: linear-gradient(to right, #627eea, #85a5ff);
}

.form-step[data-step="3"] .gas-fee-info.ethereum-mainnet .gas-fee-details span {
  color: #85a5ff;
}

/* Estimate Gas Button */
.form-step[data-step="3"] #estimate-gas-btn {
  background: rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 4px;
  padding: 0.6rem 1.2rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.form-step[data-step="3"] #estimate-gas-btn:hover {
  background: rgba(0, 40, 70, 0.6);
  border-color: rgba(0, 255, 255, 0.5);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.form-step[data-step="3"] #estimate-gas-btn:active {
  transform: translateY(1px);
}

.form-step[data-step="3"] #estimate-gas-btn i {
  font-size: 0.9rem;
}

/* Blockchain Info Styling */
.form-step[data-step="3"] .blockchain-info {
  margin-top: 1.5rem;
}

.form-step[data-step="3"] .info-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(0, 40, 80, 0.3);
  border-radius: 6px;
  padding: 1rem;
  border-left: 3px solid rgba(0, 255, 255, 0.5);
  margin-bottom: 1.25rem;
}

.form-step[data-step="3"] .info-box i {
  color: #00ffff;
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

.form-step[data-step="3"] .info-box p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.5;
}

.form-step[data-step="3"] .feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.form-step[data-step="3"] .feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.form-step[data-step="3"] .feature:hover {
  background: rgba(0, 20, 40, 0.3);
  border-color: rgba(0, 255, 255, 0.3);
  transform: translateY(-2px);
}

.form-step[data-step="3"] .feature i {
  color: #00ffff;
  font-size: 1.1rem;
}

.form-step[data-step="3"] .feature span {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

/* Form Actions */
.form-step[data-step="3"] .form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.form-step[data-step="3"] .cyberpunk-button {
  padding: 0.75rem 1.5rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.form-step[data-step="3"] .cyberpunk-button::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(45deg);
  transition: all 0.5s ease;
  opacity: 0;
}

.form-step[data-step="3"] .cyberpunk-button:hover::before {
  opacity: 1;
  animation: shine 1.5s infinite;
}

@keyframes shine {
  0% {
    left: -50%;
  }
  100% {
    left: 150%;
  }
}

.form-step[data-step="3"] .cyberpunk-button:hover {
  transform: translateY(-2px);
}

.form-step[data-step="3"] .cyberpunk-button:active {
  transform: translateY(1px);
}

.form-step[data-step="3"] .btn-submit {
  background: linear-gradient(135deg, #0066ff, #00ffff);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.form-step[data-step="3"] .btn-submit:hover {
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.form-step[data-step="3"] .btn-prev {
  background: rgba(0, 0, 0, 0.5);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-step[data-step="3"] .btn-prev:hover {
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

/* Loading State */
.form-step[data-step="3"] .gas-fee-info.loading .gas-fee-details span {
  position: relative;
  color: transparent;
  animation: pulse-loading 1.5s infinite;
}

.form-step[data-step="3"] .gas-fee-info.loading .gas-fee-details span::after {
  content: '...';
  position: absolute;
  left: 0;
  color: rgba(0, 255, 255, 0.7);
}

@keyframes pulse-loading {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.5;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .form-step[data-step="3"] .feature-list {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .form-step[data-step="3"] h3 {
    font-size: 1.5rem;
  }
}
