/* ========================================
   GLOBAL RESET & BASE STYLES
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "DM Sans", sans-serif;
}

/* ========================================
   PRIMARY BUTTON STYLES - START
   ======================================== */

/* Primary CTA Buttons - Desktop Default */
.cta-primary,
.cta-primary-icon-left,
.cta-primary-icon-right {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 20px;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 24px !important;
  text-decoration: none !important;
  border-radius: 9999px;
  /* border: 1px solid #5b059c; */
  background: #5b059c;
  box-shadow: 0 1px 2px 0 rgba(10, 13, 18, 0.05);
  transition: all 0.2s ease-in-out;
  vertical-align: middle;
}

.cta-primary-icon-left,
.cta-primary-icon-right {
  gap: 8px;
}

/* Icon sizing - 24x24 container, icon renders at 19.2x19.2 */
.cta-icon {
  width: 24px !important;
  height: 24px !important;
  flex-shrink: 0;
  display: block !important;
  padding: 2.4px;
}

/* Primary Button Hover States */
.cta-primary:hover,
.cta-primary-icon-left:hover,
.cta-primary-icon-right:hover {
  /* border: 1px solid #49047d; */
  background: #49047d;
  box-shadow: 0 1px 2px 0 rgba(10, 13, 18, 0.05);
}

/* Primary Button Active States */
.cta-primary:active,
.cta-primary-icon-left:active,
.cta-primary-icon-right:active {
  background: #5b059c;
  box-shadow: 0 1px 2px 0 rgba(10, 13, 18, 0.05), 0 0 0 4px #efe6f5;
}

/* Primary Button Focus States */
.cta-primary:focus,
.cta-primary-icon-left:focus,
.cta-primary-icon-right:focus {
  outline: none;
  box-shadow: 0 1px 2px 0 rgba(10, 13, 18, 0.05), 0 0 0 4px #efe6f5;
}

/* Primary Button - Desktop Media Query (1024px - 1200px) */
@media (min-width: 1024px) and (max-width: 1200px) {
}

/* Primary Button - Tablet Media Query (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .cta-primary,
  .cta-primary-icon-left,
  .cta-primary-icon-right {
    padding: 10px 18px;
  }
}

/* Primary Button - Mobile Media Query (max 767px) */
@media (max-width: 767px) {
  .cta-primary,
  .cta-primary-icon-left,
  .cta-primary-icon-right {
    padding: 10px 18px;
  }
}

/* ========================================
   PRIMARY BUTTON STYLES - END
   ======================================== */

/* ========================================
   PRIMARY BUTTON DISABLED STYLES - START
   ======================================== */

/* Disabled Primary CTA Buttons - Desktop Default */
.cta-primary-disabled,
.cta-primary-disabled-icon-left,
.cta-primary-disabled-icon-right {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 20px;
  color: #667085 !important;
  font-size: 16px !important;
  font-weight: 700;
  line-height: 24px;
  text-decoration: none !important;
  border-radius: 9999px;
  background: #f2f4f7;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
  vertical-align: middle;
}

.cta-primary-disabled-icon-left,
.cta-primary-disabled-icon-right {
  gap: 8px;
}

/* Primary Disabled - Tablet Media Query (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .cta-primary-disabled,
  .cta-primary-disabled-icon-left,
  .cta-primary-disabled-icon-right {
    padding: 10px 18px;
  }
}

/* Primary Disabled - Mobile Media Query (max 767px) */
@media (max-width: 767px) {
  .cta-primary-disabled,
  .cta-primary-disabled-icon-left,
  .cta-primary-disabled-icon-right {
    padding: 10px 18px;
  }
}

/* ========================================
   PRIMARY BUTTON DISABLED STYLES - END
   ======================================== */

/* ========================================
   SECONDARY BUTTON STYLES - START
   ======================================== */

/* Secondary CTA Buttons - Desktop Default */
.cta-secondary,
.cta-secondary-icon-left,
.cta-secondary-icon-right {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 20px;
  color: #5b059c !important;
  font-size: 16px !important;
  font-weight: 700;
  line-height: 24px;
  text-decoration: none !important;
  border-radius: 9999px;
  /*   border: 1px solid #decdeb;  */
  background: #ffffff;
  box-shadow: 0 0 0 1px #decdeb inset, 0 1px 2px 0 rgba(10, 13, 18, 0.05);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  vertical-align: middle;
}

.cta-secondary-icon-left,
.cta-secondary-icon-right {
  gap: 8px;
}

.cta-icon-secondary {
  width: 24px !important;
  height: 24px !important;
  flex-shrink: 0;
  display: block !important;
  transition: all 0.2s ease-in-out;
  padding: 2.4px;
}

/* Secondary Button Hover States */
.cta-secondary:hover,
.cta-secondary-icon-left:hover,
.cta-secondary-icon-right:hover {
  background: #5b059c;
  color: #ffffff !important;
  box-shadow: 0 1px 2px 0 rgba(10, 13, 18, 0.05);
  transition: all 0.2s ease-in-out;
}

.cta-secondary:hover .cta-icon-secondary path,
.cta-secondary-icon-left:hover .cta-icon-secondary path,
.cta-secondary-icon-right:hover .cta-icon-secondary path {
  fill: #ffffff;
  transition: all 0.2s ease-in-out;
}

/* Secondary Button Active States */
.cta-secondary:active,
.cta-secondary-icon-left:active,
.cta-secondary-icon-right:active {
  background: #5b059c;
  color: #ffffff;
  box-shadow: 0 1px 2px 0 rgba(10, 13, 18, 0.05), 0 0 0 4px #efe6f5;
}

.cta-secondary:active .cta-icon-secondary path,
.cta-secondary-icon-left:active .cta-icon-secondary path,
.cta-secondary-icon-right:active .cta-icon-secondary path {
  fill: #ffffff;
}

/* Secondary Button Focus States */
.cta-secondary:focus,
.cta-secondary-icon-left:focus,
.cta-secondary-icon-right:focus {
  outline: none;
  box-shadow: 0 1px 2px 0 rgba(10, 13, 18, 0.05), 0 0 0 4px #efe6f5;
}

/* Secondary Button - Tablet Media Query (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .cta-secondary,
  .cta-secondary-icon-left,
  .cta-secondary-icon-right {
    padding: 10px 18px;
  }
}

/* Secondary Button - Mobile Media Query (max 767px) */
@media (max-width: 767px) {
  .cta-secondary,
  .cta-secondary-icon-left,
  .cta-secondary-icon-right {
    padding: 10px 18px;
  }
}

/* ========================================
   SECONDARY BUTTON STYLES - END
   ======================================== */

/* ========================================
   SECONDARY BUTTON DISABLED STYLES - START
   ======================================== */

/* Disabled Secondary CTA Buttons - Desktop Default */
.cta-secondary-disabled,
.cta-secondary-disabled-icon-left,
.cta-secondary-disabled-icon-right {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 20px;
  color: #667085 !important;
  font-size: 16px !important;
  font-weight: 700;
  line-height: 24px;
  text-decoration: none !important;
  border-radius: 9999px;
  background: #f2f4f7;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
  vertical-align: middle;
}

.cta-secondary-disabled-icon-left,
.cta-secondary-disabled-icon-right {
  gap: 8px;
}

/* Secondary Disabled - Tablet Media Query (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .cta-secondary-disabled,
  .cta-secondary-disabled-icon-left,
  .cta-secondary-disabled-icon-right {
    padding: 10px 18px;
  }
}

/* Secondary Disabled - Mobile Media Query (max 767px) */
@media (max-width: 767px) {
  .cta-secondary-disabled,
  .cta-secondary-disabled-icon-left,
  .cta-secondary-disabled-icon-right {
    padding: 10px 18px;
  }
}

/* ========================================
   SECONDARY BUTTON DISABLED STYLES - END
   ======================================== */

/* ========================================
   TERTIARY BUTTON STYLES - START
   ======================================== */

/* Tertiary CTA Buttons */
.cta-tertiary,
.cta-tertiary-icon-left,
.cta-tertiary-icon-right {
  display: inline-flex;
  align-items: center;
  color: #5b059c !important;
  font-size: 16px !important;
  font-weight: 700;
  line-height: 24px;
  text-decoration: none !important;
  background: none;
  border: none;
  transition: all 0.2s ease-in-out;
  vertical-align: middle;
  cursor: pointer;
}

.cta-tertiary-icon-left,
.cta-tertiary-icon-right {
  gap: 4px;
}

.cta-icon-tertiary {
  width: 24px !important;
  height: 24px !important;
  flex-shrink: 0;
  display: block !important;
  padding: 2.4px !important;
  fill: #5b059c !important;
}

/* Text wrapper with position relative for underline */
.cta-text {
  position: relative;
}

/* Animated Underline - now on the text span */
.cta-text::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 90px;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  height: 1px;
  background-color: #5b059c;
  transition: transform 0.3s ease-in-out;
}

/* Tertiary Button Hover States */
.cta-tertiary:hover .cta-text::after,
.cta-tertiary-icon-left:hover .cta-text::after,
.cta-tertiary-icon-right:hover .cta-text::after {
  transform: translateX(-50%) scaleX(1);
}

/* Tertiary Button Active States */
.cta-tertiary:active .cta-text::after,
.cta-tertiary-icon-left:active .cta-text::after,
.cta-tertiary-icon-right:active .cta-text::after {
  transform: translateX(-50%) scaleX(1);
}

/* Tertiary Button Focus States */
.cta-tertiary:focus .cta-text::after,
.cta-tertiary-icon-left:focus .cta-text::after,
.cta-tertiary-icon-right:focus .cta-text::after {
  outline: none;
  transform: translateX(-50%) scaleX(1);
}

/* ========================================
   TERTIARY BUTTON STYLES - END
   ======================================== */

/* ========================================
   TERTIARY BUTTON DISABLED STYLES - START
   ======================================== */

/* Disabled Tertiary CTA Buttons */
.cta-tertiary-disabled,
.cta-tertiary-disabled-icon-left,
.cta-tertiary-disabled-icon-right {
  display: inline-flex;
  align-items: center;
  color: #667085 !important;
  font-size: 16px !important;
  font-weight: 700;
  line-height: 24px;
  text-decoration: none !important;
  background: none;
  border: none;
  cursor: not-allowed;
  pointer-events: none;
  vertical-align: middle;
}

.cta-tertiary-disabled-icon-left,
.cta-tertiary-disabled-icon-right {
  gap: 4px;
}

/* ========================================
   TERTIARY BUTTON DISABLED STYLES - END
   ======================================== */

/* ========================================
   WHITE TEXT VARIANTS - START
   ======================================== */

/* Primary Button White Text Variant - Only affects text and icon color */
.cta-primary-white,
.cta-primary-white:hover,
.cta-primary-white:active,
.cta-primary-white:focus {
  color: #ffffff !important;
}

.cta-primary-white .cta-icon path,
.cta-primary-white:hover .cta-icon path,
.cta-primary-white:active .cta-icon path,
.cta-primary-white:focus .cta-icon path {
  fill: #ffffff !important;
}

/* Secondary Button White Text Variant - Only affects text and icon color */
.cta-secondary-white,
.cta-secondary-white:hover,
.cta-secondary-white:active,
.cta-secondary-white:focus {
  color: #ffffff !important;
}

.cta-secondary-white .cta-icon-secondary path,
.cta-secondary-white:hover .cta-icon-secondary path,
.cta-secondary-white:active .cta-icon-secondary path,
.cta-secondary-white:focus .cta-icon-secondary path {
  fill: #ffffff !important;
}

/* Tertiary Button White Text Variant - Only affects text, icon, and underline color */
.cta-tertiary-white,
.cta-tertiary-white:hover,
.cta-tertiary-white:active,
.cta-tertiary-white:focus {
  color: #ffffff !important;
}

.cta-tertiary-white .cta-icon-tertiary path,
.cta-tertiary-white:hover .cta-icon-tertiary path,
.cta-tertiary-white:active .cta-icon-tertiary path,
.cta-tertiary-white:focus .cta-icon-tertiary path {
  fill: #ffffff !important;
}

/* White underline for tertiary white variant */
.cta-tertiary-white .cta-text::after {
  background-color: #ffffff !important;
}

/* ========================================
   WHITE TEXT VARIANTS - END
   ======================================== */
