/**
 * GoCTA Frontend Styles
 * @package GoCTA
 */

/* Button Wrapper */
.gocta-button-wrapper {
  margin: 20px 0;
  clear: both;
}

/* Base Button Styles */
.gocta-button {
  padding: 12px 18px;
  margin: 8px;
  font-size: 16px;
  line-height: 1.4;
  border-radius: 6px;
  text-align: left;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease-in-out;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

.gocta-button:active,
.gocta-button:focus {
  outline: 0;
}

.gocta-button:focus,
.gocta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.gocta-button:active {
  outline: 0;
  transform: translateY(0);
  transition: none;
}

/* Google Play Button */
.gocta-button-google {
  color: #fff;
  background-color: #000;
  border-color: #000;
  padding: 16px 18px 8px 48px;
  position: relative;
  min-width: 180px;
}

.gocta-button-google:focus,
.gocta-button-google:hover {
  color: #fff;
  background-color: #1a1a1a;
  border-color: #1a1a1a;
}

.gocta-button-google:active {
  background-color: #333;
}

.gocta-button-google:before {
  content: "";
  background-image: url(../img/google-play-icon.png);
  background-size: cover;
  background-repeat: no-repeat;
  width: 28px;
  height: 28px;
  position: absolute;
  left: 10px;
  top: 50%;
  margin-top: -14px;
}

.gocta-button-google:after {
  content: "GET IT ON";
  position: absolute;
  top: 6px;
  left: 48px;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* Apple App Store Button */
.gocta-button-apple {
  color: #fff;
  background-color: #000;
  border-color: #000;
  padding: 16px 24px 8px 56px;
  position: relative;
  min-width: 180px;
}

.gocta-button-apple:focus,
.gocta-button-apple:hover {
  color: #fff;
  background-color: #1a1a1a;
  border-color: #1a1a1a;
}

.gocta-button-apple:active {
  background-color: #333;
}

.gocta-button-apple:before {
  content: "";
  background-image: url(../img/app-store-icon.png);
  background-size: cover;
  background-repeat: no-repeat;
  width: 28px;
  height: 28px;
  position: absolute;
  left: 14px;
  top: 50%;
  margin-top: -14px;
}

.gocta-button-apple:after {
  content: "DOWNLOAD ON";
  position: absolute;
  top: 6px;
  left: 56px;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* Combined App Stores Layout */
.gocta-appstores-parent {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 0;
}

.gocta-appstores-child {
  display: inline-block;
}

.gocta-inline-block-stores {
  display: inline-block;
}

/* Responsive Design */
@media (max-width: 600px) {
  .gocta-button {
    font-size: 14px;
    padding: 10px 14px;
    margin: 6px;
  }

  .gocta-button-google,
  .gocta-button-apple {
    min-width: 160px;
    padding: 14px 16px 6px 44px;
  }

  .gocta-button-google:before,
  .gocta-button-apple:before {
    width: 24px;
    height: 24px;
    margin-top: -12px;
  }

  .gocta-button-google:after {
    left: 44px;
    font-size: 8px;
  }

  .gocta-button-apple {
    padding: 14px 20px 6px 50px;
  }

  .gocta-button-apple:after {
    left: 50px;
    font-size: 8px;
  }

  .gocta-appstores-parent {
    flex-direction: column;
  }
}

/* Additional Provider Button Styles */
.wegotrip-btn {
  background: #1ea9b3 !important;
  color: #ffffff !important;
}

.wegotrip-btn:hover {
  background: #1ea9b3 !important;
  color: #ffffff !important;
}

.getrentacar-btn {
  background: #2e3192 !important;
  color: #ffffff !important;
}

.getrentacar-btn:hover {
  background: #1879ca !important;
  color: #ffffff !important;
}

.go12-btn {
  background: #4db84d !important;
  color: #ffffff !important;
}

.go12-btn:hover {
  background: #4db84d !important;
  color: #ffffff !important;
}

.rentalcars-btn {
  background: #2e3192 !important;
}

.rentalcars-btn:hover {
  background: #1879ca !important;
}

.visitorscoverage-btn {
  background: #0066cc !important;
  color: #ffffff !important;
}

.visitorscoverage-btn:hover {
  background: #0052a3 !important;
  color: #ffffff !important;
}

.radicalstorage-btn {
  background: #2c80ed !important;
  color: #ffffff !important;
}

.radicalstorage-btn:hover {
  background: #2c80ed !important;
  color: #ffffff !important;
}

.compensair-btn {
  background: #0a83ba !important;
  color: #ffffff !important;
}

.compensair-btn:hover {
  background: #0a83ba !important;
  color: #ffffff !important;
}

.indrive-btn {
  background: #a7e92f !important;
  color: #000000 !important;
}

.indrive-btn:hover {
  background: #a7e92f !important;
  color: #000000 !important;
}

.nordvpn-btn {
  background: #3e5fff !important;
  color: #ffffff !important;
}

.nordvpn-btn:hover {
  background: #3e5fff !important;
  color: #ffffff !important;
}

.airalo-btn {
  background: #404040 !important;
  color: #ffffff !important;
}

.airalo-btn:hover {
  background: #404040 !important;
  color: #ffffff !important;
}

.saily-btn {
  background: #bd2426 !important;
  color: #ffffff !important;
}

.saily-btn:hover {
  background: #bd2426 !important;
  color: #ffffff !important;
}

.yesim-btn {
  background: #ff7a00 !important;
  color: #ffffff !important;
}

.yesim-btn:hover {
  background: #ff7a00 !important;
  color: #ffffff !important;
}

/* Footer Partner Styles for CTA Buttons */
.footer-partner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.footer-partner-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.footer-partners-logo {
  font-weight: 600;
}

.footer-partner-fw-bold {
  font-weight: 700;
}

.footer-partner-img-fluid {
  max-width: 100%;
  height: auto;
}

.footer-partner-me-2 {
  margin-right: 8px;
}

.flight-shortcode-button {
  width: 100%;
  text-align: center;
}

/* CTA Layout Adjustments */
/* Single item - centered */
.addon-list.gocta-single-item {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.addon-list.gocta-single-item .addon-item {
  max-width: 500px !important;
  width: 100% !important;
}

/* Even number of items - 2 columns on desktop */
.addon-list.gocta-even-items {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 0.5rem !important;
}

/* Odd number of items - 2 columns with last item centered */
.addon-list.gocta-odd-items {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 0.5rem !important;
}

.addon-list.gocta-odd-items .addon-item:last-child:nth-child(odd) {
  grid-column: 1 / -1 !important;
  max-width: 500px !important;
  margin: 0 auto !important;
  width: 100% !important;
}

/* Mobile adjustments */
@media (max-width: 767px) {

  .addon-list.gocta-even-items,
  .addon-list.gocta-odd-items {
    grid-template-columns: 1fr !important;
  }

  .addon-list.gocta-odd-items .addon-item:last-child:nth-child(odd) {
    grid-column: 1 !important;
    max-width: 100% !important;
  }

  .addon-list.gocta-single-item .addon-item {
    max-width: 100% !important;
  }
}