/* PAGE BODY */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: #eeeef1;
  }
  /* RESPONSIVE CONTAINER CONTAINS ALL THE FORMS AND QUOTES DISPLAYED */
  .container {
    min-width: 300px;
    max-width: 960px;
    width: 80%;
    margin: 30px auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
  }
  /* COMPANY LOGO */
  .top-image {
    width: 205px;
    display: block;
    margin: 0 auto 20px auto;
  }
  /* FORM TITLE */
  .title {
    color: #000321;
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    margin: 10px 0px;
    text-align: center;
  }  
  .title-h2 {

    font-size: 28px;
    line-height: 35px;
    font-weight: 900;
    color: #f14f7b;
    text-transform: uppercase;
    margin-top: 0;
    margin: 30px 0px;
  }
  .title-h3 {
    text-align: left;
    color: #000321;
    font-size: 1.75rem;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0px;
  }
  .accenthr {
    width: 70%;
    margin: 12px auto;
    border: none;
    border-top: 4px solid #f14f7b;
  }
  /* cards section to select the services */
  .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 20px;
    margin: 35px auto;
  }
  .card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  
  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  }
  
  .card h2 {
    font-size: 20px;
    color: #000321;
    margin-bottom: 10px;
    text-align: center;
  }
  
  .card p {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1;
    text-align: center;
    padding: 0px 35px;
  }
  .card-link {
    display: flex;
    width: auto;
    background: #f14f7b;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    border: 1px solid #f14f7b;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
    margin: 10px auto;
    text-align: center;
  }
  .card-link:hover {
    background: #ffffff;
    border: 1px solid #f14f7b;
    color: #f14f7b;
    text-decoration: underline;
  }
  
  /*Car link WHITE LABEL OPTIONS*/
    .card-link-dark {
    display: flex;
    width: auto;
    background: #000321;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    border: 1px solid #000321;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
    margin: 10px auto;
    text-align: center;
  }
  .card-link-dark:hover {
    background: #ffffff;
    border: 1px solid #000321;
    color: #000321;
    text-decoration: underline;
  }

  /* page footer */
  .footer-note, .footer-note p {
    text-align: center;
    color: #555;
    font-size: 16px;
    line-height: 20px;
    margin: 12px 0px;
  }
  
  .footer-note a {
    color: #f14f7b;
    text-decoration: none;
    font-weight: bold;
  }
  
  .footer-note a:hover {
    text-decoration: underline;
  }
  .footer-note-company-info {
    font-size: 18px;
    line-height: 20px;
    font-weight: 700; 
    text-align: center;
  }
  .footer-note-company-links {
    color: #f14f7b !important; 
    font-size:12px;
  }

/*RADIOBUTTONS STYLE START*/
:root {
    --accent-color: #f14f7b;
    --light-color: #fff;
    --dark-color: #444;
    --background-color: #e0e0e0; /* Retained gray background */
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start !important;
}

.radio-label {
    position: relative;
    display: flex;
    align-items: center;       /* ensures text + radio are centered vertically */
    gap: 10px;
    font-size: 14px;
    line-height: 18px;
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    padding: 14px 14px;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: var(--background-color);
    transition: all 0.3s ease;
    white-space: normal;
    flex-wrap: wrap; 
}

.radio-label:hover {
    border-color: var(--accent-color);
    background: rgba(241, 79, 123, 0.2);
}

.radio-label input {
    display: none;
}

.radio-label .custom-radio {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    display: flex;                    /* FIX: flex to center the checkmark */
    align-items: center;              /* centers vertically */
    justify-content: center;          /* centers horizontally */
    background: var(--background-color);
    transition: all 0.3s ease;
    position: relative;
    margin-right: 0px;
}

.radio-label input:checked + .custom-radio {
    border-color: var(--accent-color);
    background: var(--accent-color);
}

.radio-label input:checked + .custom-radio::after {
    content: "\2713";
    font-size: 14px;
    color: var(--light-color);
    font-weight: bold;
    display: block;                   /* no flex here, parent already handles centering */
    animation: checkmark-pop 0.3s ease-in-out;
}

@keyframes checkmark-pop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

@keyframes blink {
    0%, 10%, 30%, 50%, 100% {
        background-color: var(--background-color);
    }
    11%, 29%, 45% {
        background-color: rgba(241, 79, 123, 0.3);
    }
}

.radio-label input:checked + label {
    animation: blink 1s;
}

@media (max-width: 600px) {
    .radio-group {
        flex-direction: row;
        align-items: flex-start;
    }
}
/* RADIO BUTTONS STYLES END */

/* ACCORDEON STYLING */

/* Accordion style */
.accordion {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.accordion-item + .accordion-item {
  border-top: 1px solid #ddd;
}

.accordion-header {
  width: 100%;
  background: #f9f9f9;
  color: #000321;
  text-align: left;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  outline: none;
  transition: background 0.3s;
}

.accordion-header:hover {
  background: rgba(241, 79, 123, 0.1); /* pink accent hover */
}

.accordion-header.active {
  background: #f14f7b;
  color: #fff;
}

.accordion-body {
  display: none;
  padding: 14px 18px;
  background: #fff;
  font-size: 15px;
  color: #555;
  line-height: 1.5;
}


/* TEXT AREA STYLING */
/* Textarea Styling */
.form-group textarea,
.custom-textarea {
    width: 100% !important;
    min-height: 120px !important;
    padding: 12px 15px !important;
    margin: 8px 0 !important;
    box-sizing: border-box !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    color: #333 !important;
    background-color: #f9f9f9 !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    resize: vertical; /* only allow vertical resizing */
}

/* --- Textarea reset + match inputs --- */
textarea,
.form-group textarea,
#notes {
  display: block;
  width: 100% !important;
  min-height: 140px;
  padding: 12px 15px;
  margin: 8px 0;
  box-sizing: border-box;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.4;
  color: #333;
  background-color: #f9f9f9;
  font-family: inherit;        /* avoid monospace default on some browsers */
  resize: vertical;            /* keep layout intact */
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}

textarea:focus,
.form-group textarea:focus,
#notes:focus {
  border-color: #f14f7b;
  box-shadow: 0 0 8px rgba(241,79,123,.2);
  outline: none;
  background-color: #fff;
}

textarea::placeholder,
#notes::placeholder {
  color: #999;
  font-style: italic;
}


/* Focus state */
.form-group textarea:focus,
.custom-textarea:focus {
    border-color: #f14f7b;
    box-shadow: 0 0 8px rgba(241, 79, 123, 0.2);
    outline: none;
    background-color: #fff;
}

/* Placeholder style */
.form-group textarea::placeholder,
.custom-textarea::placeholder {
    color: #999;
    font-style: italic;
}


/*RADIOBUTTONS STYLE END*/
input[type="number"],
select,
input[type="checkbox"] {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-size: 1rem;
    margin-bottom: 15px;
    background: #fafafa;
    transition: border-color 0.3s, background-color 0.3s;
}
input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    margin-bottom: 5px;
}
input[type="number"]:focus,
select:focus {
    border-color: #f14f7b;
    background: #fff;
    outline: none;
}
ul {
    padding-left: 20px;
    margin: 0;
}
ul ul {
    padding-left: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    flex-wrap: wrap; /* Stacks on small screens */
}

.form-group {
    flex: 1;
    min-width: 180px; /* Prevents squishing on small screens */
}

input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
}
.form-group:last-of-type {
    margin-bottom: 0;
}
.checkbox-group {
    margin-bottom: 20px;
}
.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
}
.checkbox-group label {
    display: inline-block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #555;
}
/* Text Input Field Styling */
.form-group input[type="text"], 
.form-group input[type="number"], 
.form-group input[type=tel],
.form-group select {
    width: 100%;
    padding: 12px 15px;
    margin: 8px 0;
    box-sizing: border-box;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus, 
.form-group input[type="number"]:focus, 
.form-group select:focus {
    border-color: #f14f7b;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
    outline: none;
    background-color: #fff;
}

.form-group input[type="text"]::placeholder, 
.form-group input[type="number"]::placeholder {
    color: #999;
}

.form-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="#999" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 8px 10px;
    cursor: pointer;
}
/* Header Styles */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Arial', sans-serif;
    font-weight: 700;
    color: #333;
}

h1 {
    font-size: 2.305rem;
    color: #f14f7b;
    margin-bottom: 20px;
    text-transform: uppercase;
}

h2 {
    font-size: 2rem;
    color: #f14f7b;
    margin-bottom: 18px;
}

h3 {
    font-size: 1.25rem;
    color: #000321;
    margin-bottom: 16px;
}

h4 {
    font-size: 1.5rem;
    color: #000321;
    margin-top: 24px;
    margin-bottom: 18px;
}

h5 {
    font-size: 1.25rem;
    color: #000321;
    margin-bottom: 12px;
}

h6 {
    font-size: 1rem;
    color: #001a33;
    margin-bottom: 10px;
}

.form-container {
    width: 90vw;
    max-width: 700px;
    margin: 50px 5vw;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}
.form-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}
.form-group {
    margin-bottom: 15px;
}
/*Style the form label*/
.form-group label {
    /*display: inline;*/
    padding: 18px;
    color: #555;
    font-weight: bold;
}
/*Styles the paragraph of the form description*/
.form-group p {
    display: block;
    color: #555;
    font-size: 17px;
    line-height: 20px;
    font-weight: 400;
    margin: 10px 0px;
}

.form-group ul,
.form-group li,
.form-group dt {
    color: #555;
    list-style:circle;
    font-size: 17px;
    line-height: 20px;
    font-weight: 400;
    margin: 10px 0px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}
.form-group input[type="radio"] {
    width: auto;
    margin-right: 5px;
}
.form-group select {
    appearance: none;
}
.submit-btn {
    width: 100%;
    display: block;
    margin: 0px auto;
    background-color: #f14f7b;
    color: white;
    padding: 15px;
    border: 1px solid #f14f7b;
    border-radius: 5px;
    font-size: 22px;
    line-height: 26px;
    cursor: pointer;
    transition: background-color 0.35s ease;
}
.submit-btn:hover {
    width: 100%;
    display: block;
    margin: 0px auto;
    border: 1px solid #f14f7b;
    background-color: #ffffff;
    color: #f14f7b;
}


/* ENDS FORM STYLING */


/*STARTS STYLING DISPLAY QUOTE */
.quote-container {
    min-width: 300px;
    max-width: 960px;
    width: 80%;
    margin: 30px auto;
    padding: 20px;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
}
.quote-container img {
    max-width: 305px;
    margin-bottom: 50px;
}
.quote-container h2 {
    color: #ffffff !important;
    margin: 10px auto !important;
}
.quote-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.quote-table th, .quote-table td {
    border: 1px solid #000321ab;
    padding: 10px;
    text-align: left;
}
.quote-table th {
    background-color: #000321d6;
    color: #fff;
}
.quote-table td {
    color: #333;
}
.tduno, .thuno {
    width: 50%;
}
.tddos, .thdos {
    width: 30%;
}
.tdtres, .thtres {
    width: 20%;
}
/*Total quote text*/
.total-quote {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f14f7b;
    margin: 20px 10px;
    text-align: right !important;
}
.contact-info {
    margin-top: 30px;
    font-size: 16px;
    color: #555;
    display: flex;
    flex-direction: column;
}
.contact-info p {
    margin: 5px 0;
}
/*Button to download quote as PDF*/
.export-to-PDF-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #f14f7b;
    border: 1px solid #f14f7b;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.export-to-PDF-btn:hover {
        background-color: #f14f7b;
        border: 1px solid #f14f7b;
        color: #ffffff;
}
/* Button to go back to quote form*/
.back-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #ffffff;
    border: 1px solid #f14f7b;
    color: #f14f7b;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.back-btn:hover {
    background-color: #f14f7b;
    border: 1px solid #f14f7b;
    color: #ffffff;
}

/* Use media print to hide items when client is printing quote */
/* ===== Print styles for the quote ===== */
/* ===========================
   PRINT THEME — TPMP Brand
   =========================== */
@page {
  size: letter;
  margin: 14mm 14mm 14mm 14mm;
}

/* Force colors to render in print */
@media print {
  html, body {
    -webkit-print-color-adjust: exact !important;
            print-color-adjust: exact !important;
    color: #000321;
    font: 12px/1.45 Arial, Helvetica, sans-serif;
    background: #fff !important;
  }

  /* Page footer with page numbers + site */
  .print-footer {
    position: fixed;
    bottom: 8mm;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 10px;
    color: #667085;
  }
  .print-footer .pagenum:after {
    content: counter(page) " / " counter(pages);
  }

  /* Main container tweaks for print */
  .quote-container,
  .container {
    max-width: 770px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: 0 !important;
  }

  /* Logo & title block */
  .top-image {
    display: block !important;
    margin: 16mm auto 6mm auto !important;
    width: 135px !important;
  }

  h1, .quote-container h1 {
    margin: 0 0 8mm 0 !important;
    text-align: center !important;
    font-size: 20px !important;
    line-height: 1.25;
    color: #000321 !important;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  /* Pink divider under the H1 */
  h1::after, .quote-container h1::after {
    content: "";
    display: block;
    width: 140px;
    height: 4px;
    margin: 10px auto 0;
    background: #f14f7b;
    border-radius: 2px;
  }

  /* Section headings */
  h2, h3, h4, h5, h6 {
    color: #000321 !important;
    font-weight: 700 !important;
    margin: 16px 0 8px !important;
  }

  /* Quote meta tables */
  .quote-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 0 0 10px 0 !important;
    font-size: 12px !important;
  }

  .quote-table th {
    background: #000321d6 !important;          /* very light teal */
    color: #ffffff !important;
    border: 1px solid #0003321ab !important;
    padding: 8px 10px !important;
    text-align: left !important;
  }

  .quote-table td {
    border: 1px solid #000321ab !important;
    padding: 8px 10px !important;
    vertical-align: top !important;
    background: #fff !important;
  }

  /* Zebra striping for itemized sections */
  .quote-table tr:nth-child(even) td {
    background: #fafbfc !important;
  }

  /* Money column right-aligned */
  .quote-table td:last-child,
  .money,
  .cost {
    text-align: left !important;
    white-space: nowrap !important;
    font-variant-numeric: tabular-nums;
  }

  /* “Item / Details / Cost” header row pop */
  .quote-table thead th {
    background: #f14f7b !important;
    color: #ffffff !important;
    border-color: #f14f7b !important;
  }

  /* Subtle section titles (like 'Payment Schedule', etc.) */
  .quote-subhead {
    margin: 14px 0 6px 0 !important;
    color: #000321 !important;
    font-weight: 700 !important;
    font-size: 13px !important;
  }

  /* Total block */
  .total-quote {
    margin: 16px 0 4mm 0 !important;
    padding: 12px 14px !important;
    background: #fef1f6 !important;           /* very light pink */
    color: #000321 !important;
    border: 1px solid #f7c6d6 !important;
    border-left: 6px solid #f14f7b !important; /* pink accent bar */
    font-size: 16px !important;
    font-weight: 800 !important;
    text-align: right !important;
  }

  /* Micro-summaries (client/contact blocks) */
  .quote-table.meta th {
    width: 180px !important;
  }

  /* Break control: avoid lonely headers/rows at page top */
  h1, h2, h3 { page-break-after: avoid; }
  .quote-table tr { page-break-inside: avoid; }
  .total-quote { page-break-inside: avoid; }


  /* Hide non-print UI */
  .submit-btn,
  .back-btn,
  .export-to-PDF-btn,
  nav,
  .no-print {
    display: none !important;
  }
}
