/* Import Galyon font */
@font-face {
  font-family: 'Galyon';
  src: url('../images/galyon-regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Galyon';
  src: url('../images/galyon-bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Galyon';
  src: url('../images/galyon-italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
}

/* Quote Page Styles - Modern Card Design */

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Page Layout */


.quote-page {
  background-color: var(--ashy-white);
  color: var(--light-black);
  padding-top: var(--navbar_height);
  padding-bottom: 8rem;
}

/* Container Styles */
.quote-container {
  border-radius: 16px;
  /*border: 1px solid var(--light-black);*/
  max-width: 991px;
  width: 100%;
  margin: 2.75rem auto 4rem auto;
  box-sizing: border-box;

}


/* Header Styles */
.quote-header {
  text-align: left;
  margin-bottom: 2.5rem;
  display: none;
}

.quote-title {
  font-family: 'Galyon', Verdana, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #181818;
}
.quote_email_wrapper{
  padding: 0 0 0 2rem;
  gap: 0.5rem;
  display: flex;
}

.quote_email_text_wrapper{
  font-weight: 500;
}

.quote-subtitle {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1rem;
  color: #666;
  margin-bottom: 0;
}

/* Form Grid Layout */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: 100%;
}

.form-row.three {
  grid-template-columns: 1fr 1fr 1fr;
}

/* Form Elements */
.form-group {
  margin-bottom: 3.5rem;
  display: flex;
  flex-direction: column;
}

.form-group-question{
  margin-bottom: 0rem;
  display: flex;
  flex-direction: column;
}

.form-label {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #595959;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0em;
}

.form-label-horizontal {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #595959;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: row;
  align-items: top;
  justify-content: flex-start;
  gap:1rem;
}

.required {
  color: #e11d48;
  font-size: 1.1em;
  margin-left: 0.1em;
}
.form_bottom{
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  gap: 0rem 0.75rem;
}
.form_desc{
  height: calc(100% - 22px);
}
.form_col_right{
  grid-row: span 2;
}

.form-input,
.form-textarea,
.form-select {
  font-family: 'Poppins', Arial, sans-serif;
  width: 100%;
  font-size: 1rem;
  border: 1.5px solid #C6C6C6;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  background: #E3E3E3;
  color: #595959;
  transition: border 0.2s;
  outline: none;
  margin-top: 0.1rem;
  
}
.full_width{
  height: 100%;
}
.form-textarea{
  min-height: 100%;
  resize: vertical;
  height: 100% !important;
}
.form_h2{
  font-family: 'Galyon', Verdana, sans-serif;
  font-weight: 400;
  font-size: 2rem;
}

.label_button {
  padding: 1.25rem 3.5rem 1.25rem 1.5rem;
  background-color: #E3E3E3;
  border: 1px solid #C6C6C6 ;
  border-radius: 8px;
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  user-select: none;
  margin-bottom: 0.25rem;
  color: #595959;
}
.label_button input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;

}

.label_button:hover {
  background: var(--main-green, #4F754B);
  color: #fff;
}

.label_button.selected {
  background: var(--main-green, #4F754B);
  color: #fff;
}



.label_button input[type="checkbox"]:checked ~ * {
  /* fallback for some structures */
}

/* The trick: use :has() if supported, or use the adjacent selector */
.label_button:has(input[type="checkbox"]:checked),
.label_button input[type="checkbox"]:checked + span {
  background: var(--main-green, #4F754B);
  color: #fff;
}

/* Remove the default checkbox appearance (no arrow/tick) */
.label_button input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.label_button input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.label_button input[type="radio"]:focus + span,
.label_button input[type="checkbox"]:focus + span {
  outline: 2px solid #181818;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: #181818;
  background: #E3E3E3;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #b0b0b0;
  font-weight: 400;
}



/* Form Actions */
.form-divider {
  border: none;
  border-top: 1px solid #ececec;
  margin: 2rem 0 1.5rem 0;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* Buttons */
.submit-button,
.chat-submit {
  width: 100%;
  background: #4F754B;
  color: var(--ashy-white);
  border: none;
  border-radius: 8px;
  padding: 1rem 2rem;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.chat-submit {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
}
.submit-button:hover,
.chat-submit:hover {
  background: #000;
}

.cancel-button {
  background: #E3E3E3;
  color: #181818;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.85rem 2rem;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border 0.2s;
}

.cancel-button:hover {
  background: #f3f3f3;
  border-color: #b0b0b0;
}

/* Chat Section */
.chat-section {
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  margin: 2rem auto 3rem auto;
  height: 100%;
  box-sizing: border-box;
}

.chat-question {
  font-family: 'Poppins', Arial, sans-serif;
  font-kerning: -0.2px;
  line-height: 125%;
  font-size: 2rem;
  color: #343A40;
  margin-bottom: 1.5rem;
  border-radius: 8px;
}

.chat-input-group {
  margin: 3rem 0 0 0;
  position: relative;
  display: block;
}

.chat-input {
  min-height: 120px;
  width: 100%;
  flex: 1;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  background: #E3E3E3;
  color: #181818;
  transition: border 0.2s;
  outline: none;
}

.chat-input:focus {
  border-color: #181818;
  background: #E3E3E3;
}

#quote-ready{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.markdown-body {
  max-width: 991px;
  margin: 2rem auto;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  line-height: 1.7;
  font-size: 1rem;
  color: #333;
}

.markdown-body h1, .markdown-body h2, .markdown-body h3 {
  color: var(--light-black);
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 500;
  margin-top: 2rem;
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}

.markdown-body h1 {
  font-size: 2rem;
  border-bottom: 2px solid #e3e3e3;
  padding-bottom: 0.5rem;
}

.markdown-body h2 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
}

.markdown-body h3 {
  font-size: 1.15rem;
  color: #0b9444;
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
}

.markdown-body p, .markdown-body li {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1.0rem;
  color: #222;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.markdown-body ul {
  padding-left: 1rem;
  margin-bottom: 1rem;
}

.markdown-body strong {
  color: #0b9444;
  font-weight: 600;
}


/* Responsive Design */
@media (max-width: 600px) {
  .quote-container,
  .chat-section {
    padding: 1.25rem 0.5rem 1rem 0.5rem;
    max-width: 98vw;
  }
  
  .form-row,
  .form-row.three {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .form-actions {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }
}

@media (max-width: 747px) {

  .quote_email_wrapper{
    flex-direction: column;
  }
  .quote-page{
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .form_bottom{
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .form_h2{
    font-size: 1.5rem;

  }
  .label_button{
    padding: 1rem 1.25rem 1rem 1rem;
    margin-bottom: 0rem;
  }
  .quote_email_wrapper{
    padding: 0;
  }

  .form_desc{
    height: calc(240px - 24px);
    margin-bottom: 0.5rem;
  }

  .quote-container,
  .chat-section {
    padding: 1.25rem 0.5rem 1rem 0.5rem;
    max-width: 98vw;
  }
  #quoteWrapper{
    padding: 0;
  }
  
  
  .form-row,
  .form-row.three {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .submit-button{
    margin-top: 1.75rem;
  }
  
  .form-actions {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }
}
@media (max-width: 747px) {
  .quote-page{
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
/* Utility Classes */
.hidden {
  display: none !important;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Status Messages */
.form-success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.form-error {
  color: #d32f2f;
  font-size: 14px;
  margin-top: 4px;
  padding: 0px 8px;
  border-left: 3px solid #d32f2f;
  font-weight: 400;
  transition: all 0.2s;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quote-form,
.chat-section {
  animation: fadeInUp 0.6s ease-out;
}

.label_button input[type="checkbox"],
.label_button input[type="radio"] {
  accent-color: var(--main-green, #27ae60);
}
