:root {
  /* color-pallete */
  --bs-ui-red: #e13833;
  --bs-ui-blue: #00112b;

  /* backgrounds */
  --bs-ui-background-white: #fff;
  --bs-ui-background-offwhite: #f5f5f5;
  --bs-ui-background-lightgray: #eee;
  --bs-ui-section-background: #f9f9f9;
  /* backgrounds */

  /* fonts */
  --bs-ui-text-red: #e13833;
  --bs-ui-text-blue: #00112b;
  --bs-ui-text-white: #fff;
  --bs-ui-text-offwhite: #f5f5f5;
  --bs-ui-text-lightgray: #eee;
  --bs-ui-text-darkgray: #1f1f1f;
  /* fonts */

  /* icons */
  --bs-ui-icons-white: #f5f5f5;
  --bs-ui-icons-red: #e13833;
  --bs-ui-icons-blue: #00112b;
  /* icons */
}

* {
  user-select: none;
  box-sizing: border-box;
}

#toast {
  padding: 1rem 1.5rem;
  background-color: #00112b;
  color: white;
  position: fixed;
  top: 10px;
  right: -350px;
  display: flex;
  gap: 10px;
  align-items: center;
  border-radius: 8px;
  min-width: 250px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.35s ease-in-out;
  opacity: 0;
  visibility: hidden;
}

/* Success styling */
#toast.success {
  border-left: 6px solid #4caf50;
}

/* Error styling */
#toast.error {
  border-left: 6px solid #e13933;
}

#toast.show {
  right: 15px !important;
  opacity: 1;
  visibility: visible !important;
}

#toast-icon {
  font-size: 20px;
}

/* Base styles */
body {
  color: #f5f5f5;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  padding: 0;
  margin: 0;
  background-color: #000;
}

.highlight-paragraph {
  background-color: #2c7be540;
  border-left: 4px solid #2c7be5;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  width: 100%;
  font-weight: 600;
  color: #cccccc;
}
.cta-btns {
  flex-grow: 1;
}

.important-text {
  color: var(--bs-ui-red);
  font-weight: 700;
}

.layout-container {
  display: flex;
  flex-direction: row-reverse;
  position: relative;
}
.spline-container {
  position: sticky;
  top: 0;
  min-width: 300px;
  width: 100%;
  height: 100vh;
}
/* Form container */
.container {
  width: 100%;
  margin: auto;
}
@media (max-width: 1060px) {
  .spline-container {
    display: none;
  }
  .container {
    max-width: 100vw;
    margin: 20px 0;
  }
}

#consultantForm {
  padding: 12px;
  background-color: #1c457a40;
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 20px;
  z-index: 1;
}

/* Enhanced interactive text input */
.form-control.interactive-input {
  border: none;
  background-color: transparent;
  border-radius: 12px;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: #cccccc;
  transition:
  border-color 0.3s ease,
  box-shadow 0.3s ease,
  transform 0.3s ease;
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.05);
  outline: none;
  width: 100%;
}
.interactive-input:required {
  border-bottom: 2px solid #2c7be5;
}

.form-control.interactive-input::placeholder {
  color: #aaa;
  transition: opacity 0.3s ease;
}

.form-control.interactive-input:focus {
  background-color: #2c7be540;
  color: #cccccc;
}

/* ===== CUSTOM FILE UPLOAD ===== */
.file-upload {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  padding: 14px;
  border-radius: 12px;
  background: transparent;
  border-bottom: 2px solid #2c7be5;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-upload:hover,
.file-upload:focus {
  background: #2c7be540;
  border-color: #6CC7FF;
}

.file-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ccc;
}

.file-name {
  font-size: 0.8rem;
  color: #ccc;
}

/* Hide the native input completely */
.file-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* ------------------------------------------------------------------------------------------------------------------- */

.form-label {
  font-weight: bold;
  margin-bottom: 8px;
}

.radio-buttons-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 100%;
}

.form-check-inline {
  flex-grow: 1;
  display: block;
  text-align: center;
  position: relative;
  min-width: 140px;
  margin: 0;
  padding: 0;
}

/* Make the label act as a card */
.form-check-label {
  display: block;
  padding: 12px 0;
  border-bottom: 2px solid #2c7be5;
  border-radius: 6px;
  cursor: pointer;
  color: #ccc;
  font-weight: 600;
  transition: all 0.3s ease-in-out;
}

/* Hide the actual radio inputs */
.form-check-input {
  position: absolute;
  left: 0px;
  opacity: 0;
  width: 100% !important;
  height: 100% !important;
  transition: all 0.3s ease-in-out;
}
.form-check-input:hover + .form-check-label,
.form-check-input:focus + .form-check-label {
  background-color: #2c7be540;
}

/* Style the label when its associated radio is checked */
.form-check-input:checked + .form-check-label {
  background-color: #2c7be580;
  border-color: #2c7be5;
  color: #cccccc;
}

/* Card wrapper for each form group */
.form-card {
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 0.8rem;
  background-color: #2c7be504;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

#payBtn,
#checkDetailsBtn {
  padding: 0.6rem 1.6rem;
  border-radius: 4px;
  font-weight: 600;
  color: rgb(0, 0, 0);
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
#payBtn:disabled {
  background-color: #2c7be540 !important;
  pointer-events: auto;
  cursor: default;
}

#payBtn {
  background-color: #6CC7FF;
}
#checkDetailsBtn {
  background-color: #2c7be5;
}
#checkDetailsBtn:hover {
  background-color: #2c38e5;
}

#payBtn:hover {
  background-color: #6c80ff;
}
.paybtn_spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.3); /* light border */
  border-top-color: #fff; /* color of spinning part */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive adjustments */
@media (max-width: 575.98px) {
  .form-card {
    padding: 1rem;
  }

  button.btn {
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
  }
}
