@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap");

/** Variables **/

:root {
  --color-background: #cbd5e1;
  --color-background-alt: #3a9092;
  /* --color-border-active: #23494c; */
  --color-border-default: #94a3b8;
  /* --color-highlight: #7ecac7; */
  --color-primary: #23494c;
  --color-primary-active: #122d30;
  --color-text-default: #18284a;
  --color-text-muted: #475569;
}

/** Base **/

*,
::before,
::after {
  box-sizing: border-box;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
  letter-spacing: 2px;
  text-transform: capitalize;
}

[type="checkbox"],
[type="radio"],
[type="range"] {
  appearance: none;
  flex-shrink: 0;
  padding: 0;
  user-select: none;
}

[type="checkbox"]:focus,
[type="radio"]:focus,
[type="range"]:focus {
  outline: none;
}

/** Components **/

.fs-form {
  display: grid;
  row-gap: 1rem;
}

.fs-form:where(.fs-layout__2-column) {
  column-gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
  display: flex;
  flex-direction: column;
}

fieldset {
  display: grid;
  margin: 1rem 0;
  row-gap: 1rem;
}

.fs-form:where(.fs-layout__2-column) fieldset {
  column-gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
  grid-column: 1 / -1;
}

.fs-fieldset-title {
  color: var(--color-text-default);
  font-family: var(--font-family-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.75rem;
  margin-bottom: 1rem;
  grid-column: 1 / -1;
}

.fs-field {
  display: flex;
  flex-direction: column;
  row-gap: 0.375rem;
}

.fs-label {
  color: var(--color-text-default);
  display: block;
  font-family: var(--font-family-display);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
}

.fs-description {
  color: var(--color-text-muted);
  display: block;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.fs-button-group {
  display: flex;
  flex-direction: row-reverse;
  column-gap: 0.75rem;
}

.fs-form:where(.fs-layout__2-column) .fs-button-group {
  grid-column: 1 / -1;
}

.fs-button {
  background-color: var(--color-primary);
  border-radius: 5px;
  color: white;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1rem;
  padding: 0.8rem 1.8rem;
  transition-duration: 200ms;
  transition-property: background-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.fs-button:hover {
  background-color: var(--color-primary-active);
}

.fs-button:focus-visible {
  background-color: var(--color-primary-active);
  outline: 3px solid var(--color-highlight);
}

.fs-input,
.fs-select {
  appearance: none;
  border-radius: 3px;
  border-width: 0;
  /* box-shadow: var(--color-border-default) 0 0 0 1px inset; */
  color: var(--color-text-default);
  font-size: 0.875rem;
  height: 2rem;
  line-height: 1.25rem;
  outline: none;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  border: 1px solid #fb6f4e;
}

.fs-input:focus-visible,
.fs-select:focus-visible {
  box-shadow: var(--color-border-active) 0 0 0 1.5px inset;
  outline: 3px solid var(--color-highlight);
  outline-offset: 0;
}

.fs-input::placeholder {
  color: var(--color-text-muted);
}

.fs-checkbox-group,
.fs-radio-group {
  display: flex;
  flex-direction: column;
  row-gap: 0.5rem;
}

.fs-checkbox-field,
.fs-radio-field {
  column-gap: 0.5rem;
  display: flex;
}

:is(.fs-checkbox-field, .fs-radio-field) .fs-label + .fs-description {
  margin-top: 0.125rem;
}

.fs-checkbox-wrapper,
.fs-radio-wrapper {
  align-items: center;
  display: flex;
  height: 1.25rem;
}

.fs-checkbox,
.fs-radio {
  background-color: #fff;
  border: 1px solid #fb6f4e;
  height: 1rem;
  width: 1rem;
}

.fs-checkbox {
  border-radius: 0.25rem;
}

.fs-radio {
  border-radius: 100%;
}

.fs-checkbox:checked,
.fs-radio:checked {
  background-color: #18284a;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  border-color: transparent;
}

.fs-checkbox:checked {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
}

.fs-radio:checked {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
}

.fs-checkbox:focus-visible,
.fs-radio:focus-visible {
  outline: 3px solid var(--color-highlight);
  outline-offset: 0;
}

.fs-select {
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

.fs-slider {
  background: transparent;
  cursor: pointer;
  height: 1.25rem;
  width: 100%;
}

.fs-slider::-moz-range-track {
  background-color: var(--color-background);
  border-radius: 0.5rem;
  height: 0.5rem;
}

.fs-slider::-webkit-slider-runnable-track {
  background-color: var(--color-background);
  border-radius: 0.5rem;
  height: 0.5rem;
}

.fs-slider::-moz-range-thumb {
  background-color: var(--color-primary);
  border: none; /* Removes extra border that FF applies */
  border-radius: 50%;
  height: 1.25rem;
  width: 1.25rem;
}

.fs-slider::-webkit-slider-thumb {
  appearance: none;
  background-color: var(--color-primary);
  border-radius: 50%;
  height: 1.25rem;
  margin-top: -0.375rem; /* Centers thumb on the track */
  width: 1.25rem;
}

.fs-slider:focus-visible::-moz-range-thumb {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.fs-slider:focus-visible::-webkit-slider-thumb {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.fs-switch {
  background-color: var(--color-background-alt);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='white'/%3e%3c/svg%3e");
  background-position: left center;
  background-repeat: no-repeat;
  border-radius: 1.5rem;
  cursor: pointer;
  height: 1.5rem;
  transition-duration: 200ms;
  transition-property: background-color, background-position;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  width: 2.75rem;
}

.fs-switch:checked {
  background-color: var(--color-primary);
  background-position: right center;
}

.fs-switch:focus-visible {
  outline: 3px solid var(--color-highlight);
  outline-offset: 0;
}

.fs-textarea {
  appearance: none;
  border-radius: 0.375rem;
  border-width: 0;
  color: var(--color-primary);
  font-size: 0.875rem;
  line-height: 1.25rem;
  outline: none;
  padding: 0.5rem 0.75rem;
  resize: vertical;
  border: 1px solid #fb6f4e;
}

.fs-textarea:focus-visible {
  box-shadow: var(--color-border-active) 0 0 0 1.5px inset;
  outline: 3px solid var(--color-highlight);
  outline-offset: 0;
}

.fs-textarea::placeholder {
  color: var(--color-text-muted);
}

/** Utilities **/

.col-span-full {
  grid-column: 1 / -1;
}

.fs-textarea::placeholder {
  color: var(--color-text-muted);
}

.slider-label-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 0.25rem;
}

.slider-label-text {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
  white-space: nowrap;
}

.submit-btn-cstm {
  color: inherit;
}
/* ======================================
   AESTHETIC MINIMAL MODAL DESIGN
====================================== */
/* ======================================
   RESPONSIVE MODAL + SUCCESS MESSAGE
====================================== */

.form-spree-parent {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  z-index: 9999;
}

.form-spree-parent.show {
  display: flex;
}

/* MODAL BOX */

.form-spree-parent form {
  width: 100%;
  max-width: 760px;
  background: #f8f6ef;
  border-radius: 28px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0,0,0,0.18);
  animation: modalFade .35s ease;
}

/* TOP DECORATION */

.form-spree-parent form::before{
  content: "";
  position: absolute;
  top: -50px;
  left: -50px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(251,111,78,.18), transparent 70%);
  z-index: 0;
}

@keyframes modalFade{
  from{
    transform: translateY(20px) scale(.96);
    opacity: 0;
  }
  to{
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* CLOSE BUTTON */

.modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 28px;
  cursor: pointer;
  color: #18284a;
  transition: .3s ease;
  z-index: 20;
}

.modal-close:hover{
  transform: rotate(90deg);
  color: #fb6f4e;
}

/* FORM HEADER */

.form-header{
  position: relative;
  z-index: 2;
  margin-bottom: 30px;
  text-align: center;
}

.form-header-title{
  font-size: 42px;
  font-weight: 700;
  color: #18284a;
  line-height: 1.2;
  display: inline-block;
  border-bottom: 2px solid #18284a;
  padding-bottom: 8px;
  font-family: "IBM Plex Serif", serif;
}

/* FORM GRID */

.fs-form{
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 22px;
}

/* FULL WIDTH */

.col-span-full{
  grid-column: span 2;
}

/* FIELD */

.fs-field{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fs-label{
  font-size: 14px;
  font-weight: 600;
  color: #18284a;
  letter-spacing: .5px;
}

/* INPUTS */

.fs-input,
.fs-select,
.fs-textarea{
  width: 100%;
  border: 1px solid rgba(251,111,78,.4);
  background: rgba(255,255,255,.85);
  border-radius: 14px;
  padding: 15px 18px;
  outline: none;
  transition: .3s ease;
  font-size: 15px;
  color: #18284a;
  font-family: "Work Sans", sans-serif;
  backdrop-filter: blur(10px);
}

.fs-input{
  height: 54px;
}

.fs-textarea{
  min-height: 130px;
  resize: vertical;
}

.fs-input::placeholder,
.fs-textarea::placeholder{
  color: #8a8a8a;
}

/* FOCUS */

.fs-input:focus,
.fs-select:focus,
.fs-textarea:focus{
  border-color: #fb6f4e;
  box-shadow: 0 0 0 4px rgba(251,111,78,.12);
  background: #fff;
}

/* SELECT */

.fs-select{
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%2318284a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 50px;
}

/* BUTTON */

.fs-button-group{
  grid-column: span 2;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.fs-button{
  border: none;
  background: linear-gradient(135deg,#fb6f4e,#ff9b78);
  color: white;
  padding: 16px 38px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: .3s ease;
  box-shadow: 0 10px 25px rgba(251,111,78,.28);
  letter-spacing: 1px;
}

.fs-button:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(251,111,78,.4);
}

/* SUCCESS MESSAGE */

.success-message-box{
  text-align: center;
  padding: 40px 10px;
  animation: fadeIn .4s ease;
}

.success-message-box i{
  font-size: 75px;
  color: #27c267;
  margin-bottom: 18px;
}

.success-message-box h2{
  font-size: 36px;
  color: #18284a;
  margin-bottom: 12px;
  font-family: "IBM Plex Serif", serif;
}

.success-message-box p{
  color: #555;
  font-size: 16px;
  line-height: 1.7;
}

@keyframes fadeIn{
  from{
    opacity: 0;
    transform: translateY(15px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

/* MOBILE */

@media(max-width:768px){

  .form-spree-parent{
    padding: 15px;
    align-items: flex-start;
  }

  .form-spree-parent form{
    padding: 28px 20px;
    border-radius: 22px;
    margin-top: 20px;
  }

  .fs-form{
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .col-span-full,
  .fs-button-group{
    grid-column: span 1;
  }

  .form-header-title{
    font-size: 30px;
  }

  .fs-button{
    width: 100%;
  }

  .success-message-box h2{
    font-size: 28px;
  }

}

/* EXTRA SMALL */

@media(max-width:480px){

  .form-header-title{
    font-size: 24px;
  }

  .fs-input,
  .fs-select,
  .fs-textarea{
    padding: 14px 15px;
    font-size: 14px;
  }

  .modal-close{
    top: 14px;
    right: 16px;
    font-size: 24px;
  }

}