/*=========================================
        DRAWER OVERLAY
=========================================*/

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 32, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
  z-index: 9998;
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}
.referralDrawerTitle {
  color: #fff;
}

/*=========================================
        DRAWER
=========================================*/

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 520px;
  max-width: 100%;
  height: 100vh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  overflow: hidden;
}

.drawer.active {
  transform: translateX(0);
}

/*=========================================
        DRAWER HEADER
=========================================*/

.drawer-header {
  position: relative;
  padding: 10px 35px 0px;
  background: linear-gradient(135deg, #b88a1b, #b88a1b);
  color: white;
}

.drawer-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
  color: white !important;
}

.drawer-header p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: white;
}

.drawer-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  font-size: 0.8rem;
  letter-spacing: 2px;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.9;
}

.drawer-subtitle::before {
  content: "";
  width: 28px;
  height: 2px;
  background: white;
}

/*=========================================
        CLOSE BUTTON
=========================================*/

.drawer-close {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 42px;
  height: 42px;
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.1rem;
  transition: 0.3s;
}

.drawer-close:hover {
  background: #fff;
  color: #0e7a6b;
  transform: rotate(90deg);
}

/*=========================================
        DRAWER BODY
=========================================*/

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 9px;
  background: #ffffff;
}

/*=========================================
        CONTACT CARD
=========================================*/

.drawer-contact-card {
  background: #f8fbfb;
  border: 1px solid #e5efee;
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 35px;
}

.drawer-contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
}

.drawer-contact-item:not(:last-child) {
  margin-bottom: 22px;
}

.drawer-contact-item i {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #cf9400;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.drawer-contact-item small {
  display: block;
  color: #888;
  font-size: 0.8rem;
  margin-bottom: 3px;
}

.drawer-contact-item span {
  font-size: 0.95rem;
  font-weight: 600;
  color: #222;
}

/*=========================================
        SCROLLBAR
=========================================*/

.drawer-body::-webkit-scrollbar {
  width: 8px;
}

.drawer-body::-webkit-scrollbar-thumb {
  background: #8e6102;
  border-radius: 30px;
}

.drawer-body::-webkit-scrollbar-track {
  background: #f4f4f4;
}

/*=========================================
        OPEN ANIMATION
=========================================*/

.drawer.active .drawer-header {
  animation: drawerFade 0.5s ease forwards;
}

.drawer.active .drawer-body {
  animation: drawerFade 0.6s ease forwards;
}

@keyframes drawerFade {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/*=========================================
        FORM
=========================================*/

.drawer-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.input-group {
  display: flex;
  flex-direction: column;
}

.input-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 15px 18px;

  border: 1px solid #d9e4e2;

  border-radius: 12px;

  background: #fff;

  font-size: 0.95rem;

  font-family: inherit;

  transition: 0.3s;

  outline: none;
}

.input-group textarea {
  resize: vertical;

  min-height: 140px;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  border-color: #664802;

  box-shadow: 0 0 0 4px rgba(14, 122, 107, 0.12);
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  color: #a0a0a0;
}

.input-group select {
  cursor: pointer;
}

/*=========================================
        CHECKBOX
=========================================*/

.checkbox-group {
  display: flex;

  align-items: flex-start;

  gap: 12px;

  margin-top: -5px;
}

.checkbox-group label {
  display: flex;

  align-items: flex-start;

  gap: 12px;

  cursor: pointer;

  font-size: 0.9rem;

  line-height: 1.7;

  color: #555;
}

.checkbox-group input {
  width: 18px;

  height: 18px;

  accent-color: #936e00;

  margin-top: 3px;

  cursor: pointer;
}

/*=========================================
        BUTTON
=========================================*/

.drawer-btn {
  width: 100%;

  padding: 16px;

  border: none;

  border-radius: 12px;

  background: #845f00;

  color: #fff;

  font-size: 1rem;

  font-weight: 600;

  cursor: pointer;

  transition: 0.35s;
}

.drawer-btn:hover {
  background: #845a00;

  transform: translateY(-3px);

  box-shadow: 0 15px 35px rgba(14, 122, 107, 0.25);
}

/*=========================================
        INPUT HOVER
=========================================*/

.input-group input:hover,
.input-group select:hover,
.input-group textarea:hover {
  border-color: #845a00;
}

/*=========================================
        RESPONSIVE
=========================================*/

@media (max-width: 991px) {
  .drawer {
    width: 460px;
  }

  .drawer-header {
    padding: 35px 28px 24px;
  }

  .drawer-body {
    padding: 28px;
  }
}

@media (max-width: 768px) {
  .drawer {
    width: 100%;
  }

  .drawer-header h2 {
    font-size: 1.7rem;
  }

  .drawer-header {
    padding: 30px 24px 20px;
  }

  .drawer-body {
    padding: 24px;
  }

  .drawer-contact-card {
    padding: 18px;
  }

  .drawer-contact-item {
    gap: 14px;
  }

  .drawer-contact-item i {
    width: 42px;
    height: 42px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .drawer-header {
    padding: 28px 20px 18px;
  }

  .drawer-body {
    padding: 20px;
  }

  .drawer-header h2 {
    font-size: 1.45rem;
  }

  .drawer-header p {
    font-size: 0.88rem;
  }

  .input-group input,
  .input-group select,
  .input-group textarea {
    padding: 14px 16px;
  }

  .drawer-btn {
    padding: 15px;
  }
}

/*=========================================
        SMOOTH SCROLL
=========================================*/

html {
  scroll-behavior: smooth;
}

/*=========================================
        DRAWER ACTIVE EFFECT
=========================================*/

body.drawer-open {
  overflow: hidden;
}

/*=========================================
        OPTIONAL SUCCESS MESSAGE
=========================================*/

.drawer-success {
  display: none;

  margin-top: 20px;

  padding: 18px;

  border-radius: 12px;

  background: #e8f8f3;

  color: #845a00;

  font-weight: 600;

  text-align: center;
}

.drawer-success.show {
  display: block;

  animation: fadeSuccess 0.5s ease;
}

@keyframes fadeSuccess {
  from {
    opacity: 0;

    transform: translateY(15px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}
.form-response {
  margin-top: 20px;

  padding: 14px;

  border-radius: 10px;

  font-size: 15px;

  display: none;
}

.form-response.success {
  background: #e8f8ef;

  color: #146c43;

  border: 1px solid #b7ebc6;
}

.form-response.error {
  background: #fdecec;

  color: #b42318;

  border: 1px solid #f3b5b5;
}

.btn-loader {
  display: inline-flex;

  align-items: center;

  gap: 8px;
}
