/* ================================= V3 Product Page Styles ================================= */
/* Design: Full-width layout, no sidebar nav, sticky CTA bar, prominent dual CTAs */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ================================= Sticky CTA Bar ================================= */
.sticky-cta-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.sticky-cta-bar.visible {
    transform: translateY(0);
}

.sticky-cta-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sticky-cta-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sticky-cta-logo-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #3d59ab, #667eea);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.sticky-cta-text {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.sticky-cta-text strong {
    color: #1a1a1a;
    font-weight: 700;
}

.sticky-cta-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.sticky-cta-actions .btn-primary {
    padding: 8px 18px;
    font-size: 14px;
}

.sticky-cta-actions .btn-secondary {
    padding: 8px 18px;
    font-size: 14px;
}

/* ================================= Main Content (full width) ================================= */
.v3-main-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    background-color: white;
}

/* Section Styling */
.v3-main-content section {
    margin-bottom: 48px;
    scroll-margin-top: 80px;
}

.v3-section-header {
    margin-bottom: 36px;
}

.v3-section-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.v3-section-header p {
    font-size: 17px;
    color: #666;
    font-weight: 500;
}

/* ================================= Hero Section ================================= */
.v3-hero {
    background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 50%, #fff9e6 100%);
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(61, 89, 171, 0.08);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(61, 89, 171, 0.1);
    margin-top: 80px;
}

.v3-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.v3-hero-content {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 40px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.v3-hero-logo {
    width: 160px;
    height: 160px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 8px 32px rgba(61, 89, 171, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    font-weight: 700;
    color: #3d59ab;
    object-fit: contain;
}

.v3-hero-details .v3-hero-category {
    color: #3d59ab;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    padding: 4px 14px;
    background: white;
    border-radius: 20px;
    margin-bottom: 12px;
    border: 1px solid rgba(61, 89, 171, 0.15);
}

.v3-hero-details h1 {
    font-size: 36px;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.v3-hero-tagline {
    font-size: 18px;
    color: #444;
    margin-bottom: 24px;
    line-height: 1.6;
}

.v3-trust-signals {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.v3-trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(61, 89, 171, 0.08);
    font-size: 14px;
}

.v3-trust-badge i {
    color: #ffd700;
    font-size: 18px;
}

.v3-trust-badge span {
    font-weight: 600;
    color: #1a1a1a;
}

/* ================================= CTA Buttons ================================= */
.v3-cta-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-primary {
    background: #ffd700;
    color: #1a1a1a;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
    border: 2px solid #ffd700;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #ffe033;
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.5);
}

.btn-secondary {
    background: white;
    color: #3d59ab;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid #3d59ab;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #3d59ab;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(61, 89, 171, 0.3);
}

/* ================================= Spec Bar ================================= */
.v3-spec-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    background: white;
    padding: 20px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef1f8;
}

.v3-spec-item {
    text-align: center;
    padding: 12px 8px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.v3-spec-item:hover {
    background: #f8f9ff;
}

.v3-spec-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #3d59ab;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.v3-spec-value {
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 600;
}

/* ================================= About / Description Section ================================= */
.v3-about-section {
    padding: 40px;
    border-radius: 20px;
    background: #fafbff;
    border: 1px solid #eef1f8;
}

.v3-about-description {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
    margin-bottom: 32px;
}

.v3-about-description p {
    margin-bottom: 16px;
}

.v3-challenges-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.v3-challenges-col h3,
.v3-results-col h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.v3-challenges-col h3 { color: #c0392b; }
.v3-results-col h3 { color: #27ae60; }

.v3-challenge-list {
    list-style: none;
    padding: 0;
}

.v3-challenge-list li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    border-bottom: 1px solid #f0f0f0;
}

.v3-challenge-list li:last-child {
    border-bottom: none;
}

.v3-challenge-list li::before {
    content: '\f00d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #e74c3c;
    font-size: 14px;
}

.v3-results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.v3-result-card {
    background: white;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e8f5e9;
    transition: all 0.2s ease;
}

.v3-result-card:hover {
    box-shadow: 0 4px 16px rgba(39, 174, 96, 0.12);
    transform: translateY(-2px);
}

.v3-result-value {
    font-size: 24px;
    font-weight: 800;
    color: #27ae60;
    margin-bottom: 4px;
}

.v3-result-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

/* ================================= Features Grid ================================= */
.v3-features-section {
    padding: 40px;
    border-radius: 20px;
    background: white;
    border: 1px solid #eef1f8;
}

.v3-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.v3-feature-card {
    padding: 28px;
    border-radius: 16px;
    border: 1px solid #eef1f8;
    background: linear-gradient(135deg, #fafbff 0%, #ffffff 100%);
    transition: all 0.3s ease;
}

.v3-feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(61, 89, 171, 0.25);
    box-shadow: 0 8px 24px rgba(61, 89, 171, 0.1);
}

.v3-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3d59ab 0%, #5b7fd4 100%);
    margin-bottom: 16px;
}

.v3-feature-card:nth-child(even) .v3-feature-icon {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
}

.v3-feature-icon i {
    font-size: 20px;
    color: white;
}

.v3-feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.v3-feature-tagline {
    font-size: 14px;
    font-weight: 600;
    color: #3d59ab;
    margin-bottom: 8px;
}

.v3-feature-result {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* ================================= Mid-section CTA Strip ================================= */
.v3-cta-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 36px;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff9e6 100%);
    border-radius: 16px;
    border: 1px solid #eef1f8;
}

.v3-cta-strip p {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

/* ================================= Use Cases ================================= */
.v3-usecases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.v3-usecase-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    border: 1px solid #eef1f8;
    transition: all 0.3s ease;
    position: relative;
}

.v3-usecase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.v3-usecase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3d59ab, #5b7fd4);
    border-radius: 20px 20px 0 0;
}

.v3-usecase-card:nth-child(even)::before {
    background: linear-gradient(90deg, #ffd700, #ffed4e);
}

.v3-usecase-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.v3-usecase-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.v3-usecase-metric {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #f8f9ff;
    border-radius: 12px;
}

.v3-usecase-metric-number {
    font-size: 28px;
    font-weight: 800;
    color: #3d59ab;
    line-height: 1;
}

.v3-usecase-metric-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

/* ================================= Integrations ================================= */
.v3-integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.v3-integration-card {
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #eef1f8;
    background: white;
    transition: all 0.3s ease;
}

.v3-integration-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(61, 89, 171, 0.1);
    border-color: rgba(61, 89, 171, 0.2);
}

.v3-integration-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.v3-integration-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.v3-integration-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3d59ab 0%, #5b7fd4 100%);
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.v3-integration-card:nth-child(2) .v3-integration-icon { background: linear-gradient(135deg, #27ae60, #2ecc71); }
.v3-integration-card:nth-child(3) .v3-integration-icon { background: linear-gradient(135deg, #e67e22, #f39c12); }
.v3-integration-card:nth-child(4) .v3-integration-icon { background: linear-gradient(135deg, #8e44ad, #9b59b6); }
.v3-integration-card:nth-child(5) .v3-integration-icon { background: linear-gradient(135deg, #c0392b, #e74c3c); }
.v3-integration-card:nth-child(6) .v3-integration-icon { background: linear-gradient(135deg, #16a085, #1abc9c); }

.v3-integration-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

.v3-integration-explore {
    color: #3d59ab;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease;
}

.v3-integration-explore:hover {
    gap: 8px;
}

.v3-integration-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* ================================= Implementation with AiDOOS ================================= */
.v3-implementation {
    padding: 40px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
    border: 1px solid #eef1f8;
}

.v3-delivery-model {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.v3-delivery-card {
    text-align: center;
    padding: 24px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.v3-delivery-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3d59ab, #5070c5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: white;
    font-size: 24px;
}

.v3-delivery-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.v3-delivery-card p {
    font-size: 14px;
    color: #666;
}

.v3-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 20px 0;
}

.v3-timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 5%;
    right: 5%;
    height: 3px;
    background: linear-gradient(90deg, #3d59ab, #ffd700);
}

.v3-timeline-step {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.v3-timeline-dot {
    width: 40px;
    height: 40px;
    background: #3d59ab;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    margin: 0 auto 10px;
    box-shadow: 0 4px 12px rgba(61, 89, 171, 0.3);
}

.v3-timeline-step:last-child .v3-timeline-dot {
    background: #ffd700;
    color: #1a1a1a;
}

.v3-timeline-label {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.v3-timeline-desc {
    font-size: 12px;
    color: #666;
    max-width: 140px;
    margin: 0 auto;
}

/* ================================= Alternatives Table ================================= */
.v3-comparison-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid #eef1f8;
}

.v3-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.v3-comparison-table thead th {
    background: #3d59ab;
    color: white;
    padding: 14px 20px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.v3-comparison-table thead th:first-child {
    border-radius: 16px 0 0 0;
}

.v3-comparison-table thead th:last-child {
    border-radius: 0 16px 0 0;
}

.v3-comparison-table tbody td {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

.v3-comparison-table tbody tr:hover {
    background: #f8f9ff;
}

.v3-comparison-table tbody td:first-child {
    font-weight: 600;
}

.rating-excellent { color: #27ae60; font-weight: 700; }
.rating-good { color: #3d59ab; font-weight: 600; }
.rating-moderate { color: #e67e22; font-weight: 600; }
.rating-limited { color: #999; font-weight: 500; }

/* ================================= Similar Products ================================= */
.v3-similar-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.v3-product-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #eef1f8;
    overflow: hidden;
    transition: all 0.3s ease;
}

.v3-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.v3-product-card-img {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9ff, #eef1f8);
    padding: 20px;
}

.v3-product-card-img img {
    max-height: 100px;
    max-width: 180px;
    object-fit: contain;
}

.v3-product-card-img .v3-product-avatar {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: linear-gradient(135deg, #3d59ab, #667eea);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
}

.v3-product-card-body {
    padding: 20px;
}

.v3-product-card-body h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v3-product-card-body p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

.v3-product-explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #3d59ab;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    padding: 6px 14px;
    border: 1.5px solid #3d59ab;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.v3-product-explore-btn:hover {
    background: #3d59ab;
    color: white;
}

/* ================================= FAQ ================================= */
.v3-faq-list {
    max-width: 800px;
}

.v3-faq-item {
    border-bottom: 1px solid #eef1f8;
}

.v3-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    transition: color 0.2s ease;
}

.v3-faq-question:hover {
    color: #3d59ab;
}

.v3-faq-question i {
    font-size: 14px;
    color: #3d59ab;
    transition: transform 0.3s ease;
}

.v3-faq-question.active i {
    transform: rotate(180deg);
}

.v3-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 15px;
    color: #555;
    line-height: 1.7;
}

.v3-faq-answer.active {
    max-height: 500px;
    padding-bottom: 18px;
}

/* ================================= Footer CTA ================================= */
.v3-footer-cta {
    text-align: center;
    padding: 48px 40px;
    background: linear-gradient(135deg, #3d59ab 0%, #5070c5 100%);
    border-radius: 20px;
    color: white;
}

.v3-footer-cta h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}

.v3-footer-cta p {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 28px;
}

.v3-footer-cta .btn-primary {
    font-size: 18px;
    padding: 14px 32px;
}

.v3-footer-cta .btn-secondary {
    background: transparent;
    border-color: white;
    color: white;
}

.v3-footer-cta .btn-secondary:hover {
    background: white;
    color: #3d59ab;
}

/* ================================= Responsive ================================= */
@media (max-width: 1024px) {
    .v3-main-content {
        padding: 0 24px;
    }

    .v3-hero {
        padding: 32px;
    }

    .v3-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .v3-challenges-results {
        grid-template-columns: 1fr;
    }

    .v3-delivery-model {
        grid-template-columns: 1fr;
    }

    .v3-timeline {
        flex-direction: column;
        gap: 20px;
    }

    .v3-timeline::before {
        top: 0;
        bottom: 0;
        left: 20px;
        right: auto;
        width: 3px;
        height: auto;
    }

    .v3-timeline-step {
        text-align: left;
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .v3-timeline-dot {
        margin: 0;
        flex-shrink: 0;
    }

    .v3-timeline-desc {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .sticky-cta-bar {
        padding: 8px 16px;
    }

    .sticky-cta-text {
        display: none;
    }

    .v3-hero {
        margin-top: 70px;
        padding: 24px;
    }

    .v3-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .v3-hero-logo {
        width: 100px;
        height: 100px;
        font-size: 40px;
        margin: 0 auto;
    }

    .v3-hero-details h1 {
        font-size: 28px;
    }

    .v3-trust-signals {
        justify-content: center;
    }

    .v3-cta-group {
        justify-content: center;
    }

    .v3-features-grid {
        grid-template-columns: 1fr;
    }

    .v3-usecases-grid {
        grid-template-columns: 1fr;
    }

    .v3-cta-strip {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .v3-section-header h2 {
        font-size: 26px;
    }

    .v3-about-section,
    .v3-features-section,
    .v3-implementation {
        padding: 24px;
    }

    .v3-similar-products {
        grid-template-columns: 1fr;
    }

    .v3-footer-cta {
        padding: 32px 20px;
    }

    .v3-footer-cta h2 {
        font-size: 22px;
    }
}

/* ── Modal / Submit Form ── */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.product-form-container {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

#referProductForm h5 {
  margin: 0 0 1.5rem 0;
  font-size: 1.5rem;
  color: #333;
  font-weight: 600;
}

.flex-row { display: flex; }
.flex-column { display: flex; flex-direction: column; }
.spacing-md { gap: 1rem; }
.spacing-top-md { margin-top: 1rem; }

.checkbox-group {
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 6px;
}

.checkbox-group > div { display: flex; align-items: center; gap: 0.5rem; }
.checkbox-group input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; accent-color: #007bff; }
.checkbox-group label { margin: 0; cursor: pointer; font-size: 0.95rem; color: #555; }

#referProductForm label { display: inline-block; font-weight: 500; color: #333; font-size: 0.95rem; }

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.submit-button {
  width: 100%;
  padding: 0.875rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.1s;
}

.submit-button:hover { background-color: #0056b3; }
.submit-button:active { transform: scale(0.98); }

@media (max-width: 576px) {
  .product-form-container { padding: 1.5rem; width: 95%; }
  .checkbox-group { flex-direction: column; gap: 0.75rem; }
  #referProductForm h5 { font-size: 1.25rem; }
}
