:root {
  --philia-cta-blue: #184f76;
  --philia-cta-blue-dark: #073b65;
  --philia-cta-blue-light: #accbdf;
  --philia-cta-gold: #c9ab6c;
}

.philia-cta-wrapper {
  display: flex;
  width: 100%;
  margin: 24px 0 34px;
}

.philia-cta-align-left {
  justify-content: flex-start;
}

.philia-cta-align-center {
  justify-content: center;
}

.philia-cta-align-right {
  justify-content: flex-end;
}

.philia-cta-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 44px;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: linear-gradient(135deg, #1b5f8c 0%, #184f76 52%, #073b65 100%);
  color: #ffffff !important;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
  text-decoration: none !important;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  box-shadow: 0 8px 18px rgba(7, 59, 101, 0.16), 0 2px 6px rgba(24, 79, 118, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.20);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.philia-cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -30%;
  width: 42%;
  height: 100%;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.08) 42%, rgba(172, 203, 223, 0.24) 52%, rgba(255, 255, 255, 0.08) 62%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-22deg);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
  transition: transform 0.35s ease, opacity 0.25s ease, left 0.35s ease;
}

.philia-cta-button > * {
  position: relative;
  z-index: 1;
}

.philia-cta-button::after {
  position: relative;
  z-index: 1;
  content: "";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.28em;
  height: 2.28em;
  margin-left: 13px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.99);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none'%3E%3Cpath d='M6.5 14h14.5' stroke='%23073b65' stroke-width='4.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M15.5 8.5L21 14l-5.5 5.5' stroke='%23073b65' stroke-width='4.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 70% 70%;
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 14px rgba(7, 59, 101, 0.16), inset 0 0 0 1px rgba(201, 171, 108, 0.10);
  line-height: 1;
  transform: translateY(0);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.philia-cta-button:hover,
.philia-cta-button:focus {
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(7, 59, 101, 0.18), 0 3px 8px rgba(24, 79, 118, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  filter: brightness(1.02);
  text-decoration: none !important;
}

.philia-cta-button:hover::after,
.philia-cta-button:focus::after {
  transform: translate(4px, -1px) scale(1.07);
  background-color: #ffffff;
  border-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 7px 16px rgba(7, 59, 101, 0.20), inset 0 0 0 1px rgba(201, 171, 108, 0.12);
}

.philia-cta-button:hover::before,
.philia-cta-button:focus::before {
  left: 104%;
  opacity: 0.72;
}

.philia-cta-button:focus-visible {
  outline: 3px solid rgba(24, 79, 118, 0.28);
  outline-offset: 3px;
}

.philia-cta-button--compact {
  max-width: 100%;
  padding: 11px 22px;
  font-size: 17px;
}

.philia-cta-button--wide {
  width: 100%;
  max-width: 860px;
  min-height: 50px;
  padding: 17px 28px;
  font-size: 18px;
  line-height: 1.45;
}

.philia-cta-button--outline {
  background: #ffffff;
  color: #073b65 !important;
  border-color: rgba(24, 79, 118, 0.20);
  box-shadow: 0 5px 12px rgba(7, 59, 101, 0.08);
}

.philia-cta-button--outline:hover,
.philia-cta-button--outline:focus {
  background: linear-gradient(135deg, #1b5f8c 0%, #184f76 52%, #073b65 100%);
  color: #ffffff !important;
  border-color: transparent;
}


.philia-cta-button--outline::after {
  background-color: rgba(24, 79, 118, 0.06);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none'%3E%3Cpath d='M6.5 14h14.5' stroke='%23073b65' stroke-width='4.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M15.5 8.5L21 14l-5.5 5.5' stroke='%23073b65' stroke-width='4.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 70% 70%;
  border-color: rgba(24, 79, 118, 0.12);
  box-shadow: 0 4px 10px rgba(7, 59, 101, 0.08), inset 0 0 0 1px rgba(201, 171, 108, 0.06);
}

.philia-cta-button--outline:hover::after,
.philia-cta-button--outline:focus::after {
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none'%3E%3Cpath d='M6.5 14h14.5' stroke='%23073b65' stroke-width='4.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M15.5 8.5L21 14l-5.5 5.5' stroke='%23073b65' stroke-width='4.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  border-color: rgba(24, 79, 118, 0.16);
}

.philia-cta-button--full,
.philia-cta-width-full .philia-cta-button {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 640px) {
  .philia-cta-wrapper {
    margin: 22px 0 32px;
  }

  .philia-cta-button,
  .philia-cta-button--compact,
  .philia-cta-button--wide {
    width: 100%;
    padding: 14px 18px;
    font-size: 17px;
    line-height: 1.42;
    border-radius: 24px;
  }
}
