/* Consent Treatment Form Styles */

/* Root container styles for sticky header */
#root {
  position: relative;
  width: 100%;
}

.patient-portal-dashboard {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

/* Patient Portal Header Styles */
.patient-portal-header {
  background: #FFFFFF;
  border-bottom: 1px solid #E5E7EB;
  padding: var(--Spacing-space-12, 24px) 40px;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  left: 0;
  right: 0;
}

.patient-portal-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.patient-portal-logo {
  flex-shrink: 0;
}

.pawc-logo-img {
  height: 40px;
  width: auto;
}

.patient-portal-nav {
  display: flex;
  gap: 32px;
  width: 100%;
  justify-content: flex-end;
}

.patient-portal-nav-link {
  color: var(--Component-Header-header-text, #5C5C5C);
  text-align: center;
  font-family: Inter;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: -0.1px;
  text-decoration: none;
}

.patient-portal-nav-link:hover {
  color: #101219;
  text-decoration: none;
}

.patient-portal-nav-link-active {
  color: #101219;
  font-weight: 600;
}

.patient-portal-badge {
  background-color: #10B981;
  color: #FFFFFF;
  border-radius: 12px;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.patient-portal-header-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.patient-portal-btn-outline {
  display: inline-flex;
  padding: 10px 20px;
  align-items: center;
  gap: 8px;
  border-radius: 100px;
  border: 1px solid #D0D5DD;
  background: #FFFFFF;
  color: #344054;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.patient-portal-btn-outline:hover {
  background: #F9FAFB;
  border-color: #98A2B3;
  color: #344054;
  text-decoration: none;
}

.patient-portal-btn-filled {
  display: inline-flex;
  padding: 10px 20px;
  align-items: center;
  gap: 8px;
  border-radius: 100px;
  border: none;
  background: #10393E;
  color: #FFFFFF;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.patient-portal-btn-filled:hover {
  background: #2C5F5D;
  color: #FFFFFF;
  text-decoration: none;
}

/* Mobile menu toggle - hidden on desktop */
.mobile-menu-toggle {
  display: none;
}

/* Consent View Styles */
.consent-view-content {
  background: #EAEFE9;
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 32px;
  color: #344054;
  font-size: 14px;
  line-height: 24px;
  margin: 100px;
}

.consent-view-content h3 {
  color: #101219;
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 12px 0;
}

.consent-view-content h3:first-child {
  margin-top: 0;
}

.consent-view-content p {
  margin-bottom: 16px;
  color: #4D5874;
}

.consent-view-content ul,
.consent-view-content ol {
  margin: 12px 0 16px 20px;
  color: #4D5874;
}

.consent-view-content li {
  margin-bottom: 8px;
}

/* Page Styles */
.consent-treatment-page {
  background: #F9FAFB;
  min-height: 100vh;
}

.consent-treatment-container {
  width: 100%;
  padding: 64px 100px;
}

.consent-treatment-header {
  text-align: center;
  margin-bottom: 32px;
}

.consent-treatment-category {
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #6B7280;
  margin-bottom: 12px;
}

.consent-treatment-title {
  font-family: Inter, sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
  color: #101219;
  margin-bottom: 24px;
}

.consent-treatment-title em {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-weight: 400;
}

.consent-treatment-description {
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #4D5874;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 32px;
}

/* Form Container */
.consent-treatment-form-container {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.consent-treatment-form-container-wrapper {
  padding: 32px;
  border-radius: 24px;
  background: var(--accent-brand-primary-10, #EAEFE9);
}

/* Form Groups */
.consent-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.consent-form-row.single-column {
  grid-template-columns: 1fr;
}



.consent-form-label {
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #344054;
  margin-bottom: 6px;
}

.consent-form-input {
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #101219;
  background: #FFFFFF;
  border: 1px solid #D0D5DD;
  border-radius: 8px;
  padding: 9px 14px;
  transition: all 0.2s ease;
  box-shadow: 0px 1px 2px 0px #1018280D;
  width: 100%;

}

.consent-form-input:focus {
  outline: none;
  border-color: #2C5F5D;
  box-shadow: 0 0 0 3px rgba(44, 95, 93, 0.1);
}

.consent-form-input::placeholder {
  color: #98A2B3;
}

/* Checkbox Styles */
input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border-radius: var(--spacing-sm, 6px);
  border: 1px solid var(--Colors-Border-border-primary, #D0D5DD);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.2s ease;
}

input[type="checkbox"]:checked {
  background-color: #0B6A5E;
  border-color: #0B6A5E;
}

input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  top: 2px;
  left: 6px;
}

input[type="checkbox"]:hover {
  border-color: #0B6A5E;
}


/* Radio Button Styles */
input[type="radio"] {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--Colors-Border-border-primary, #D0D5DD);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.2s ease;
}

input[type="radio"]:checked {
  border-color: #0B6A5E;
  border-width: 2px;
}

input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #0B6A5E;
}

input[type="radio"]:hover {
  border-color: #0B6A5E;
}

input[type="radio"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 106, 94, 0.1);
}

/* Date Input with Calendar Icon */
.consent-form-input.datepicker {
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path d="M17.5 8.33317H2.5M13.3333 1.6665V4.99984M6.66667 1.6665V4.99984M6.5 18.3332H13.5C14.9001 18.3332 15.6002 18.3332 16.135 18.0607C16.6054 17.821 16.9878 17.4386 17.2275 16.9681C17.5 16.4334 17.5 15.7333 17.5 14.3332V7.33317C17.5 5.93304 17.5 5.23297 17.2275 4.69819C16.9878 4.22779 16.6054 3.84534 16.135 3.60565C15.6002 3.33317 14.9001 3.33317 13.5 3.33317H6.5C5.09987 3.33317 4.3998 3.33317 3.86502 3.60565C3.39462 3.84534 3.01217 4.22779 2.77248 4.69819C2.5 5.23297 2.5 5.93304 2.5 7.33317V14.3332C2.5 15.7333 2.5 16.4334 2.77248 16.9681C3.01217 17.4386 3.39462 17.821 3.86502 18.0607C4.3998 18.3332 5.09987 18.3332 6.5 18.3332Z" stroke="%234D5874" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px 20px;
  padding-right: 44px;
}

/* Signature Areas */
.consent-signature-container {
  margin-bottom: 32px;
}

.consent-signature-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.consent-signature-label {
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #344054;
}

.consent-signature-clean-btn {
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #344054;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 16px;
  border: 1px solid #728E9E;
  border-radius: 100px;
  transition: all 0.2s ease;
  margin-left: auto;
  display: block;
  margin-top: 8px;
}

.consent-signature-pad {
  border: 2px dashed #D0D5DD !important;
  border-radius: 12px !important;
  background: #EAEFE9 !important;
  height: 120px !important;
  cursor: crosshair;
  position: relative;
  margin: 0 !important;
  padding: 0 !important;
}

.consent-signature-pad canvas.jSignature,
.signature-place canvas.jSignature {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  height: 120px !important;
  width: 100% !important;
  background-color: transparent !important;
  border-radius: 12px !important;
}

.signature-place {
  border: 1px dashed #668364 !important;
  border-radius: 12px !important;
  background: #F5F8F5 !important;
  height: 120px !important;
  cursor: crosshair;
  position: relative;
  margin: 0 !important;
  padding: 0 !important;
}

/* Date Section Row */
.consent-date-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

/* Form Actions */
.consent-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* margin-top: 48px; */
  padding-top: 32px;
  /* border-top: 1px solid #E5E7EB; */
}

.consent-view-content-inner {
  border-radius: 20px;
  background: #FFF;
  padding: 24px;
}

.consent-btn-back {
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #344054;
  background: #FFFFFF;
  border: 1px solid #D0D5DD;
  border-radius: 100px;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.consent-btn-back:hover {
  background: #F9FAFB;
  text-decoration: none;
  color: #344054;
}

.consent-btn-submit {
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: #FFFFFF;
  background: #10393E;
  border: none;
  border-radius: 100px;
  padding: 12px 32px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.consent-btn-submit:hover {
  background: #2C5F5D;
}

/* Error Messages */
.consent-error-message {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.consent-error-message p {
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #991B1B;
  margin: 0;
}

.text-danger {
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #DC2626;
  margin-top: 4px;
  display: block;
}

.consent-form-container {
  padding: 24px;
  border-radius: 20px;
  background: #FFF;
}

.consent-treatment-form-container-wrapper {
  padding: 32px;
  border-radius: 24px;
  background: var(--accent-brand-primary-10, #EAEFE9);
}

.days-input-container {
  margin-bottom: 24px;
  margin-top: 24px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .patient-portal-header {
    padding: 16px 20px;
  }

  .patient-portal-header-content {
    flex-direction: row;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
  }

  .patient-portal-logo {
    flex-shrink: 0;
  }

  .pawc-logo-img {
    height: 32px;
  }

  /* Hide navigation links on mobile */
  .patient-portal-nav {
    display: none;
  }

  /* Show only logout button, hide edit profile */
  .patient-portal-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
  }

  .patient-portal-btn-outline {
    display: none;
  }

  .patient-portal-btn-filled {
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 500;
    background: #2C5F5D;
    color: #FFFFFF;
    border: none;
    border-radius: 100px;
    text-decoration: none;
    transition: background 0.2s ease;
  }

  .patient-portal-btn-filled:hover {
    background: #234B4A;
  }

  /* Mobile menu toggle button */
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
  }

  /* .mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    /* background-color: #2C5F5D; 
    border-radius: 2px;
    transition: all 0.3s ease;
  } */

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  /* Mobile menu dropdown */
  .patient-portal-nav.mobile-nav-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 999;
    gap: 16px;
  }

  .patient-portal-nav.mobile-nav-open .patient-portal-nav-link {
    display: block;
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #E5E7EB;
  }

  .consent-treatment-container {
    padding: 16px;
    /* margin: 16px; */
  }

  .consent-treatment-form-container-wrapper {
    padding: 24px;
  }

  .consent-form-container {
    padding: 20px;
  }

  .consent-treatment-form-container {
    padding: 32px 24px;
  }

  .consent-view-content {
    padding: 24px;
    font-size: 13px;
    line-height: 22px;
    margin: 16px;
  }

  .consent-treatment-title {
    font-size: 28px;
    line-height: 36px;
  }

  .consent-form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .consent-date-section {
    grid-template-columns: 1fr;
  }

  .consent-form-actions {
    flex-direction: column;
    gap: 12px;
  }

  .consent-btn-back,
  .consent-btn-submit {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .patient-portal-header {
    padding: 16px 20px;
  }

  .patient-portal-header-content {
    flex-direction: row;
  }

  .patient-portal-header-actions {
    flex-direction: row;
    gap: 8px;
  }

  .patient-portal-btn-outline,
  .patient-portal-btn-filled {
    width: auto;
    justify-content: center;
  }

  .consent-treatment-container {
    padding: 16px;
    /* margin: 16px; */
  }

  .consent-treatment-form-container-wrapper {
    padding: 16px;
  }

  .consent-form-container {
    padding: 16px;
  }

  .consent-treatment-form-container {
    padding: 24px 16px;
    border-radius: 16px;
  }

  .consent-view-content {
    padding: 20px;
    font-size: 12px;
    line-height: 20px;
    border-radius: 16px;
    margin: 16px;
  }

  .consent-treatment-title {
    font-size: 24px;
    line-height: 32px;
  }

  .consent-treatment-description {
    font-size: 14px;
    line-height: 20px;
  }

  .consent-signature-pad,
  .signature-place {
    height: 120px;
  }
}

.consent-form-checkboxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;

  @media (max-width: 768px) {
    grid-template-columns: 1fr;
  }
}
.consent-cc-text{
  margin: 32px 0; 
  padding: 24px; 
  background: #F9FAFB; 
  border-radius: 12px;
}
.consent-cc-text p{
  font-size: 14px; 
  line-height: 20px; 
  color: #4D5874; 
  margin: 0;
}