/* Contact Form Styles */
#contact-form {
  border-radius: 30px;
}

#contact-form label, #contact-form h1 {
  display: block;
  margin: 10px 15px;
  color: var(--text-color, white);
}

#contact-form strong {
  display: block;
  margin: 0;
  margin-bottom: 5px;
  color: var(--text-color, white);
  font-weight: normal;
}

#contact-form input,
#contact-form textarea {
  color: var(--text-color);
  background-color: var(--background-transparent-color);
  width: 100%;
  padding: 18px 24px;
  border: var(--transparent-border);
  border-radius: 30px;
  font-family: 'Titillium Web', sans-serif;
  font-size: 16px;
  box-sizing: border-box;
  touch-action: manipulation;
}

#contact-form input:focus,
#contact-form textarea:focus {
  border-color: var(--text-color);
  outline: none;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

#contact-form textarea {
  height: 80px;
  resize: none;
}

#contact-form button {
  border-radius: 30px;
}

/* Photo button container */
.photo-button-container {
  background-color: var(--background-transparent-color);
  border: var(--transparent-border);
  border-radius: 30px;
  padding: 10px;
  box-sizing: border-box;
  text-align: center;
}

/* Mobile-specific form styling overrides */
@media (max-width: 768px) {
  #contact-form input,
  #contact-form textarea,
  #contact-form button {
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Camera Modal Styles */
.camera-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: black;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.camera-modal video {
  max-width: 100%;
  max-height: calc(100vh - 100px);
  width: auto;
  height: auto;
  transform: scaleX(-1);
}

.camera-modal-capture-button {
  margin-top: 20px;
  padding: 12px 24px;
  background-color: #169dfe;
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  font-family: 'Titillium Web', sans-serif;
}

.camera-modal-cancel-button {
  margin-top: 10px;
  padding: 12px 24px;
  background: #666;
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  font-family: 'Titillium Web', sans-serif;
}

/* Success Overlay Styles */
.success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  font-family: 'Titillium Web', sans-serif;
}

.success-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  text-align: center;
}

@media (prefers-color-scheme: dark) {
  .success-card {
    background: #1c1c1e;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  }
}

.success-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.success-title {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

@media (prefers-color-scheme: dark) {
  .success-title {
    color: #ffffff;
  }
}

.success-message {
  margin: 0 0 24px 0;
  font-size: 16px;
  color: #666;
}

@media (prefers-color-scheme: dark) {
  .success-message {
    color: #b0b0b0;
  }
}

.success-download-prompt {
  margin: 0 0 24px 0;
  font-size: 14px;
  color: #333;
  font-weight: 600;
}

@media (prefers-color-scheme: dark) {
  .success-download-prompt {
    color: #e0e0e0;
  }
}

.success-button-container {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.success-download-button {
  flex: 1;
  padding: 12px 24px;
  background: #04AA6D;
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease;
}

.success-download-button:hover {
  background: #038f5a;
}

.success-skip-button {
  flex: 1;
  padding: 12px 24px;
  background: #f0f0f0;
  color: #333;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.success-skip-button:hover {
  background: #e0e0e0;
}

@media (prefers-color-scheme: dark) {
  .success-skip-button {
    background: #2c2c2e;
    color: #e0e0e0;
  }

  .success-skip-button:hover {
    background: #3a3a3c;
  }
}

/* Mobile fullscreen styles */
@media (max-width: 768px) {
  .success-overlay {
    background: white;
    z-index: 99999;
  }

  @media (prefers-color-scheme: dark) {
    .success-overlay {
      background: #1c1c1e;
    }
  }

  .success-card {
    max-width: 100%;
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    padding: 48px 24px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* Phone Number Prefix Picker Styles */
.phone-input-container {
  display: flex;
  gap: 12px;
  align-items: stretch;
  width: 100%;
}

.country-picker-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 18px 20px;
  background-color: var(--background-transparent-color);
  border: var(--transparent-border);
  border-radius: 30px;
  font-family: 'Titillium Web', sans-serif;
  font-size: 16px;
  color: var(--text-color);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.country-picker-button:hover {
  background-color: rgba(128, 128, 128, 0.15);
}

.country-picker-button:active {
  transform: scale(0.98);
}

#country-display {
  font-size: 16px;
  line-height: 1;
}

.chevron-down {
  font-size: 10px;
  opacity: 0.6;
  line-height: 1;
}

#connect_back_phone_number_local {
  flex: 1;
}

/* Country Picker Modal */
.country-picker-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  backdrop-filter: blur(4px);
}

.country-picker-overlay.hidden {
  display: none;
  pointer-events: none;
}

.country-picker-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (prefers-color-scheme: dark) {
  .country-picker-modal {
    background: #1c1c1e;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
  }
}

.country-picker-modal.hidden {
  display: none;
  pointer-events: none;
}

/* Mobile-specific positioning */
@media (max-width: 768px) {
  .country-picker-modal {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }
}

.country-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}

.country-picker-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

@media (prefers-color-scheme: dark) {
  .country-picker-header h2 {
    color: #ffffff;
  }
}

.close-country-picker {
  background: none;
  border: none;
  font-size: 28px;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.close-country-picker:hover {
  background-color: rgba(128, 128, 128, 0.1);
}

@media (prefers-color-scheme: dark) {
  .close-country-picker {
    color: #b0b0b0;
  }
}

.country-search {
  margin: 16px 20px;
  padding: 12px 16px;
  border: 1px solid rgba(128, 128, 128, 0.3);
  border-radius: 10px;
  font-family: 'Titillium Web', sans-serif;
  font-size: 16px;
  width: calc(100% - 40px);
  box-sizing: border-box;
  color: #333;
  background: white;
}

.country-search:focus {
  outline: none;
  border-color: #169dfe;
  box-shadow: 0 0 5px rgba(22, 157, 254, 0.3);
}

@media (prefers-color-scheme: dark) {
  .country-search {
    background: #2c2c2e;
    color: #ffffff;
    border-color: rgba(128, 128, 128, 0.3);
  }
}

.country-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 10px 10px 10px;
}

.country-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 10px;
  transition: background-color 0.15s ease;
  color: #333;
}

.country-item:hover {
  background-color: rgba(128, 128, 128, 0.1);
}

@media (prefers-color-scheme: dark) {
  .country-item {
    color: #ffffff;
  }

  .country-item:hover {
    background-color: rgba(128, 128, 128, 0.2);
  }
}

.country-item-flag {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}

.country-item-info {
  flex: 1;
  min-width: 0;
}

.country-item-name {
  font-size: 16px;
  font-weight: 500;
}

.country-item-code {
  font-size: 14px;
  color: #666;
  margin-left: auto;
  flex-shrink: 0;
}

@media (prefers-color-scheme: dark) {
  .country-item-code {
    color: #b0b0b0;
  }
}
