body {
  font-family: "Montserrat", sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Prevent horizontal scrollbar */
}

.bg-black {
  background-color: #303845;
}

.bg-yellow {
  background-color: #ffc600;
}

header .logo {
  max-height: 40px;
}

header .claim {
  color: #ffc600;
  font-size: 1.5em;
  font-weight: bold;
  margin-left: 30px; /* Added space between logo and claim */
}

header {
  padding-top: 20px;
  padding-bottom: 20px;
}

.custom-container {
  max-width: 1400px; /* Custom width for the container */
  margin: 0 auto;
  padding: 0 15px;
}

.hero-section {
  background: linear-gradient(
    to bottom,
    #ede4e2,
    #f0e8e6,
    #f8f2f0
  ); /* Darker to lighter from top to bottom */
  position: relative;
  padding-top: 2rem; /* Add top padding for spacing */
  padding-bottom: 2rem; /* Add bottom padding */
}

.contact-form {
  background: linear-gradient(to bottom, #fde8ec, #f5e6f3);
  border: 2px solid #d82641;
  padding: 20px;
  border-radius: 1rem; /* Updated border radius */
  box-shadow: 0 4px 20px rgba(216, 38, 65, 0.15);
}

.contact-info {
  background-color: #fff;
  padding: 20px;
  border-radius: 1rem; /* Updated border radius */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-move-up {
  margin-top: -65px; /* Adjust form position */
}

.contact-form h3,
.contact-info h3 {
  color: #212529; /* Changed to black */
}

.contact-info .phone-number,
.korzysci {
  font-size: 2.5rem; /* Updated font size */
  font-weight: 600; /* Updated font weight */
}

.phone-number {
  text-decoration: none;
  color: #212529;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.phone-number:hover {
  text-decoration: none;
  color: #212529;
}

.phone-number:before {
  content: "";
  width: 40px;
  height: 40px;
  background: url(../img/phone.png) no-repeat;
  background-size: contain;
}

.contact-form .small-text,
.contact-info .small-text {
  font-size: 1rem; /* Increased text size */
  color: #6c757d; /* Grey color */
}

.form-floating .form-control {
  border: none;
  border-bottom: 2px solid #00582b;
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
  background: none;
  height: calc(3.5rem + 2px);
}

.form-floating .form-control:focus {
  box-shadow: none;
  border-bottom-color: #ffc600;
}

.form-floating .form-label {
  color: #6c757d;
  position: absolute;
  top: 0;
  left: 0;
  padding-left: 0;
  padding-right: 0;
  pointer-events: none;
  transition: all 0.2s ease;
}

.form-floating .form-control:focus ~ .form-label,
.form-floating .form-control:not(:placeholder-shown) ~ .form-label {
  transform: translateY(-1.5rem);
  font-size: 0.75em;
  color: #00582b;
}

.btn-custom {
  background: linear-gradient(135deg, #d82641, #8b2676);
  color: #ffffff;
  text-transform: uppercase;
  font-size: 2.5em;
  width: 100%; /* Full width */
  border-radius: 1rem; /* Updated border radius */
  line-height: 2; /* Increased line height */
  font-weight: 800; /* Bold text */
  padding: 0rem; /* Increased padding for larger button */
  border: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(216, 38, 65, 0.3);
  min-height: 80px; /* Fixed height to prevent size changes */
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-custom::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s ease;
}

.btn-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 38, 103, 0.4);
  background: linear-gradient(135deg, #c4203a, #7a1e66);
}

.btn-custom:hover::before {
  left: 100%;
}

.btn-custom:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(216, 38, 65, 0.3);
}

.btn-custom:focus {
  outline: none;
  box-shadow: 0 8px 25px rgba(139, 38, 103, 0.4),
    0 0 0 3px rgba(216, 38, 65, 0.2);
}

.btn-custom:disabled {
  opacity: 0.7;
  transform: none;
  box-shadow: 0 4px 15px rgba(216, 38, 65, 0.2);
  cursor: not-allowed;
}

/* Generate loader text styling */
#generateLoader {
  font-size: 1.4rem !important;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Benefits grid layout */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.benefit-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(30px);
  animation: slideInFromBottom 0.6s ease-out forwards;
}

/* Single card style */
.benefit-card.single-card {
  display: block;
  padding: 2rem;
  margin-top: 1.5rem;
}

.benefit-main-title {
  color: #333;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}

.benefits-list {
  margin-top: 1rem;
}

.benefit-item {
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.benefit-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.benefit-card:nth-child(1) {
  animation-delay: 0.1s;
}

.benefit-card:nth-child(2) {
  animation-delay: 0.2s;
}

.benefit-card:nth-child(3) {
  animation-delay: 0.3s;
}

.benefit-card:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.benefit-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border-color: #ffc600;
}

.benefit-card.single-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #ffc600, #e6b800);
  border-radius: 10px;
  flex-shrink: 0;
}

.benefit-icon i {
  font-size: 1.2rem;
  color: #333;
}

.benefit-text {
  flex: 1;
}

.benefit-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 0.25rem 0;
  line-height: 1.3;
}

.benefit-desc {
  font-size: 0.85rem;
  color: #6c757d;
  margin: 0;
  line-height: 1.4;
}

.rounded {
  border-radius: 1rem !important;
}

.custom-1 {
  margin: 35px 0px;
}

.eska {
  width: 50px;
  margin: 20px;
}

.sticky-section {
  position: sticky;
  top: 20px;
}

/* Mobile specific styles */
@media (max-width: 767.98px) {
  body {
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .custom-container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .hero-section {
    padding-top: 0; /* Remove top padding to stick to header */
    padding-bottom: 1rem;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .row {
    --bs-gutter-y: 0; /* Remove vertical gutter spacing */
    --bs-gutter-x: 0; /* Remove horizontal gutter spacing */
    margin-left: 0;
    margin-right: 0;
  }

  /* Remove column padding by default */
  .col-md-4,
  .col-md-8 {
    padding-left: 0;
    padding-right: 0;
  }

  header {
    text-align: center; /* Center align header content */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  header .d-flex {
    justify-content: center !important;
  }

  header .logo {
    max-height: 30px; /* Reduce logo size */
    margin: 0 auto; /* Center the logo */
  }

  header .claim {
    font-size: 0.7em; /* Adjusted font size */
    margin-left: 10px; /* Center claim text */
    display: block; /* Ensure it's displayed below the logo */
    margin-right: 10px; /* Add right margin */
  }

  .korzysci,
  .contact-info .phone-number {
    font-size: 2rem; /* Reduce font size for mobile */
  }

  .contact-form,
  .contact-info {
    padding: 1.5rem; /* Match benefit card padding */
    margin-bottom: 15px;
    margin-left: 0;
    margin-right: 0;
    /* Keep rounded corners on mobile */
  }

  /* Benefits grid mobile adjustments */
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .benefit-card {
    padding: 1rem;
    gap: 0.5rem;
  }

  /* Single card mobile adjustments */
  .benefit-card.single-card {
    padding: 1.5rem;
    margin-top: 1rem;
    /* Keep rounded corners on mobile */
  }

  .benefit-main-title {
    font-size: 1.25rem;
  }

  .benefit-item {
    padding-bottom: 0.75rem;
  }

  .benefit-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .benefit-icon i {
    font-size: 1rem;
  }

  .benefit-title {
    font-size: 1rem;
  }

  .benefit-desc {
    font-size: 0.8rem;
  }

  .custom-1 {
    margin: 15px 0;
  }

  .form-move-up {
    margin-top: 0px;
  }

  footer {
    padding-left: 15px;
    padding-right: 15px;
  }

  footer .privacy-notice p {
    font-size: 0.8em; /* Smaller text for mobile */
  }

  footer p {
    font-size: 0.8em; /* Smaller text for mobile */
  }
}

/* Consent section styles removed - no wrapper needed */

/* Check all container - clean, no borders */
.check-all-container {
  padding: 0.1rem 0;
  margin-bottom: 0.5rem;
}

.check-all-container .form-check-input {
  transform: scale(1.1);
  margin-right: 0.5rem;
  border-width: 2px;
}

.check-all-container .form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 198, 0, 0.25);
  border-color: #ffc600;
}

.check-all-container .form-check-input:checked {
  background-color: #ffc600;
  border-color: #ffc600;
}

.check-all-container .form-check-label {
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
  cursor: pointer;
}

/* Individual consent items - clean, no borders */
.consent-item {
  padding: 0.1rem 0;
  margin-bottom: 0.25rem;
  word-wrap: break-word;
}

.consent-item .form-check-input {
  transform: scale(1.1);
  margin-right: 0.5rem;
  border-width: 2px;
}

.consent-item .form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 198, 0, 0.25);
  border-color: #ffc600;
}

.consent-item .form-check-input.consent-required:checked {
  background-color: #dc3545;
  border-color: #dc3545;
}

.consent-item .form-check-input.consent-optional:checked {
  background-color: #6c757d;
  border-color: #6c757d;
}

.consent-item .form-check-label {
  font-size: 0.75rem;
  line-height: 1.2;
  color: #333;
  cursor: pointer;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Toggle buttons */
.consent-toggle {
  color: #6c757d;
  text-decoration: none;
  font-size: 0.65rem;
  margin-top: 0;
  margin-left: 1.5rem;
  padding: 0;
  border: none;
  background: none;
}

.consent-toggle:hover {
  color: #ffc600;
  text-decoration: none;
}

.consent-toggle .toggle-icon {
  transition: transform 0.3s ease;
}

.consent-toggle .toggle-icon.rotated {
  transform: rotate(180deg);
}

/* Consent details */
.consent-details {
  margin-top: 0.1rem;
  margin-left: 1.5rem;
  overflow: hidden;
  display: none; /* Initially hidden */
}

.consent-details.show {
  display: block; /* Show when active */
}

.consent-text {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 0.3rem;
  font-size: 0.65rem;
  line-height: 1.3;
  color: #333;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.consent-link {
  color: #d7244d;
  text-decoration: underline;
  font-weight: 500;
}

.consent-link:hover {
  color: #e6b800;
}

/* How it works section styles */
.how-it-works-list {
  position: relative;
}

.how-it-works-item {
  position: relative;
  align-items: flex-start !important;
}

.step-number {
  background: #ffc600;
  color: #333;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #f8f9fa;
  border-radius: 50%;
  flex-shrink: 0;
}

.step-icon i {
  font-size: 1rem;
}

.step-text {
  flex: 1;
  padding-top: 0.25rem;
}

.step-text span {
  color: #333;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Add connecting line between steps */
.how-it-works-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 24px;
  width: 2px;
  height: calc(100% + 0.5rem);
  background: #e9ecef;
  z-index: 1;
}

/* Contact section styles */
.contact-section {
  border-top: 1px solid #e9ecef !important;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(45deg, #ffc600, #e6b800);
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 1.1rem;
  color: #333;
}

.contact-text {
  flex: 1;
}

.contact-email {
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.contact-email:hover {
  color: #ffc600;
  text-decoration: none;
  transform: translateX(3px);
}

.contact-email i {
  color: #6c757d;
  transition: color 0.3s ease;
}

.contact-email:hover i {
  color: #ffc600;
}

/* Mobile adjustments for hero slider */
@media (max-width: 767.98px) {
  /* Make slider container full width */
  .hero-section .custom-container {
    padding-left: 0;
    padding-right: 0;
  }

  .hero-section .row {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-section .col-md-8 {
    padding-left: 0;
    padding-right: 0;
  }

  .hero-slider-container {
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 15px;
    width: 100%;
  }

  #heroCarousel {
    border-radius: 0;
  }

  /* Add padding back for non-slider content */
  .hero-section .custom-1,
  .hero-section .col-md-4 {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Mobile adjustments for how it works */
@media (max-width: 767.98px) {
  .step-number {
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    margin-right: 0.5rem;
  }

  .step-icon {
    width: 28px;
    height: 28px;
    margin-right: 0.75rem !important;
  }

  .step-icon i {
    font-size: 0.9rem;
  }

  .step-text span {
    font-size: 0.85rem;
  }

  .how-it-works-item:not(:last-child)::after {
    left: 9px;
  }

  /* Mobile contact section adjustments */
  .contact-icon {
    width: 32px;
    height: 32px;
    margin-right: 0.75rem !important;
  }

  .contact-icon i {
    font-size: 1rem;
  }

  .contact-email {
    font-size: 0.85rem;
  }
}

/* Hero slider styles */
.hero-slider-container {
  position: relative;
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#heroCarousel {
  border-radius: 1rem;
}

.carousel-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.carousel-indicators {
  bottom: 20px;
}

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid transparent;
  margin: 0 5px;
}

.carousel-indicators .active {
  background-color: #ffc600;
  width: 12px;
  height: 12px;
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider-container:hover .carousel-control-prev,
.hero-slider-container:hover .carousel-control-next {
  opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background-color: #ffc600;
  opacity: 1 !important;
}

.carousel-control-prev {
  left: 20px;
}

.carousel-control-next {
  right: 20px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 20px;
  height: 20px;
}

/* Smooth fade transition */
.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
  opacity: 1;
}

.carousel-fade .carousel-item-next:not(.carousel-item-start),
.carousel-fade .carousel-item-prev:not(.carousel-item-end) {
  opacity: 0;
}

/* Enhanced fade animation */
.carousel-fade .carousel-item {
  transform: none;
}

.carousel-fade .carousel-item.active {
  z-index: 1;
}

/* Mobile adjustments for slider */
@media (max-width: 767.98px) {
  .hero-slider-container {
    border-radius: 0;
  }

  #heroCarousel {
    border-radius: 0;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 40px;
    height: 40px;
    opacity: 0.6;
  }

  .carousel-control-prev {
    left: 10px;
  }

  .carousel-control-next {
    right: 10px;
  }

  .carousel-indicators {
    bottom: 10px;
  }

  .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    margin: 0 3px;
  }

  .carousel-indicators .active {
    width: 10px;
    height: 10px;
  }
}

/* Remove pretty checkbox library link if not needed */

/* Phone input styles */
.phone-label {
  color: #333;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.phone-label i {
  color: #d82641;
  font-size: 1.2rem;
}

.phone-input-wrapper {
  position: relative;
}

.phone-input {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 1.2rem 1.5rem;
  border: 3px solid #d82641;
  border-radius: 12px;
  background: #ffffff;
  transition: all 0.3s ease;
  font-family: "Courier New", monospace;
  box-shadow: 0 2px 10px rgba(216, 38, 65, 0.2);
  text-align: center;
}

.phone-input:focus {
  background: #fff;
  border-color: #8b2676;
  box-shadow: 0 0 0 0.3rem rgba(139, 38, 103, 0.25),
    0 4px 20px rgba(216, 38, 65, 0.3);
  outline: none;
  transform: scale(1.02);
}

.phone-input-wrapper.focused {
  transform: translateY(-2px);
}

.phone-input-wrapper.focused .phone-input {
  border-color: #8b2676;
  background: #fff;
  box-shadow: 0 0 0 0.3rem rgba(139, 38, 103, 0.25),
    0 6px 25px rgba(216, 38, 65, 0.3);
  transform: scale(1.02);
}

.phone-input::placeholder {
  color: #999 !important;
  font-weight: normal;
  font-style: normal;
}

.phone-input:focus::placeholder {
  color: transparent;
}

/* InputMask styling - different colors for placeholders vs user input */
.phone-input {
  color: #333; /* Color for user-entered digits */
}

.phone-input:focus {
  color: #333; /* Keep user-entered digits dark */
}

/* Custom CSS to style InputMask placeholder characters */
.phone-input[data-inputmask] {
  background: linear-gradient(to right, transparent 0%, transparent 100%);
}

/* Try to target InputMask placeholders with a different approach */
.phone-input::selection {
  background: rgba(216, 38, 65, 0.2);
}

.phone-input.is-invalid {
  border-color: #dc3545;
  background: #fff5f5;
}

.phone-input.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

.phone-input-container .invalid-feedback {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #dc3545;
}

/* Alert improvements */
.alert {
  border-radius: 0.5rem;
  margin-top: 1rem;
}

.alert i {
  font-size: 1.2rem;
}

/* Promotion overlay styles */
.position-absolute.bg-white {
  opacity: 0.95;
}

@media (max-width: 767.98px) {
  .position-absolute.bg-white {
    width: 90% !important;
    padding: 1rem !important;
  }

  .position-absolute.bg-white h1 {
    font-size: 3rem;
  }

  .position-absolute.bg-white p {
    font-size: 1.2rem;
  }

  /* Mobile phone input adjustments */
  .phone-input {
    font-size: 1.2rem;
    padding: 1rem 1.2rem;
  }

  .phone-label {
    font-size: 1rem;
  }

  /* Mobile consent section adjustments - wrapper removed */

  .consent-item {
    padding: 0.05rem 0;
    margin-bottom: 0.1rem;
  }

  .check-all-container {
    padding: 0.05rem 0;
    margin-bottom: 0.3rem;
  }

  .check-all-container .form-check-label {
    font-size: 0.7rem;
  }

  .consent-item .form-check-input,
  .check-all-container .form-check-input {
    transform: scale(0.9);
    margin-right: 0.3rem;
  }

  .consent-item .form-check-label {
    font-size: 0.65rem;
    line-height: 1.1;
  }

  .consent-toggle {
    font-size: 0.6rem;
    margin-top: 0;
    margin-left: 1.2rem;
  }

  .consent-text {
    padding: 0.3rem;
    font-size: 0.6rem;
    line-height: 1.2;
  }

  .consent-details {
    margin-top: 0.05rem;
    margin-left: 1.2rem;
  }
}
