/* PortableToiletFinder.ca — Frontend Styles v1.0 */

/* ──────────────────────────────────────────────────
   VARIABLES (fallbacks if PHP vars fail)
────────────────────────────────────────────────── */
:root {
    --primary:      #0F2A44;
    --primary-dark: #081d30;
    --accent:       #2BB673;
    --accent-dark:  #229c5e;
    --white:        #FFFFFF;
    --gray-50:      #F9FAFB;
    --gray-100:     #F3F4F6;
    --gray-200:     #E5E7EB;
    --gray-300:     #D1D5DB;
    --gray-400:     #9CA3AF;
    --gray-500:     #6B7280;
    --gray-600:     #4B5563;
    --gray-700:     #374151;
    --gray-800:     #1F2937;
    --radius-sm:    6px;
    --radius-md:    10px;
    --radius-lg:    14px;
    --radius-xl:    20px;
    --shadow-md:    0 4px 12px rgba(0,0,0,.08);
    --shadow-lg:    0 8px 24px rgba(0,0,0,.12);
    --shadow-xl:    0 20px 48px rgba(0,0,0,.16);
    --transition:   200ms ease-in-out;
    --font:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ──────────────────────────────────────────────────
   RESET (scoped to ptf-page)
────────────────────────────────────────────────── */
.ptf-page *, .ptf-page *::before, .ptf-page *::after { box-sizing: border-box; }
.ptf-page { font-family: var(--font); font-size: 16px; color: var(--gray-800); background: var(--white); -webkit-font-smoothing: antialiased; margin: 0; padding: 0; }
.ptf-page h1,.ptf-page h2,.ptf-page h3,.ptf-page h4 { color: var(--primary); line-height: 1.2; margin: 0 0 1rem; }
.ptf-page h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; }
.ptf-page h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; }
.ptf-page h3 { font-size: 1.25rem; font-weight: 700; }
.ptf-page h4 { font-size: 1rem; font-weight: 600; }
.ptf-page p { line-height: 1.7; margin: 0 0 1rem; }
.ptf-page ul { margin: 0 0 1rem; padding-left: 1.5rem; }
.ptf-page a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
.ptf-page a:hover { color: var(--accent); }
.ptf-page img { max-width: 100%; }

/* ──────────────────────────────────────────────────
   LAYOUT
────────────────────────────────────────────────── */
.ptf-container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; width: 100%; }
.ptf-content-narrow { max-width: 880px; margin: 0 auto; }
.ptf-section { padding: 5rem 0; }
.ptf-section-sm { padding: 3rem 0; }
.ptf-bg-gray { background: var(--gray-50); }
.ptf-text-center { text-align: center; }
.ptf-section-title { text-align: center; margin-bottom: .5rem; }
.ptf-section-sub { text-align: center; color: var(--gray-500); max-width: 600px; margin: 0 auto 3rem; font-size: 1.1rem; }

/* ──────────────────────────────────────────────────
   HEADER
────────────────────────────────────────────────── */
.ptf-header { background: var(--white); padding: 1rem 0; box-shadow: 0 1px 4px rgba(0,0,0,.08); position: sticky; top: 0; z-index: 100; }
.ptf-header-inner { display: flex; align-items: center; justify-content: space-between; }
.ptf-logo { font-size: 1.1rem; font-weight: 800; color: var(--primary); letter-spacing: -.3px; }
.ptf-logo:hover { color: var(--primary); }
.ptf-nav { display: flex; align-items: center; gap: 2rem; }
.ptf-nav a { font-weight: 500; color: var(--gray-600); font-size: .95rem; }
.ptf-nav a:hover { color: var(--accent); }

/* ──────────────────────────────────────────────────
   BUTTONS
────────────────────────────────────────────────── */
.ptf-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    background: var(--accent); color: var(--white); font-weight: 600; font-size: 1rem;
    padding: .85rem 2rem; border-radius: var(--radius-md); border: 2px solid var(--accent);
    cursor: pointer; transition: all var(--transition); text-decoration: none; line-height: 1;
}
.ptf-btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--white); }
.ptf-btn:active { transform: translateY(0); }
.ptf-btn-sm { padding: .6rem 1.25rem; font-size: .875rem; }
.ptf-btn-lg { padding: 1.1rem 2.5rem; font-size: 1.1rem; }
.ptf-btn-block { width: 100%; margin-top: .75rem; }
.ptf-btn-outline { background: transparent; color: var(--primary); border-color: var(--gray-300); }
.ptf-btn-outline:hover { background: var(--gray-50); color: var(--primary); border-color: var(--gray-400); box-shadow: none; transform: none; }
.ptf-btn-accent { background: var(--accent); border-color: var(--accent); color: var(--white); }
.ptf-btn-row { display: flex; gap: .75rem; margin-top: 1rem; }
.ptf-btn-row .ptf-btn-outline { flex: 0 0 auto; }
.ptf-btn-row .ptf-btn:not(.ptf-btn-outline) { flex: 1; }
.ptf-btn-lg.ptf-btn-block { margin-top: .5rem; }

/* ──────────────────────────────────────────────────
   HERO
────────────────────────────────────────────────── */
.ptf-hero { background: linear-gradient(135deg, var(--primary) 0%, #1c3d5a 100%); padding: 4rem 0 5rem; position: relative; overflow: hidden; }
.ptf-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 50%, rgba(43,182,115,.12) 0%, transparent 65%); pointer-events: none; }
.ptf-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.ptf-hero-text { padding-top: 1rem; }
.ptf-pill { display: inline-block; background: rgba(43,182,115,.2); color: var(--accent); border: 1px solid rgba(43,182,115,.3); padding: .4rem 1rem; border-radius: 100px; font-size: .8rem; font-weight: 600; letter-spacing: .3px; margin-bottom: 1.25rem; text-transform: uppercase; }
.ptf-hero-text h1 { color: var(--white); font-size: clamp(1.9rem, 4vw, 3rem); }
.ptf-hero-text p { color: rgba(255,255,255,.82); font-size: 1.1rem; margin-bottom: 1.5rem; }
.ptf-hero-meta { display: flex; flex-direction: column; gap: .5rem; }
.ptf-hero-meta span { color: rgba(255,255,255,.7); font-size: .9rem; }
.ptf-hero-meta span::before { content: ''; }

/* ──────────────────────────────────────────────────
   BOOKING WIDGET
────────────────────────────────────────────────── */
.ptf-widget { background: var(--white); border-radius: var(--radius-xl); padding: 2.25rem; box-shadow: var(--shadow-xl); }

/* Progress Indicator */
.ptf-progress { display: flex; justify-content: space-between; margin-bottom: 2rem; position: relative; }
.ptf-progress::before { content: ''; position: absolute; top: 15px; left: 16px; right: 16px; height: 2px; background: var(--gray-200); z-index: 0; }
.ptf-progress-item { flex: 1; text-align: center; position: relative; z-index: 1; }
.ptf-progress-item span { display: block; font-size: .7rem; color: var(--gray-400); margin-top: .3rem; font-weight: 500; }
.ptf-progress-circle { width: 32px; height: 32px; border-radius: 50%; background: var(--gray-200); color: var(--gray-500); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; transition: all var(--transition); }
.ptf-progress-item.active .ptf-progress-circle { background: var(--accent); color: var(--white); }
.ptf-progress-item.active span { color: var(--primary); font-weight: 600; }
.ptf-progress-item.completed .ptf-progress-circle { background: var(--primary); color: var(--white); }

/* Form Steps — scoped to widget to avoid collision with .ptf-step-card elements */
.ptf-widget .ptf-step { display: none; }
.ptf-widget .ptf-step.active { display: block; }
.ptf-widget .ptf-step h3 { color: var(--primary); margin-bottom: 1.25rem; font-size: 1.1rem; }

/* Fields */
.ptf-field { margin-bottom: 1rem; }
.ptf-field label { display: block; font-weight: 600; font-size: .875rem; color: var(--gray-700); margin-bottom: .4rem; }
.ptf-optional { font-weight: 400; color: var(--gray-400); }
.ptf-field input, .ptf-field select, .ptf-field textarea { 
    width: 100%; padding: .875rem 1rem; border: 2px solid var(--gray-300); border-radius: var(--radius-md);
    font-size: 1rem; font-family: var(--font); transition: border-color var(--transition); background: var(--white);
    color: var(--gray-800);
}
.ptf-field input:focus, .ptf-field select:focus, .ptf-field textarea:focus { outline: none; border-color: var(--accent); }
.ptf-field input.error, .ptf-field select.error, .ptf-field textarea.error { border-color: #EF4444; }
.ptf-error { font-size: .8rem; color: #EF4444; margin-top: .25rem; min-height: 1rem; }

/* Radio Group */
.ptf-radio-group { display: flex; flex-direction: column; gap: .6rem; margin-bottom: .5rem; }
.ptf-radio-option { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border: 2px solid var(--gray-200); border-radius: var(--radius-md); cursor: pointer; transition: all var(--transition); }
.ptf-radio-option:hover { border-color: var(--accent); background: var(--gray-50); }
.ptf-radio-option input { width: 18px; height: 18px; cursor: pointer; accent-color: var(--accent); flex-shrink: 0; }
.ptf-radio-option input:checked ~ .ptf-radio-label { font-weight: 600; color: var(--primary); }
.ptf-radio-option:has(input:checked) { border-color: var(--accent); background: #f0fdf9; }
.ptf-radio-label { font-size: .95rem; }

/* Pricing Card */
.ptf-pricing-card { background: var(--gray-50); border-radius: var(--radius-lg); padding: 1.5rem; text-align: center; margin: .5rem 0 1rem; }
.ptf-pricing-label { font-size: .8rem; color: var(--gray-500); margin-bottom: .5rem; text-transform: uppercase; letter-spacing: .5px; }
.ptf-pricing-amount { font-size: 2.5rem; font-weight: 800; color: var(--accent); line-height: 1; }
.ptf-pricing-sub { font-size: .8rem; color: var(--gray-400); margin-top: .4rem; }

/* Info Box */
.ptf-info-box { background: #EFF6FF; border-left: 4px solid #3B82F6; border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: .875rem 1rem; font-size: .875rem; color: #1D4ED8; margin: .75rem 0; }

/* Consent */
.ptf-consent { font-size: .78rem; color: var(--gray-400); text-align: center; margin-top: .75rem; line-height: 1.5; }

/* Form Error */
.ptf-form-error { background: #FEF2F2; border: 1px solid #FCA5A5; border-radius: var(--radius-md); padding: .875rem 1rem; color: #DC2626; font-size: .875rem; margin-top: 1rem; }

/* ──────────────────────────────────────────────────
   TRUST STRIP
────────────────────────────────────────────────── */
.ptf-trust { background: var(--white); padding: 2.5rem 0; border-top: 1px solid var(--gray-100); }
.ptf-trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.ptf-trust-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; }
.ptf-trust-icon { width: 48px; height: 48px; border-radius: 50%; background: rgba(43,182,115,.12); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; font-weight: 700; }
.ptf-trust-label { font-weight: 700; color: var(--primary); font-size: 1rem; }
.ptf-trust-sub { font-size: .875rem; color: var(--gray-500); }

/* ──────────────────────────────────────────────────
   HOW IT WORKS
────────────────────────────────────────────────── */
.ptf-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2rem; }
.ptf-step-card { text-align: center; padding: 2rem 1.5rem; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); transition: transform var(--transition), box-shadow var(--transition); }
.ptf-step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ptf-step-card h3 { font-size: 1.05rem; margin: .75rem 0 .5rem; }
.ptf-step-card p { font-size: .95rem; color: var(--gray-600); margin: 0; }
.ptf-step-num { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--white); font-size: 1.5rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto; }

/* ──────────────────────────────────────────────────
   SEO CONTENT
────────────────────────────────────────────────── */
.ptf-content-narrow h2 { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--gray-200); }
.ptf-content-narrow h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }

/* ──────────────────────────────────────────────────
   FAQ
────────────────────────────────────────────────── */
.ptf-faq-item { border-bottom: 1px solid var(--gray-200); }
.ptf-faq-q { width: 100%; background: none; border: none; padding: 1.25rem 0; text-align: left; font-size: 1.05rem; font-weight: 600; color: var(--primary); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: var(--font); }
.ptf-faq-q:hover { color: var(--accent); }
.ptf-faq-icon { font-size: 1.5rem; color: var(--accent); flex-shrink: 0; transition: transform var(--transition); font-weight: 300; line-height: 1; }
.ptf-faq-q[aria-expanded="true"] .ptf-faq-icon { transform: rotate(45deg); }
.ptf-faq-a { padding-bottom: 1.25rem; color: var(--gray-700); font-size: .95rem; line-height: 1.75; }
.ptf-faq-a p { margin: 0; }

/* ──────────────────────────────────────────────────
   DISCLAIMER
────────────────────────────────────────────────── */
.ptf-disclaimer { background: #EFF6FF; border: 1px solid #BFDBFE; border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; font-size: .9rem; color: #1E40AF; line-height: 1.7; }

/* ──────────────────────────────────────────────────
   CTA BAND
────────────────────────────────────────────────── */
.ptf-cta-band { background: var(--primary); padding: 4.5rem 0; text-align: center; }
.ptf-cta-band h2 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: .75rem; }
.ptf-cta-band p { color: rgba(255,255,255,.75); font-size: 1.15rem; margin-bottom: 2rem; }

/* ──────────────────────────────────────────────────
   FOOTER
────────────────────────────────────────────────── */
.ptf-footer { background: var(--primary); color: rgba(255,255,255,.7); padding: 3.5rem 0 1.5rem; }
.ptf-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.ptf-footer-brand { color: var(--white); font-weight: 800; font-size: 1.1rem; margin-bottom: .75rem; }
.ptf-footer p { font-size: .875rem; margin-bottom: .4rem; }
.ptf-footer h4 { color: var(--white); font-size: .875rem; margin-bottom: .875rem; text-transform: uppercase; letter-spacing: .5px; }
.ptf-footer ul { list-style: none; padding: 0; margin: 0; }
.ptf-footer ul li { margin-bottom: .5rem; font-size: .875rem; }
.ptf-footer a { color: rgba(255,255,255,.65); }
.ptf-footer a:hover { color: var(--accent); }
.ptf-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.25rem; text-align: center; font-size: .8rem; color: rgba(255,255,255,.4); }

/* ──────────────────────────────────────────────────
   THANK YOU PAGE
────────────────────────────────────────────────── */
.ptf-ty-card { background: var(--white); border-radius: var(--radius-xl); padding: 3rem; box-shadow: var(--shadow-lg); text-align: center; }
.ptf-ty-icon { font-size: 4rem; color: var(--accent); margin-bottom: 1rem; }
.ptf-ty-card h1 { font-size: 1.9rem; margin-bottom: 1.5rem; }
.ptf-ty-card h2 { font-size: 1.3rem; margin: 2rem 0 1rem; }
.ptf-alert-success { background: #ECFDF5; border: 1px solid #A7F3D0; border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; color: #065F46; font-size: .95rem; margin-bottom: 2rem; }
.ptf-steps-3 { grid-template-columns: repeat(3, 1fr); }

/* ──────────────────────────────────────────────────
   RESPONSIVE — TABLET
────────────────────────────────────────────────── */
@media (max-width: 992px) {
    .ptf-hero-grid { grid-template-columns: 1fr; }
    .ptf-hero-text { padding-top: 0; }
    .ptf-widget { max-width: 600px; margin: 0 auto; }
    .ptf-footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ──────────────────────────────────────────────────
   RESPONSIVE — MOBILE
────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .ptf-section { padding: 3rem 0; }
    .ptf-hero { padding: 2.5rem 0 3rem; }
    .ptf-nav { display: none; }
    .ptf-trust-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .ptf-steps-grid, .ptf-steps-3 { grid-template-columns: 1fr; }
    .ptf-footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .ptf-widget { padding: 1.5rem; }
    .ptf-ty-card { padding: 1.75rem 1.25rem; }
    .ptf-progress span { display: none; }
    .ptf-btn-row { flex-direction: column-reverse; }
}
