/**
 * Shared public page styles — derived from Homepage visual language.
 * Subpages load this stylesheet; Homepage keeps its inline CSS unchanged.
 */

:root {
    --primary-color: #FF6B35;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
    --success-color: #95E1D3;
    --warning-color: #F7B731;
    --danger-color: #FF6B6B;
    --dark-color: #2C3E50;
    --light-color: #F8F9FA;
    --card-radius: 20px;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --section-padding-y: 3rem;
    --hero-padding-y: 4rem;
}

body.public-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-color);
}

body.public-page > main.public-main {
    flex: 1 0 auto;
}

/* Navigation — matches Homepage */
.navbar-brand {
    color: var(--primary-color) !important;
    font-weight: bold;
}

.navbar .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.navbar .btn {
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 10px 20px;
    font-size: 14px;
}

/* Subpage hero — Homepage gradient, compact height */
.page-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    padding: var(--hero-padding-y) 0;
}

.page-hero .hero-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.page-hero h1 {
    font-size: calc(1.375rem + 1.5vw);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.page-hero .hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 0;
    opacity: 0.92;
}

/* Content layout */
.public-content {
    padding-top: var(--section-padding-y);
    padding-bottom: var(--section-padding-y);
}

.section-spaced {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Cards — matches Homepage .feature-card */
.feature-card,
.public-card {
    border: none;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    background: #fff;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Buttons — matches Homepage */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e55a2b 0%, #3db8b0 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

/* Forms — matches Homepage */
.form-control,
.form-select {
    border-radius: 15px;
    border: 2px solid #e9ecef;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

.text-primary {
    color: var(--primary-color) !important;
}

.category-chip.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Breadcrumb */
.public-breadcrumb {
    padding-top: 1rem;
    padding-bottom: 0.5rem;
}

/* Help card */
.public-help-card {
    border-radius: 15px;
    border: 1px solid #e9ecef;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* CTA band — Homepage section CTA pattern */
.public-cta-band {
    background: var(--light-color);
    padding: 2.5rem 0;
}

.public-cta-band .cta-prompt {
    color: #6c757d;
    margin-bottom: 1rem;
}

/* Policy / article content */
.policy-content,
.article-content {
    background: #fff;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 2.5rem;
}

.policy-body {
    color: #6c757d;
    line-height: 1.8;
    white-space: pre-wrap;
}

.article-content h3 {
    color: var(--dark-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    margin-top: 1.5rem;
}

/* WhatsApp float — matches Homepage */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: transform 0.3s ease;
}

.whatsapp-float a:hover {
    transform: scale(1.08);
    color: #fff;
}

@media (max-width: 767.98px) {
    :root {
        --hero-padding-y: 2.5rem;
        --section-padding-y: 2rem;
    }
}

/* Quotation success */
.quotation-success-card {
    background: #fff;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
}

.quotation-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    animation: public-pulse 2s infinite;
}

@keyframes public-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.quotation-lead-details {
    background: var(--light-color);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.quotation-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.quotation-detail-item:last-child {
    border-bottom: none;
}

.quotation-status-badge {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Error pages */
.public-error-card {
    text-align: center;
    padding: 3rem 2rem;
}
