.tc-body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #000;
    background-color: #fff;
}

.tc-container {
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 12px;
    padding-right: 12px;
}

.tc-darksection-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

.tc-header {
    width: 100%;
}

.tc-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
  
.tc-header-left,
.tc-header-right {
    flex: 1 1 0;
}

.tc-header-center {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    padding: 0.5em 0;
}

.tc-logo {
    max-height: 90px;
    height: auto;
    width: auto;
    display: block;
    margin: 1em auto 0.7em auto;
}

.tc-header-bar {
    height: 30px;
    background-color: #1f1a69;
    width: 100%;
}

.tc-header-bar-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tc-section {
    padding: 0.5rem 0;
}

.tc-footer {
    padding: 2em 0;
}

.tc-footer-content {
    text-align: center;
}

/* ==== Basic fonts ==== */

.tc-font-dark {
    font-family: Arial, Helvetica, sans-serif;
    color: #000;
}

.tc-link-dark {
    font-family: Arial, Helvetica, sans-serif;
    color: #4c00ff; /* blue link text */
    text-decoration: none;
}

.tc-link-dark:hover {
    text-decoration: underline;
}

.tc-font-light {
    font-family: Arial, Helvetica, sans-serif;
    color: #fff;
}

.tc-link-light {
    font-family: Arial, Helvetica, sans-serif;
    color: #ecea58; /* yellow link text */
    text-decoration: none;
}

.tc-link-light:hover {
    text-decoration: underline;
}

.tc-intro-headline {
    font-family: Arial, Helvetica, sans-serif;
    color: #921d1d;          /* dark red */
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.15em;
}

.tc-intro-subheadline {
    font-family: Arial, Helvetica, sans-serif;
    color: #1f1a69;
    font-size: 1.2rem;      /* larger, but not H1-sized */
    font-weight: 600;       /* semibold: strong, not heavy */
    text-align: center;

    margin-top: 1.0rem;    /* tighter to headline */
    margin-bottom: 1.0rem; /* space before next content */
}

.tc-intro-subtext {
    font-family: Arial, Helvetica, sans-serif;
    color: #000;
    font-size: 1.05rem;
    text-align: center;
    margin: 0 auto;
}

/* ===== Basic Headings ===== */

h1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.75em;
}

/* Dark H1 (default for light backgrounds) */
.tc-h1-dark {
    color: #921d1d; /* dark red */
    text-align: center;
}

/* Light H1 (for dark backgrounds) */
.tc-h1-light {
    color: #dfdc5b;
}

h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.2em;
}

/* Dark H2 (default for light backgrounds) */
.tc-h2-dark {
    color: #921d1d; /* dark red */
}

/* Light H2 (for dark backgrounds) */
.tc-h2-light {
    color: #d6d6d6;
}

h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.0rem;
    font-weight: 600;
    margin-bottom: 0.2em;
}

/* ===== Web App Controls Layout ===== */

.tc-controls-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: flex-start;
}

/* Stack panels on mobile */
@media (max-width: 768px) {
    .tc-controls-grid {
        grid-template-columns: 1fr;
    }
}


/* ===== Background Info Section ===== */

 .tc-background {
    background-color: #1f1a69;
    padding: 3rem 0;
} 

.tc-background h1 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.tc-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    max-width: 100%;
}

.tc-image-tile {
    aspect-ratio: 1 / 1;         /* perfect square */
    background-size: cover;
    background-position: center;
    border-radius: 4px;
}

/* Background section: two columns on desktop */
.tc-background-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 2rem;
    align-items: start;
}

.tc-background-right {
    min-width: 0;
}

/* Stack on mobile */
@media (max-width: 768px) {
    .tc-background-grid {
        grid-template-columns: 1fr;
    }
}

/* Individual images */
.image-1 { background-image: url('../images/background/home1.jpg'); }
.image-2 { background-image: url('../images/background/home2.jpg'); }
.image-3 { background-image: url('../images/background/home3.jpg'); }
.image-4 { background-image: url('../images/background/home4.jpg'); }
.image-5 { background-image: url('../images/background/home5.jpg'); }
.image-6 { background-image: url('../images/background/home6.jpg'); }

/* ===== Form controls: rounded, modern ===== */

/* ==== Web App Controls ==== */

.tc-form input,
.tc-form textarea,
.tc-form select,
.tc-form button {
    border-radius: 9999px;          /* pill shape */
    padding: 10px 16px;
    border: 1px solid #ccc;
    font-size: 16px;
    font-family: inherit;
}

/* Multi-line text should not be pill-shaped */
.tc-form textarea {
    border-radius: 12px;
    resize: vertical;
}

/* Buttons */
.tc-form button {
    background-color: #000;
    color: #fff;
    border: none;
    cursor: pointer;
}

/* Focus states (important for UX) */
.tc-form input:focus,
.tc-form textarea:focus,
.tc-form select:focus {
    outline: none;
    border-color: #000;
}

/* review stars */
.tc-stars svg {
    width: 18px;
    height: 18px;
    fill: #f5c518;
}

/* Vertical spacing between controls */
.tc-control {
    margin: 14px 0;   /* space before/after each field */
}

/* Placeholder-like text color */
.tc-form textarea::placeholder {
    color: #666;      /* medium-dark grey */
}

/* For the first "placeholder" option in selects */
.tc-form select {
    color: #111;      /* normal selected text */
}
.tc-form select:invalid {
    color: #666;      /* when the placeholder option is selected */
}

/* Character counter row */
.tc-help-row {
    margin-top: 6px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
}

#fh_desc_warn {
    color: #a00;      /* warning tone */
}

/* Make controls span the column */
.tc-form select,
.tc-form textarea,
.tc-form input {
    width: 100%;
    box-sizing: border-box;
}

.tc-form select { color: #111; }        /* normal selected value */
.tc-form select:invalid { color: #666; } /* placeholder state */


/* Find Services progress rail */
.tc-findservices-rail {
    position: relative;
    padding-left: 42px;   /* creates the left margin lane */
}
  
/* The moving red arrow */

/* Solid block arrow (stem) */
.tc-progress-arrow {
    position: absolute;
    left: 6px;
    width: 16px;          /* stem length */
    height: 10px;         /* stem thickness */
    background-color: #c00;
    transition: transform 180ms ease;
}
  
  /* Bigger arrowhead with shoulder */
.tc-progress-arrow::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -12px;         /* head length */
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;   /* head height / 2 */
    border-bottom: 10px solid transparent;
    border-left: 12px solid #c00;         /* head length */
}
  
  /* Field labels (small, bold, black, left-justified) */
.tc-field-label {
    font-size: 13px;
    font-weight: 700;
    color: #000;
    margin: 12px 0 6px;
}
  
/* Make controls span the column */
.tc-form select,
.tc-form textarea,
.tc-form input {
    width: 100%;
    box-sizing: border-box;
}

/* Placeholder-like text color for selects */
.tc-form select { color: #111; }
.tc-form select:invalid { color: #666; }

/* Spacing between controls */
.tc-control {
    margin: 14px 0;
}

/* Action buttons row */
.tc-actions {
    margin: 14px 0 0;
}

/* Right-justify action buttons */
.tc-actions-row {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
  
/* Green submit buttons */
#fh_submit_btn {
    background-color: #44aa15;
    color: #fff;
    border-color: #000;
}

#os_submit_btn {
    background-color: #44aa15;
    color: #fff;
    border-color: #000;
}

.tc-actions-row button {
    width: auto; /* don’t force full width */
}

/* Submit note */
.tc-submit-note {
    margin-top: 8px;
    font-size: 13px;
    color: #666;
}

/* Budget sublabels */
.tc-subfield-label {
    font-size: 12px;
    font-weight: 700;
    color: #000;
    margin: 10px 0 6px;
}
  
.tc-budget-grid {
    display: grid;
    gap: 10px;
}

/* Disabled look for "coming soon" fields */
.tc-form input:disabled {
    background: #f2f2f2;
    color: #888;
    border-color: #ddd;
    cursor: not-allowed;
}

.tc-disabled-text {
    color: #666;
}
  
/* Indent the Budget subfields so it reads like a grouped section */
.tc-budget-grid {
    padding-left: 14px;
    margin-top: 6px;
}
  
/* Currency prefix */
.tc-currency-input {
    position: relative;
}
  
.tc-currency-symbol {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: #666;
}
  
.tc-currency-input input {
    padding-left: 28px; /* make room for $ */
    width: 100%;
    box-sizing: border-box;
}
  
/* Disabled inputs already grey via your disabled styling; this makes the $ match */
.tc-currency-input input:disabled + .tc-currency-symbol { color: #aaa; } /* safe even if not used */
.tc-budget-total {
    font-weight: 700;
    color: #666;
    margin-left: 6px;
    font-size: 13px;
}


/*=== results page ===*/

/* ===== Results (provider profile card) ===== */

.tc-results-wrap { padding: 18px 0 34px; }

.tc-results-crumb {
    font-size: 14px;
    opacity: 0.75;
    margin: 8px 0 14px;
}

/* Card shell */
.tc-results-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #ddd;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    background: #fff;
}

/* Photo + content */
.tc-results-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    align-items: start;
}

/* Thumbnail */
.tc-results-thumb {
    width: 120px;
    height: 120px;
    border-radius: 18px;
    background: #f2f2f2;
    border: 1px solid #ddd;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0.7;
}

.tc-results-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

/* Name + badge */
.tc-results-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.tc-results-name {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}
.tc-results-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 9999px;
    border: 1px solid #ddd;
    background: #bbc716;
}

/* Rating row (reuses .tc-stars svg from existing CSS) */
.tc-results-rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}
.tc-results-reviews {
    font-size: 14px;
    opacity: 0.75;
}

/* Headline + body */
.tc-results-headline {
    margin-top: 12px;
    font-size: 16px;
    font-weight: 700;
}
.tc-results-text {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.45;
    opacity: 0.9;
}

/* Qualifications */
.tc-results-quals {
    margin-top: 14px;
    border-top: 1px solid #eee;
    padding-top: 14px;
}
.tc-results-quals-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    opacity: 0.75;
    margin-bottom: 8px;
}
.tc-results-quals-list {
    margin: 0;
    padding-left: 18px;
    line-height: 1.6;
    font-size: 15px;
}

/* Stats */
.tc-results-stats {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.tc-results-stat {
    border: 1px solid #e2e2e2;
    border-radius: 14px;
    padding: 10px 12px;
    background: #fafafa;
}
.tc-results-stat-label {
    font-size: 12px;
    opacity: 0.7;
}
.tc-results-stat-value {
    font-size: 14px;
    font-weight: 700;
    margin-top: 4px;
}

/* Actions (kept separate from .tc-form button rules) */
.tc-results-actions-row {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 16px;
}

.tc-results-btn {
    border-radius: 9999px;
    padding: 10px 16px;
    line-height: 1.4;
    font-size: 15px;
    font-weight: 700;
    border: 1px solid #000;
    background: #fff;
    cursor: pointer;
}


/* Red "See Next" button */
.tc-results-btn-next {
    background: #c00;          /* Bright red */
    color: #fff;
}

/* Ensure primary button stays green */
.tc-results-btn-primary {
    background: #44aa15 !important;  /* Original green */
    color: #fff;
}

.tc-selloffer-footer {
    margin-top: auto;              /* pushes footer to bottom */
    display: flex;
    justify-content: flex-end;     /* right align */
    padding-top: 12px;
}

/* Responsive */
@media (max-width: 640px) {
    .tc-results-grid { grid-template-columns: 1fr; }
    .tc-results-thumb { width: 100%; height: 180px; }
    .tc-results-stats { grid-template-columns: 1fr; }
}


/* --- Field labels (small, bold, above controls) --- */
.tc-field-label{
    display:block;
    font-weight:700;
    font-size:13px;
    margin: 10px 0 6px;
    color:#000;
  }
  
  /* --- Blue info icon + tooltip --- */
  .tc-info{
    display:inline-block;
    width:16px;
    height:16px;
    margin-left:6px;
    vertical-align:middle;
    border-radius:50%;
    background:#1f6feb;
    position:relative;
    cursor:help;
  }
  
  .tc-info::before{
    content:"i";
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-56%);
    font-size:12px;
    font-weight:700;
    color:#fff;
    line-height:1;
  }
  
  /* Tooltip bubble */
  .tc-info::after{
    content:attr(data-tip);
    position:absolute;
    left:22px;
    top:50%;
    transform:translateY(-50%);
    background:#111;
    color:#fff;
    padding:8px 10px;
    border-radius:10px;
    font-size:12px;
    line-height:1.25;
    white-space:normal;
    width:260px;
    box-shadow:0 8px 20px rgba(0,0,0,0.18);
    opacity:0;
    pointer-events:none;
    transition:opacity 0.15s ease;
    z-index:9999;
  }
  
  .tc-info:hover::after{
    opacity:1;
  }
  
  /* Position Match Score in top-right of card */
.tc-results-body {
    position: relative; /* Needed for absolute positioning of child */
    padding-top: 50px;   /* Make room for the score badge */
}

.tc-results-match-score {
    position: absolute;
    top: 12px;
    right: 16px;
    background: #1e40af;        /* Deep blue background */
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 8px 16px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tc-match-score-label {
    display: block;
    font-size: 0.75rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tc-match-score-value {
    display: block;
    font-size: 1.5rem;
    line-height: 1;
}

/* Left-justify the button row */
.tc-results-actions-left-group {
    justify-content: flex-start !important;  /* Override any existing center/end */
    gap: 12px;
}

.tc-results-actions-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    width: 100%;  /* NEW: Ensures full width for proper left/right push */
}
  
.tc-carousel {
    position: relative;
}

.tc-results-card {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tc-results-card.active {
    display: block;
    opacity: 1;
}

.tc-carousel-indicators {
    text-align: center;
    margin-top: 20px;
}

.tc-dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.tc-dot.active {
    background-color: #1e40af;
}

.tc-results-special-quals {
    margin-bottom: 16px;  /* Adjust value as needed: 12px, 20px, etc. */
}

.tc-stars svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #ccc;
    stroke-width: 1.5;
}
.tc-stars svg.filled {
    fill: gold;
    stroke: gold;
}
.tc-stars svg.half .filled {
    fill: gold;
    stroke: gold;
}


/* Registration Page */

.tc-form-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Labels take 1 part, inputs take 2 parts */
    gap: 1.5rem 2rem; /* Vertical gap between rows, horizontal gap between label and input */
    align-items: center; /* Vertically center labels with inputs */
    max-width: 600px; /* Optional: keeps form from stretching too wide */
    margin: 0 auto;
}

.tc-form-group {
    display: contents; /* Allows grid to directly control label + input */
}

.tc-form-group label {
    font-weight: 500;
    text-align: right; /* Right-align labels for clean look */
    padding-right: 1rem;
}

.tc-form {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
}

/* Optional: make error messages appear below the input */
.tc-error {
    grid-column: 2;
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.tc-form-actions {
    display: flex;
    justify-content: center; /* centers the button */
    margin-top: 2rem;
}

.tc-register-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem 2rem;
    align-items: start;
    max-width: 600px;
    margin: 0 auto;
}

.tc-control {
    display: contents;
}

.tc-label {
    font-weight: 500;
    text-align: right;
    padding-right: 1rem;
    padding-top: 0.75rem; /* vertical alignment with input */
}

.tc-control input {
    width: 100%;
    border-radius: 9999px;     /* pill shape */
    padding: 10px 16px;
    border: 1px solid #ccc;
    font-size: 16px;
    font-family: inherit;
}

.tc-form-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.tc-error {
    grid-column: 2;
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.tc-example-block {
    max-width: 520px;
    margin: 1.5rem auto 2.0rem auto; /* centers the block */
    text-align: left;                /* left-justified text */
    border: 1px solid #525252;
    border-radius:20px;
    padding: 10px 16px;
    background-color: #fdfcd2;
}

.tc-example-block p {
    margin: 0.35rem 0;
}

.tc-example-title {
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.6rem;
}

.tc-example-footer {
    margin-top: 0.6rem;
}

.tc-results-reviews-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #e5e5e5;
}

.tc-results-reviews-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #222;
}

.tc-results-no-reviews {
    color: #777;
    font-style: italic;
    padding: 20px 0;
}

.tc-results-review {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
}

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

.tc-review-stars svg {
    width: 18px;
    height: 18px;
    margin-right: 2px;
}

.tc-review-stars svg.filled {
    fill: gold;
    stroke: gold;
}

.tc-review-stars svg.half .filled {
    fill: gold;
    stroke: gold;
}

.tc-review-stars svg:not(.filled) {
    fill: none;
    stroke: #ccc;
}

.tc-review-username {
    font-weight: 600;
    color: #444;
}

.tc-review-headline {
    margin: 10px 0 8px;
    font-size: 1.1rem;
    color: #333;
}

.tc-review-text {
    line-height: 1.5;
    color: #555;
}

.tc-clickable-rating,
.tc-clickable-reviews {
    cursor: pointer;
    transition: opacity 0.2s;
}

.tc-clickable-rating:hover,
.tc-clickable-reviews:hover {
    opacity: 0.7;
}