/* ========================
   BODY STYLES
   ======================== */
body {
    font-family: Arial, sans-serif;
    text-align: center;
    padding: 50px;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.fade-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 200vh;
    background: linear-gradient(
        var(--reading-background) 0%,
        var(--reading-background) 5%,
        rgba(0,0,0,0) 100%
    );
    pointer-events: none;
    z-index: -1;
}

.pattern-bg--fade::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100vw;
    height: 200vh;
    background: linear-gradient(
        var(--reading-background) 0%, 
        rgba(0, 0, 0, 0) 100%
    );
    z-index: -1;
}

body.faded-background {
    margin: 0;
    padding: 50;
    height: 100%;
}

/* Survey page specific */
.faded-background{
    background: var(--reading-background) url('/static/images/circle3.png') repeat;
    background-size: 100%;
	background-blend-mode: multiply;
	position: relative;
	z-index: -2;
}
	.faded-background::before {
	  content: "";
	  position: absolute;
	  top: 0;
	  left: 0;
	  width: 100%;
	  height: 100%;
	  background-color: var(--reading-background);
	  opacity: 0.85;
	  pointer-events: none; /* So overlay doesn’t block clicks */
	  z-index: -2;
	}


/* ========================
   HEADINGS & TEXT
   ======================== */
p {
    font-size: 18px;
}


/* ========================
   BUTTONS
   ======================== */
.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #c35b45;
    color: white;
    font-size: 18px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
	border: none;
}
.cta-button:hover {
    background: #E2725B;
}

.prototype-disclaimer {
    font-size: 13px;
    margin: 58px auto 0;
    max-width: 420px;
}

/* ========================
   SURVEY STYLES
   ======================== */
.survey-container {
    max-width: 800px;
    margin: auto;
    padding: 20px;
    background: var(--reading-background);
	border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.survey-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

.question {
    margin-bottom: 30px;
}

.question label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.likert {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.likert-option {
    padding: 10px 20px;
    border-radius: 5px;
	position: relative;
    cursor: pointer;
    font-weight: bold;
    color: white;
    transition: transform 0.2s, box-shadow 0.2s;
}

.likert-option::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 80%; /* above label */
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    background: rgba(0,0,0,0.8);
    color: white;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
	z-index:2;
}

.likert-option:hover::after {
    opacity: 1;
}

.likert input[type="radio"] {
    display: none;
}


.likert input[type="radio"]:checked + label {
    transform: scale(1.3);
    box-shadow: 0px 0px 10px rgba(0,0,0,0.3);
    border: 3px solid var(--reading-background);
}


.likert label:nth-of-type(1) { background-color: #ccb999; }
.likert label:nth-of-type(2) { background-color: #cbb186; }
.likert label:nth-of-type(3) { background-color: #caaa73; }
.likert label:nth-of-type(4) { background-color: #ca995b; }
.likert label:nth-of-type(5) { background-color: #ca8549; }



/* green blue palette
.likert label:nth-of-type(1) { background-color: #4DAEFF; }
.likert label:nth-of-type(2) { background-color: #40C0D9; }
.likert label:nth-of-type(3) { background-color: #33D3B3; }
.likert label:nth-of-type(4) { background-color: #33D08A; }
.likert label:nth-of-type(5) { background-color: #33cc66; }
*/

label {
    display: inline-block;
    background-color: #eee;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.error-notification {
	border: 2px solid black;
	padding: 4px;
}

.error-message {
    color: black;
    font-size: 0.9em;
    margin-top: 4px;
	font-style: italic;
}

.form-field {
    margin-bottom: 20px;
}

/* ========================
   MAIN RESULTS & TABS
   ======================== */
.results-container {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.results-border {
	border: 2px solid #000;   /* thickness, style, color */
    border-radius: 12px;      /* how round the corners are */  
	border-color: var(--p-text);
}

.results-title {
	color: black;# #E2725B;
}

:root {
    --reading-background: #f5f0e1;
	--header-text: #8e473f;
	--p-text: #a14f48;
}

.headertext h1,
.headertext h2{
	color: var(--header-text);
}

.headertext {
	color: var(--p-text);
	font-size: 1.1em;
}

.resultstext {
	color: var(--header-text);
	font-size: 1.1em;
}

a {
	color: var(--header-text);
	font-weight: 550;
}

.resultslabel {
    font-weight: 550;
    color: var(--header-text);
    margin-bottom: 0.25rem;
	background-color: transparent;
}

.subsection textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px 12px;
    font-size: 15px;
    line-height: 1.4;
    border: 2px solid #CFAA9A;
    border-radius: 8px;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #f9f6ec;
}

.subsection textarea:focus {
    border-color: #a86452;
    box-shadow: 0 0 4px rgba(168, 50, 50, 0.3);
    outline: none;
}

.landing {
    flex: 1;
    padding: 20px;
    border-radius: 8px;
    background-color: var(--reading-background); /* optional base color */
}

.main-results {
    flex: 1;
    padding: 20px;
    border-radius: 8px;
    background-color: var(--reading-background); /* optional base color */
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.pattern-bg {
    background: var(--reading-background) url('/static/images/circle3.png') repeat;
    background-size: 100%;
    background-blend-mode: multiply;
	position: relative;
	z-index: -2;
}

.tabs {
    display: flex;
    border-bottom: 2px solid #ccc;
}

.tab-button {
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    color: white;
}

.tab-button.active {
    opacity: 0.85;
}

.tab-content {
    background-color: var(--reading-background); /* Light Warm Beige */
    padding: 20px;
    border-radius: 8px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}



.tab-header {
    background-color: #0d6efd; /* Bootstrap primary tab color */
    color: black;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}


#tab1 .tab-header { background-color: #ca8549; color:white; } /* orange */
#tab2 .tab-header { background-color: #ccb999; color:white; } /* teal */
#tab3 .tab-header { background-color: #4d617c; color:white; } /* blue */
#tab4 .tab-header { background-color: #a86452; color:white; }

.subsection {
    #background-color: #f8f9fa;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
}

/* for hidden subsections */
.collapsible {
    display: none;
    padding: 10px;
    margin-bottom: 10px;
}



.nav-link {
    font-size: 22px;
    padding: 16px 22px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    font-weight: 500;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    background-color: #ccc; /* Default background */
    color: white;
    margin-bottom: 5px;
}

.nav-link.active {
    box-shadow: 0px 4px 12px rgba(0,0,0,0.15);
}

.nav-link:hover {
  color: var(--reading-background);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}


/* Example different colors for each tab */

#tab1-tab { background: #ca8549; }
#tab2-tab { background: #ccb999; }
#tab3-tab { background: #4d617c; }
#tab4-tab { background: #a86452; }

/* fade in form reply */

  .fade-in {
    opacity: 0;
    animation: fadeIn 0.4s ease forwards;
  }

  @keyframes fadeIn {
    to {
      opacity: 1;
    }
  }
  
main {
    flex: 1; /* makes main expand to fill available space */
}

footer {
    margin-top: 2rem;
}

.footertext{
	font-size: 0.9em;
	color: var(--header-text);
}

.collapsible {
	margin-left: 2rem;
	margin-right: 2rem;
}

.collapsible-header {
	margin-left: 2rem;
	margin-right: 2rem;
	display:flex;	
	justify-content: space-between;  /* pushes chevron to the right */

}

#tab4 .collapsible-header:hover {
  background: #b17663; /* slightly lighter shade */
}

/* make the chevron an inline-block so transforms apply reliably */
.collapsible-header .chevron {
  display: inline-block;        /* important */
  transform-origin: center;
  transition: transform 0.28s ease;
  /* optional: slightly nudge its position */
  margin-left: 0.5rem;
  font-size: 1.5rem;
  transform: rotate(-90deg);
}

/* rotate either when .active is present or aria-expanded is true */
.collapsible-header.active .chevron,
.collapsible-header[aria-expanded="true"] .chevron {
  transform: rotate(-0deg);
}
