/* start: Signup */
.signup-section {
  overflow: hidden;
  margin-bottom: 100px;
}

.signup-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.signup-left {
  padding: 48px 0;
  display: flex;
  align-items: center;
  height: 80vh;
  max-height: 730px;
}

.signup-title {
  font-size: var(--text-4xl);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 12px;
}

.signup-description {
  color: var(--text-color);
}

.signup-registration {
  margin-top: 32px;
}

.signup-registration-title {
  font-weight: 500;
  margin-bottom: 12px;
}

.signup-registration-form-box {
  display: none;
}

.signup-registration-form-box.active {
  display: block;
}

.signup-registration-form {
  display: flex;
}

.signup-registration-form-group {
  position: relative;
}

.signup-registration-form-control {
  text-align: center;
  height: 56px;
  width: 100%;
  max-width: 280px;
  padding: 0 16px;
  font-size: var(--text-base);
  border: 2px solid var(--primary);
  border-radius: var(--rounded-md) 0 0 var(--rounded-md);
  font-weight: 700;
  text-transform: uppercase;
  outline: none;
  border-right: none;
  background-color: var(--white);
}

.signup-registration-form-group.invalid .signup-registration-form-control {
  border-color: red;
}

.signup-registration-form-invalid-feedback {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 8px 12px;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  white-space: nowrap;
  border-radius: var(--rounded-md);
  opacity: 0;
  z-index: 10;
  visibility: hidden;
  transition-property: opacity, visibility, top;
  transition-duration: var(--duration-300);
}

.signup-registration-form-group.invalid
  .signup-registration-form-invalid-feedback {
  opacity: 1;
  visibility: visible;
  top: calc(100% + 16px);
}

.signup-registration-form-invalid-feedback > :first-child {
  margin-right: 8px;
  color: red;
}

.signup-registration-form-invalid-feedback::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid;
  border-color: transparent transparent var(--white) transparent;
}

.signup-registration-form-submit {
  height: 56px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--primary);
  color: var(--black);
  font-size: var(--text-base);
  border: 2px solid var(--primary);
  outline: none;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  border-radius: 0 var(--rounded-md) var(--rounded-md) 0;
  transition-property: background-color, color, border-color;
  transition-duration: var(--duration-150);
}

.signup-registration-form-submit:hover {
  background-color: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.signup-registration-form-submit > :first-child {
  margin-right: 8px;
}

.signup-right {
  position: relative;
  height: 80vh;
  max-height: 730px;
}

.signup-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(50vw - 32px);
  height: 100%;
  border-radius: 32px 0 0 32px;
  overflow: hidden;
}

.signup-image {
  width: 100%;
  height: auto;
  position: absolute;
  top: -85px;
}

.signup-download {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 32px 48px;
  background-color: #ffffffcc;
  backdrop-filter: blur(44px);
}

.signup-download-title {
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 30px;
}

.signup-download-wrapper {
  display: inline-flex;
  align-items: center;
}

.signup-download-item {
  margin-right: 16px;
}

.signup-download-item:last-child {
  margin-right: 0;
}

.signup-download-item-image {
  height: 40px;
  display: block;
}

/* end: Signup */
/* Choice Popup Styles */
.choice-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
}

.choice-popup {
  background: white;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: popupSlideIn 0.3s ease-out;
}

.choice-popup-header {
  background: linear-gradient(135deg, #42cbb2, #36a89a);
  color: white;
  padding: 20px;
  border-radius: 12px 12px 0 0;
  text-align: center;
}

.choice-popup-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.choice-popup-body {
  padding: 30px;
  text-align: center;
}

.choice-popup-body p {
  margin-bottom: 25px;
  color: #666;
  line-height: 1.5;
}

.choice-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.choice-btn {
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.choice-btn-primary {
  background: linear-gradient(135deg, #42cbb2, #36a89a);
  color: white;
}

.choice-btn-primary:hover {
  background: linear-gradient(135deg, #36a89a, #2e9284);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(66, 203, 178, 0.3);
}

.choice-btn-secondary {
  background: #f8f9fa;
  color: #42cbb2;
  border: 2px solid #42cbb2;
}

.choice-btn-secondary:hover {
  background: #42cbb2;
  color: white;
}

/* Custom Select Dropdown Styles */
.manual-form-control[name="fuelType"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2342cbb2' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 40px 12px 16px;
  font-size: 14px;
  font-weight: 400;
  color: #374151;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  width: 100%;
}

.manual-form-control[name="fuelType"]:hover {
  border-color: #42cbb2;
  box-shadow: 0 0 0 3px rgba(66, 203, 178, 0.1);
}

.manual-form-control[name="fuelType"]:focus {
  border-color: #42cbb2;
  box-shadow: 0 0 0 3px rgba(66, 203, 178, 0.2);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2342cbb2' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}

.manual-form-control[name="fuelType"]:disabled {
  background-color: #f9fafb;
  border-color: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}

/* Option styling - limited support in most browsers */
.manual-form-control[name="fuelType"] option {
  background-color: #ffffff;
  color: #374151;
  padding: 8px 16px;
  font-size: 14px;
}

.manual-form-control[name="fuelType"] option:hover {
  background-color: rgba(66, 203, 178, 0.1);
}

.manual-form-control[name="fuelType"] option:checked {
  background-color: #42cbb2;
  color: #ffffff;
}

/* Invalid state styling */
.manual-form-control[name="fuelType"].is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ef4444' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}

.manual-form-control[name="fuelType"].is-invalid:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  .manual-form-control[name="fuelType"] {
    background-color: white;
    border-color: #42cbb2;
    color: #000000;
  }

  .manual-form-control[name="fuelType"] option {
    background-color: white;
    color: #000000;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .manual-entry-popup,
  .choice-popup {
    width: 95%;
    margin: 20px;
  }

  .manual-entry-body,
  .choice-popup-body {
    padding: 20px;
  }

  .manual-form-actions {
    flex-direction: column;
  }
}

@media (max-width: 1200px) {
  .phone-wrapper {
    margin-bottom: 0;
    align-items: flex-end !important;
  }
}

@media (max-width: 992px) {
  .text {
    text-align: center;
  }

  .cta-wrapper {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .footer-download-btn {
    display: block;
  }

  .qr-code-wrapper,
  .qr-code,
  .banner-cta-item {
    display: none;
  }

  .hero-section {
    display: grid;
  }

  .seller-btn-btn,
  .trader-cta-btn {
    display: block;
  }

  .seller0-btn-google {
    margin-bottom: 16px;
  }

  .seller-cta {
    margin-left: 0;
    justify-content: start;
    align-items: start;
    display: flex;
    gap: 15px;
  }

  .manual-form-control[name="fuelType"] {
    padding: 10px 36px 10px 14px;
    font-size: 16px;
    /* Prevents zoom on iOS */
    background-size: 14px;
    background-position: right 10px center;
  }
}
/* start: Breakpoints */
@media screen and (max-width: 767px) {
  .signup-wrapper {
    grid-template-columns: 1fr;
  }

  .signup-right {
    height: 500px;
  }

  .signup-bg {
    position: relative;
    width: 100%;
    border-radius: 32px;
  }
}

@media screen and (min-height: 778px) {
  .signup-image {
    width: 100%;
    height: 100%;
    position: static;
    object-fit: cover;
  }
}

@media screen and (max-width: 575px) {
  .signup-title {
    font-size: var(--text-3xl);
  }

  .signup-registration-form {
    display: block;
  }

  .signup-registration-form-control {
    border-right: 2px solid var(--primary);
    border-radius: var(--rounded-md) var(--rounded-md) 0 0;
    max-width: unset;
  }

  .signup-registration-form-submit {
    width: 100%;
    border-radius: 0 0 var(--rounded-md) var(--rounded-md);
  }

  .signup-download {
    padding: 24px;
  }

  .signup-download-title {
    font-size: var(--text-2xl);
    margin-bottom: 24px;
  }
}

/* end: Breakpoints */
