@font-face {
  font-family: "Crimpro";
  src: url("/fonts/CrimsonPro-Light.ttf") format("ttf");
}

.form-card {
  position: relative;
  background: linear-gradient(
    142.2deg,
    rgba(68, 76, 231, 0.4) 30.77%,
    rgba(164, 188, 253, 0.4) 110.62%
  );
  border-radius: 16px;
  border: 5px solid var(--color-white);
  padding: 3.5rem 2.5rem 5rem;
  box-shadow: -8px 5px 24px 0px #00000029;
  max-width: 650px;
  width: 100%;
  margin: 0 auto;
  pointer-events: auto;
  backdrop-filter: blur(2px);
  overflow: visible;
}

.corner {
  position: absolute;
  z-index: 3;
}

.corner1,
.corner2,
.corner3,
.corner4,
.corner5,
.corner6 {
  display: none;
}

.corner-tl {
  top: 1.5rem;
  left: 1.5rem;
}

.corner-tr {
  top: 1.5rem;
  right: 1.5rem;
}

.corner-bl {
  bottom: 1.5rem;
  left: 1.5rem;
}

.corner-br {
  bottom: 1.5rem;
  right: 1.5rem;
}

.form-title {
  font-family: "Crimpro";
  color: var(--color-white);
}

.hero-form-couple {
  margin: 2rem 0;
}

/* ==================== FORM CONTROLS ==================== */
.form-control,
.birthdate-wrapper {
  height: 64px;
  border-radius: 1rem;
  background: var(--color-white);
  font-size: 20px;
  border: 1.5px solid var(--border-gold);
  transition: all 0.3s ease;
  touch-action: manipulation;
}

input.form-control,
select.form-control,
textarea.form-control {
  touch-action: manipulation;
}

.form-control:focus {
  background: var(--color-white);
  border-color: var(--border-gold);
  outline: none;
  box-shadow: none !important;
}

.form-control::placeholder {
  color: #9ca3af;
  font-size: 20px;
}

select.form-control {
  font-size: 20px;
}

.birthdate-wrapper {
  overflow: visible !important;
}

.birthdate-input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  height: 100% !important;
}

.birthdate-input:focus {
  outline: none;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.calendar-select {
  color: var(--color-neutral-1000);
  appearance: none;
  padding-right: 4px;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.select-wrap {
  position: relative;
}

.select-wrap select,
.select-wrap input {
  appearance: none;
  padding-right: 40px;
  cursor: pointer;
}

.select-wrap img {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  pointer-events: none;
}

select:not(.calendar-select) option:first-child {
  display: none;
}

/* ==================== CUSTOM SELECT ==================== */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select-wrapper select {
  opacity: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 40px 0 16px;
  border-radius: 1rem;
  background: var(--color-white);
  font-size: 20px;
  border: 1.5px solid var(--border-gold);
  cursor: pointer;
  transition: all 0.3s ease;
}

.custom-select-trigger .selected-text {
  color: var(--color-neutral-1000);
  white-space: nowrap;
}

.custom-select-trigger img {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  pointer-events: none;
}

.custom-select-options {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  width: 100%;
  min-width: max-content;
  background: var(--color-white);
  border: 1.5px solid var(--border-gold);
  border-radius: 1rem;
  z-index: 9999;
  max-height: 250px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.custom-select-wrapper.open {
  z-index: 10000;
}

.custom-select-wrapper.open .custom-select-options {
  display: block;
}

.custom-select-option {
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 18px;
}

.custom-select-option:first-child {
  border-radius: 1rem 1rem 0 0;
}

.custom-select-option:last-child {
  border-radius: 0 0 1rem 1rem;
}

.custom-select-option:only-child {
  border-radius: 1rem;
}

.custom-select-option:hover {
  background: #f3f4f6;
}

.custom-select-options {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.custom-select-options::-webkit-scrollbar {
  display: none;
}

/* ==================== CALENDAR INSIDE ==================== */
.calendar-inside {
  position: relative;
}

.calendar-inside .custom-select-wrapper {
  height: 100%;
}

.calendar-inside .custom-select-trigger {
  height: 100%;
  border: none;
  background: transparent;
  padding: 0 20px 0 8px;
  min-width: 110px;
}

.calendar-inside .custom-select-trigger img {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
}

.calendar-inside .custom-select-options {
  min-width: 140px;
  right: -8px;
  left: auto;
}

.button-wrapper {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 1;
}

.container-fluid .button-wrapper {
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
  margin-top: 1rem;
}

.btn-submit,
.btn-couple-submit,
.btn-edit,
.btn-edit-couple {
  padding: 0 2rem;
  height: 70px;
  border-radius: 20px;
  background: linear-gradient(180deg, #6172f3 0%, #444ce7 100%);
  border: 3px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.btn-submit:focus,
.btn-submit:active,
.btn-submit:focus-visible,
.btn-submit:disabled,
.btn-couple-submit:focus,
.btn-couple-submit:active,
.btn-couple-submit:focus-visible,
.btn-couple-submit:disabled,
.btn-edit:focus,
.btn-edit:active,
.btn-edit:focus-visible,
.btn-edit:disabled,
.btn-edit-couple:focus,
.btn-edit-couple:active,
.btn-edit-couple:focus-visible,
.btn-edit-couple:disabled {
  outline: none !important;
  box-shadow: none !important;
  border: 3px solid rgba(255, 255, 255, 0.12) !important;
}

.btn-couple-submit,
.btn-edit-couple {
  padding: 0 130px !important;
}

.btn-text,
.btn-edit-text {
  font-size: 20px;
  color: var(--color-white);
}

.btn-submit:hover,
.btn-couple-submit:hover {
  color: var(--color-white);
}

/* ==================== TOAST NOTIFICATION ==================== */
#toast-container {
  position: fixed;
  top: 0;
  right: 5px;
  z-index: 99999;
}

.custom-toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 280px;
  max-width: 400px;
  padding: 16px 20px;
  background: #dc3545;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
}

.custom-toast.show {
  opacity: 1;
  transform: translateX(0);
}

.custom-toast.hide {
  opacity: 0;
  transform: translateX(100%);
}

.toast-message {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.toast-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.toast-close:hover {
  opacity: 1;
}

/* ==================== RESPONSIVE - MAIN FORM ==================== */
@media (max-width: 992px) {
  .container-fluid {
    padding: 0 !important;
  }

  .form-card {
    min-height: auto;
    max-width: none !important;
    box-shadow: none;
  }

  .hero-form-couple {
    margin: 0;
  }

  .btn-couple-submit {
    margin: 0 10rem;
  }
}

@media (max-width: 768px) {
  .btn-couple-submit {
    margin: 0 8rem;
    padding: 0 40px !important;
  }
}

@media (max-width: 576px) {
  .container-fluid .row {
    margin-bottom: 0 !important;
  }

  .corner {
    width: 50px;
    height: 50px;
  }

  .corner-tl {
    top: 1rem;
    left: 1rem;
  }

  .corner-tr {
    top: 1rem;
    right: 1rem;
  }

  .corner-bl {
    bottom: 1rem;
    left: 1rem;
  }

  .corner-br {
    bottom: 1rem;
    right: 1rem;
  }

  .form-card {
    padding: 2rem 2rem 4rem 2rem;
  }

  .form-title {
    margin-top: 2rem !important;
  }

  .hero-form-couple {
    margin: 0;
  }

  .form-control,
  .birthdate-wrapper,
  .custom-select-trigger,
  .btn-submit,
  .btn-couple-submit,
  .btn-edit,
  .btn-edit-couple {
    height: 50px;
    font-size: 14px;
  }

  select.form-control,
  .form-control::placeholder {
    font-size: 14px;
  }

  .form-control .calendar-select {
    padding-left: 0 !important;
  }

  .select-wrap {
    padding-left: 0 !important;
  }

  .button-wrapper {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 1rem;
  }

  .btn-submit {
    margin: 10px 0 !important;
  }

  .btn-couple-submit {
    margin: 0 4rem !important;
  }

  .btn-text,
  .btn-edit-text {
    font-size: 14px;
  }

  .custom-select-options {
    max-height: 200px;
  }

  .custom-select-option {
    font-size: 14px;
    padding: 10px 14px;
  }

  .calendar-inside .custom-select-trigger {
    padding: 0 14px 0 4px;
    min-width: 90px;
  }

  #toast-container {
    right: 5px;
  }

  .toast-message {
    font-size: 14px;
  }
}

@media (max-width: 400px) {
  .corner {
    width: 40px;
    height: 40px;
  }

  .btn-couple-submit {
    margin: 0 2rem !important;
    padding: 0 20px !important;
  }

  .form-card {
    padding: 1.5rem 1.5rem 3rem 1.5rem;
  }

  select.form-control,
  .form-control::placeholder {
    font-size: 12px;
  }

  .form-control,
  .birthdate-wrapper,
  .custom-select-trigger,
  .btn-submit,
  .btn-couple-submit,
  .btn-edit,
  .btn-edit-couple {
    height: 45px;
    font-size: 12px;
  }

  .select-wrap img,
  .custom-select-trigger img {
    display: none;
  }

  .form-control,
  .select-wrap select,
  .select-wrap input,
  .custom-select-trigger {
    padding: 8px !important;
  }

  .calendar-inside .custom-select-trigger {
    min-width: 70px !important;
    padding: 0 6px !important;
  }

  .custom-select-options {
    max-height: 150px;
  }

  .custom-select-option {
    font-size: 12px;
    padding: 8px 10px;
  }
}

@media (max-width: 300px) {
  select.form-control,
  .form-control::placeholder {
    font-size: 10px;
  }

  .form-control,
  .birthdate-wrapper,
  .custom-select-trigger {
    font-size: 10px;
  }

  .btn-text,
  .btn-edit-text {
    font-size: 10px;
  }

  .custom-select-option {
    font-size: 10px;
  }

  .calendar-inside .custom-select-options {
    min-width: 80px;
  }

  .calendar-inside .custom-select-option {
    padding: 6px 8px;
    font-size: 10px;
  }

  .form-title {
    font-size: 1.1rem !important;
  }

  .form-control,
  .birthdate-wrapper,
  .custom-select-trigger,
  .btn-submit,
  .btn-couple-submit,
  .btn-edit,
  .btn-edit-couple {
    height: 40px;
  }

  .calendar-inside .custom-select-trigger {
    min-width: 50px !important;
  }
}
