/* Basic styling */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
}

.content {
  padding: 20px;
  height: 1500px;
  /* Just for scrolling effect */
}

/* Sticky button container */
.sticky-buttons {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  gap: 10px;
  z-index: 1000;
}

/* Common button styles */
.btn {
  padding: 15px 15px;
  border: none;
  border-radius: 5px;
  color: white;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.3s;
}

/* Call Now button */
.call-now {
  display: none;
}

/* Show the button only on mobile devices */
@media (max-width: 768px) {
  .call-now {
    display: inline-block;
  }
}


.call-now {
  background-color: #28a745;
}

.call-now:hover {
  background-color: #218838;
}

/* Apply Now button */
.apply-now {
  background-color: #d4202d;
}

.apply-now:hover {
  background-color: #821723;
}

/* Popup styles */
.popup {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 1001;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.popup-content {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  padding: 0;
  border-radius: 16px;
  width: 90%;
  max-width: 420px;
  text-align: left;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease;
}

.popup h2 {
  margin: 0;
  padding: 25px 30px;
  background: linear-gradient(135deg, #D41F2C 0%, #a01520 100%);
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  border-radius: 16px 16px 0 0;
  text-align: center;
  letter-spacing: 0.5px;
}

.close-btn {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 28px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 10;
}

.close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* Popup form styles */
.popup-form-fields {
  padding: 25px 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.popup-form-fields input[type="text"],
.popup-form-fields input[type="email"],
.popup-form-fields select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  box-sizing: border-box;
  font-size: 15px;
  background: #fff;
  transition: all 0.3s ease;
  color: #333;
}

.popup-form-fields input[type="text"]::placeholder,
.popup-form-fields input[type="email"]::placeholder {
  color: #999;
}

.popup-form-fields input[type="text"]:focus,
.popup-form-fields input[type="email"]:focus,
.popup-form-fields select:focus {
  outline: none;
  border-color: #D41F2C;
  box-shadow: 0 0 0 4px rgba(212, 31, 44, 0.1);
  background: #fff;
}

.popup-form-fields select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
  cursor: pointer;
}

.popup-form-fields button {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #D41F2C 0%, #a01520 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 5px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(212, 31, 44, 0.3);
}

.popup-form-fields button:hover {
  background: linear-gradient(135deg, #b01824 0%, #8a1018 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 31, 44, 0.4);
}

.popup-form-fields button:active {
  transform: translateY(0);
}

#apply-popup label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
  letter-spacing: 0.3px;
}

#apply-popup .quform-required {
  color: #D41F2C;
}

#apply-popup input[type="text"],
#apply-popup input[type="email"],
#apply-popup select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  box-sizing: border-box;
  font-size: 15px;
  background: #fff;
  transition: all 0.3s ease;
  color: #333;
}

#apply-popup input[type="text"]::placeholder,
#apply-popup input[type="email"]::placeholder {
  color: #aaa;
}

#apply-popup input[type="text"]:focus,
#apply-popup input[type="email"]:focus,
#apply-popup select:focus {
  outline: none;
  border-color: #D41F2C;
  box-shadow: 0 0 0 4px rgba(212, 31, 44, 0.1);
  background: #fff;
}

#apply-popup select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
  cursor: pointer;
}

#apply-popup .send-box {
  padding: 0 30px 25px;
}

#apply-popup .send-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#apply-popup .send-box button {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #D41F2C 0%, #a01520 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 5px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(212, 31, 44, 0.3);
}

#apply-popup .send-box button:hover {
  background: linear-gradient(135deg, #b01824 0%, #8a1018 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 31, 44, 0.4);
}

#apply-popup .send-box button:active {
  transform: translateY(0);
}

/* Mobile responsiveness for popup */
@media (max-width: 480px) {
  .popup-content {
    width: 95%;
    max-width: 100%;
    margin: 10px;
    border-radius: 12px;
  }

  .popup h2 {
    padding: 20px;
    font-size: 18px;
    border-radius: 12px 12px 0 0;
  }

  #apply-popup .quform-elements {
    padding: 20px 20px 10px;
  }

  #apply-popup .send-box {
    padding: 0 20px 20px;
  }

  #apply-popup input[type="text"],
  #apply-popup input[type="email"],
  #apply-popup select {
    padding: 12px 14px;
    font-size: 14px;
  }
}