/* Page-specific styles for Broker Comparison Page */
.intro {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 0.5rem;
}
.intro .text {
    flex: 3;
    min-width: 300px;
}
.intro h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}
.intro h2 {
    font-size: 1.4rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.6rem;
}
.lead {
    font-size: 1.15rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.main-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 0.5rem;
}
.broker-list-column {
    flex: 3;
    min-width: 320px;
}
.broker-comparison-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    background: #ffffff;
    border: 2px solid;
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.broker-comparison-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}
.broker-card-top {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}
@media (min-width: 768px) {
    .broker-card-top {
        flex-direction: row;
    }
}

.broker-left {
    text-align: left;
    position: relative;
    flex-shrink: 0;
    padding-top: 0;
}
.broker-logo {
    width: 150px;
    height: 60px;
    object-fit: contain;
    object-position: left;
    margin-bottom: 0.25rem;
}
.broker-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    z-index: 10;
    white-space: nowrap;
}
.broker-rating {
    font-size: 0.95rem;
    color: #fbbf24;
    display: grid;
    gap: 5px;
}
.broker-rating .stars i {
    width: 0.95rem;
    height: 0.95rem;
    color: #fbbf24;
    margin-right: 2px;
    display: inline-block;
    vertical-align: middle;
    font-size: 0.95rem;
}
.broker-middle {
    flex-grow: 1;
    padding-top: 0;
}
.broker-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    margin-top: 0;
}
.broker-title a {
    color: #1f2937;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}
.broker-title a:hover {
    color: #2563eb;
    border-bottom-color: #2563eb;
}
.broker-facts {
    list-style: none;
    padding: 0;
    margin: 0;
}
.broker-facts li {
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
}
.broker-facts li:last-child {
    margin-bottom: 0;
}
.broker-facts li i {
    width: 0.85rem;
    height: 0.85rem;
    color: #10b981;
    margin-right: 0.5rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
    font-size: 0.85rem;
}
.broker-card-bottom {
    display: flex;
    gap: 1rem;
    margin-bottom: 0;
}
@media (min-width: 768px) {
    .broker-card-bottom {
        flex-direction: row;
    }
}
.broker-bottom-meta {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    flex: 1;
}
.broker-bottom-meta span:first-child {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.payment-icons {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.payment-icons .box {
    border: 1px solid #e5e7eb;
    border-radius: 0.35rem;
    padding: 0.2rem;
    background-color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
}
.payment-icons img {
    height: 18px;
    width: auto;
    object-fit: contain;
}
.broker-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0;
    border-left: 1px solid #e5e7eb;
    padding-left: 1.5rem;
}

.broker-prices {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem 0;
    text-align: center;
    width: 100%;
}
.broker-prices li {
    font-size: 1rem;
    color: #374151;
    margin-bottom: 0.35rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.broker-prices li strong {
    color: #1f2937;
    font-weight: 700;
    margin-left: 0.5rem;
    font-size: 1.125rem;
}
.broker-profile-link {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 700;
    font-size: 0.875rem;
    white-space: nowrap;
    transition: color 0.2s ease-in-out;
}
.broker-profile-link:hover {
    color: #1d4ed8;
}
.btn-affiliate {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #2563eb;
    color: #ffffff;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.2s ease-in-out, transform 0.1s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.btn-affiliate:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}
.broker-affiliate-note {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 0.5rem;
    text-align: center;
}

/* Tablet Optimizations */
@media (max-width: 992px) and (min-width: 769px) {
    .broker-comparison-card {
        padding: 1.25rem;
        gap: 1.5rem;
    }
    .broker-logo {
        max-width: 120px;
    }
    .broker-prices li {
        font-size: 0.9rem;
    }
    .btn-affiliate {
        padding: 0.65rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    #FT__header {
        margin-bottom: 0;
    }
    .broker-comparison-card {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0.75rem;
        padding: 0.75rem;
    }
    .broker-comparison-card:hover {
        transform: none;
    }
    .broker-card-top {
        flex-direction: column;
        padding-bottom: 0;
        border-bottom: none;
        margin-bottom: 0;
    }
    .broker-left {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding-top: 0;
        width: 100%;
    }
    .broker-logo {
        max-width: 140px;
        margin-bottom: 0;
    }
    .broker-rating {
        text-align: right;
    }
    .broker-middle {
        margin-top: 0;
    }
    .broker-card-bottom,
    .broker-right .broker-prices {
        display: none;
    }
    .broker-right {
        border-left: none;
        border-top: none;
        padding: 0;
        margin-top: 1rem;
        width: 100%;
    }
    .btn-affiliate {
        padding: 0.65rem 1.25rem;
        font-size: 0.95rem;
    }
    .intro h2, .lead {
        margin-bottom: 0.6rem;
    }
    .intro {
        margin-bottom: 1rem;
    }
    .crumb-nav {
        padding: 0 0 0.5rem 0;
    }
    .intro h2 {
        margin-top: 0;
        font-size: 1.4rem;
        line-height: 1.4;
    }
    .main-content-wrapper {
        margin-top: 1rem;
    }
    .intro h1 {
        font-size: 2rem;
    }
    .container {
        padding: 16px;
        background-color: #fff;
        margin-bottom: 1rem;
    }
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        margin-top: 1rem;
    }
    .broker-title {
        font-size: 1.2rem;
        margin-bottom: 0.4rem;
        margin-top: 0;
    }
}

/* Disclaimer Styles */
.broker-disclaimer {
    text-align: left;
    font-size: 0.7rem;
    color: #9ca3af;
    margin: 1rem 0;
    line-height: 1.5;
}

.broker-disclaimer p {
    margin: 0 0 0.5rem 0;
}

.broker-disclaimer p:last-child {
    margin-bottom: 0;
}

.broker-disclaimer strong {
    color: #9ca3af;
    font-weight: 600;
}

.broker-disclaimer .scoring-link {
    color: #9ca3af;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
}

.broker-disclaimer .scoring-link:hover {
    color: #6b7280;
}

/* Modal Styles */
.scoring-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.scoring-modal-content {
    background-color: #ffffff;
    margin: 3% auto;
    padding: 2rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.scoring-modal-close {
    color: #9ca3af;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.scoring-modal-close:hover,
.scoring-modal-close:focus {
    color: #1f2937;
}

.scoring-modal-content h2 {
    color: #1f2937;
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 0;
}

.scoring-intro {
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    border-left: 4px solid #2563eb;
}

.scoring-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
}

.scoring-category h3 {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    margin-top: 0;
}

.scoring-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.scoring-category li {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.scoring-category li::before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.scoring-category li:last-child {
    margin-bottom: 0;
}

.scoring-note {
    background-color: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1.5rem;
}

.scoring-note p {
    color: #78350f;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .broker-disclaimer {
        font-size: 0.7rem;
    }

    .scoring-modal-content {
        margin: 10% auto;
        padding: 1.5rem;
        width: 95%;
        max-height: 80vh;
    }

    .scoring-modal-content h2 {
        font-size: 1.5rem;
    }

    .scoring-intro {
        font-size: 0.95rem;
        padding: 0.875rem;
    }

    .scoring-category {
        padding: 0.875rem;
    }

    .scoring-category h3 {
        font-size: 1.1rem;
    }

    .scoring-category li {
        font-size: 0.9rem;
    }
}
