/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  position: relative;
}

/* Common Components */
.btn-referrush {
  border: none;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #000;
  color: white;
}

.btn-referrush:hover {
  background: #333;
}

/* Removed modern button styles - using original design */

.phone-input-base-referrush {
  display: flex;
  border: none;
  border-bottom: 2px solid #e0e0e0;
  border-radius: 0;
  overflow: hidden;
  background: white;
  height: 56px;
  transition: all 0.2s ease;
  margin-bottom: 32px;
}

.phone-input-base-referrush:focus-within {
  border-bottom-color: #000;
  transform: translateY(-2px);
}

.country-code-base-referrush {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  font-size: 20px;
  font-weight: 800;
  min-width: 60px;
  color: #000;
}

.phone-input-field-referrush {
  flex: 1;
  border: none;
  padding: 6px;
  font-size: 20px;
  outline: none;
  color: #000;
}

.phone-input-field-referrush::placeholder {
  color: #999;
  font-weight: 400;
}

.steps-base-referrush {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-base-referrush {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  font-weight: 500;
  color: white;
}

.step-icon-base-referrush {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
}

.step-icon-base-referrush svg {
  width: 24px;
  height: 24px;
}

/* Overlay */
.overlay-referrush {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1001;
}

.overlay-referrush.active-referrush {
  opacity: 1;
  visibility: visible;
}

/* Desktop Modal */
.desktop-modal-referrush {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7) rotateX(15deg);
  background: transparent;
  border-radius: 20px;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 1002;
  perspective: 1000px;
  filter: blur(10px);
}

.desktop-modal-referrush.active-referrush {
  transform: translate(-50%, -50%) scale(1) rotateX(0deg);
  opacity: 1;
  visibility: visible;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
  filter: blur(0px);
}

.close-btn-referrush {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #666;
  transition: all 0.2s ease;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.close-btn-referrush:hover {
  background: white;
  color: #000;
  transform: scale(1.1);
}

.desktop-content-referrush {
  display: flex;
  height: 100%;
  min-height: 500px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: white;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
}

.left-section-referrush {
  flex: 1;
  min-width: 0;
  max-width: 50%;
  background: linear-gradient(135deg, #101010 0%, #121212 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  color: white;
  position: relative;
  overflow: hidden;
  border-radius: 20px 0 0 20px;
}

.left-section-referrush::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.left-section-referrush > * {
  position: relative;
  z-index: 2;
}

.illustration-base-referrush {
  width: 250px;
  height: auto;
  margin-bottom: 32px;
  border-radius: 16px;
  transition: all 0.2s ease;
}

.illustration-base-referrush:hover {
  transform: scale(1.05);
}

.main-heading-base-referrush {
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 32px;
  line-height: 1.2;
  color: white;
}

.right-section-referrush {
  flex: 1;
  min-width: 0;
  max-width: 50%;
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: white;
  border-radius: 0 20px 20px 0;
  overflow: hidden;
}

.form-header-referrush {
  text-align: center;
  margin-bottom: 40px;
}

.form-title-referrush {
  font-size: 28px;
  font-weight: 700;
  color: #000;
  margin-bottom: 8px;
  text-align: center;
}

.form-subtitle-referrush {
  font-size: 16px;
  color: #666;
  text-align: center;
  margin-bottom: 20px;
}

/* Mobile Drawer */
.drawer-referrush {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-radius: 20px 20px 0 0;
  transform: translateY(100%);
  transition: all 0.2s ease;
  z-index: 1002;
  height: 90vh;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  display: none;
  color: #000;
  max-height: 90vh;
}

.drawer-referrush.active-referrush {
  transform: translateY(0);
}

.drawer-content-referrush {
  padding: 8px 24px 40px;
  position: relative;
  display: block;
  height: 100%;
  overflow-y: auto;
  /* Hide scrollbar while keeping scroll */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.drawer-content-referrush::-webkit-scrollbar {
  display: none; /* WebKit browsers (Chrome, Safari, Edge) */
}

.drag-handle-referrush {
  width: 80px;
  height: 4px;
  background: #e0e0e0;
  margin: 8px auto 24px;
  border-radius: 2px;
  cursor: grab;
  display: block;
}

.drag-handle-referrush:active {
  cursor: grabbing;
}

.phone-input-container-referrush {
  margin-bottom: 32px;
}

.submit-button-referrush {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  height: 56px;
}

.mobile-illustration-referrush {
  display: block;
  margin: 0 auto 24px;
  width: 200px;
  height: 150px;
  object-fit: cover;
  border-radius: 16px;
}

.divider-container-referrush {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  gap: 24px;
}

.divider-line-referrush {
  flex: 1;
  height: 2px;
  background: #000;
}

.divider-text-referrush {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  color: #000;
}

.mobile-phone-input-referrush {
  margin-bottom: 24px;
}

.mobile-submit-button-referrush {
  width: 100%;
  padding: 24px;
  border-radius: 12px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon-light-referrush {
  background: rgba(255, 255, 255, 0.2);
}

.step-icon-light-referrush svg {
  fill: white;
}

.step-icon-dark-referrush {
  background: #e0e0e0;
}

.step-icon-dark-referrush svg {
  fill: #000;
}

.how-it-works-title-referrush {
  font-size: 20px;
  margin-bottom: 24px;
  text-align: center;
  color: white;
}

.steps-container-referrush {
  margin-bottom: 24px;
}

.right-section-illustration-referrush {
  margin: 0 auto 24px;
}

/* Contact form specific styles */
.contact-form-container {
  display: none;
  position: fixed;
  z-index: 9999;
}

#contact_form_input_referrush {
  display: block;
}

#contact_form_success_referrush {
  display: none;
}

#mobile_contact_form_input_referrush {
  display: block;
}

#mobile_contact_form_success_referrush {
  display: none;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  height: 100%; /* Exact height match */
  overflow-y: auto;
}

.contact-form {
  width: 100%;
}

.powered-by {
  margin-top: 15px !important;
  text-align: center !important;
  font-size: 12px !important;
  font-family: "Inter", sans-serif !important;
  color: #6c757d !important;
}

.powered-by a {
  color: #2563eb !important;
  text-decoration: underline !important;
}

/* Referral Link Box Styles */
.referral-link-outer-box {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 360px;
}

.referral-link-box {
  width: 100%;
  max-width: 320px;
  background-color: #f3f4f6;
  color: #1f2937;
  display: flex;
  align-items: center;
  height: 40px;
  overflow: hidden;
  border-radius: 6px;
  padding: 0;
  margin-bottom: 20px;
}

.referral-link-text {
  flex: 1;
  min-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: #2563eb;
  text-decoration: underline;
  cursor: pointer;
  padding: 0 10px;
  margin: 0;
  border-radius: 6px 0 0 6px;
  background-color: transparent;
  height: 100%;
  line-height: 40px;
  display: block;
  max-width: 220px;
}

.copy-button {
  background-color: #262626;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
  height: 100%;
  width: 60px;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  border-radius: 0 6px 6px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.copy-button:hover {
  transform: scale(1.01);
}

.social-share-text {
  margin-top: 8px;
  text-align: center;
  word-wrap: break-word;
  font-size: 12px;
  font-family: "Inter", sans-serif;
  color: #6c757d;
}

/* Mobile Success View Styles */
.mobile-success-header {
  text-align: center;
  margin-bottom: 24px;
  align-self: center;
}

.success-icon-container {
  margin: 0 auto 16px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-success-title {
  font-size: 24px;
  font-weight: 700;
  color: #000;
  margin: 0 0 8px 0;
  font-family: "Inter", sans-serif;
}

.mobile-success-subtitle {
  font-size: 14px;
  color: #666;
  margin: 0;
  font-family: "Inter", sans-serif;
}

.mobile-referral-section {
  display: flex;
  width: 100%;
  margin-bottom: 24px;
  justify-content: center;
}

.mobile-referral-link-box {
  margin-bottom: 0;
}

.mobile-share-section {
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
  align-self: center;
}

.share-title {
  font-size: 18px;
  font-weight: 600;
  color: #000;
  margin: 0 0 4px 0;
  font-family: "Inter", sans-serif;
}

.share-subtitle {
  font-size: 14px;
  color: #666;
  margin: 0 0 16px 0;
  font-family: "Inter", sans-serif;
}

.mobile-social-buttons {
  gap: 12px;
  margin: 24px 0;
}

.mobile-social-buttons .social-share-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 12px 16px;
  text-decoration: none;
  color: #000;
  font-size: 14px;
  font-weight: 500;
  font-family: "Inter", sans-serif;
  transition: all 0.2s ease;
  min-width: 120px;
  justify-content: center;
}

.mobile-social-buttons .social-share-btn:hover {
  background: #e9ecef;
  transform: translateY(-1px);
}

.mobile-powered-by {
  align-self: center;
  text-align: center;
}

/* Success Tips Section */
.success-tips-section {
  margin-top: 24px;
}

.tip-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  font-family: "Inter", sans-serif;
}

.tip-item:last-child {
  margin-bottom: 0;
}

.tip-icon {
  font-size: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Hide original content on mobile success but maintain height */
.drawer-referrush.success-state .steps-container-referrush {
  display: none;
}

.drawer-referrush.success-state .mobile-illustration-referrush {
  display: none;
}

.drawer-referrush.success-state .main-heading-base-referrush {
  display: none;
}

/* Success illustration styling - same size as original */
.mobile-success-illustration-referrush {
  display: block;
  margin: 0 auto 24px;
  width: 200px;
  height: 150px;
  object-fit: cover;
  border-radius: 16px;
}

/* Social Share Buttons Container */
.social-share-buttons {
  display: flex;
  justify-content: center;
  margin-bottom: 0;
}

/* Individual Share Buttons */
.social-share-btn {
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin: 0 8px;
  transition: transform 0.2s;
}

.social-share-btn:hover {
  transform: scale(1.1);
}

.social-share-btn img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* Responsive Styles */
@media (min-width: 768px) {
  .desktop-modal-referrush {
    display: block;
  }
  .drawer-referrush {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .desktop-modal-referrush {
    display: none !important;
  }
  .drawer-referrush {
    display: block;
  }
  .main-heading-base-referrush {
    font-size: 28px;
    color: #000;
  }
  .drawer-content-referrush {
    padding: 24px 16px 40px;
  }
  .drawer-referrush .step-base-referrush {
    color: #000;
  }
}

@media (max-width: 900px) and (min-width: 768px) {
  .desktop-modal-referrush {
    max-width: 95%;
  }
  .right-section-referrush {
    padding: 40px 32px;
  }
  .left-section-referrush {
    padding: 32px;
  }
}

@media (max-width: 1024px) and (min-width: 768px) {
  .desktop-content-referrush {
    min-height: 450px;
  }
  .illustration-base-referrush {
    width: 160px;
  }
}

/* Legacy support for existing functionality */
.refer-and-earn-button {
    bottom: 10px; /* Adjust bottom position */
    left: 10px; /* Maintain right alignment */
    width: auto; /* Ensure it fits content */
    padding: 10px 10px; /* Adjust padding for better fit */
  }

.refer-and-earn-button {
  display: none;
  position: fixed;
  /* bottom: 10px; */
  /* left: 10px; */
  z-index: 9998;
  padding: 10px 10px;
  background-color: #262626;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
}

.refer-and-earn-button.myfrido {
  background-color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 2px solid #000;
}

.refer-and-earn-button.myfrido img {
  width: 30px;
  height: 30px;
}
