/* WIS RIs Page Styles - Brokers With Us Template */

/* ============================================
   HERO SECTION
   ============================================ */
.wis-ris-hero {
    position: relative;
    width: 100%;
    padding: 4rem 0;
    background-color: #171749;
}

.wis-ris-hero__image {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.wis-ris-hero__image img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* Filter Buttons */
.wis-filter-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    background: transparent;
}

/* Location Filter Buttons - White text with white border */
.wis-filter-btn--location {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.wis-filter-btn--location:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.wis-filter-btn--location.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
}

/* Mortgage Type Filter Buttons - Each with different colored background */
.wis-filter-btn--type {
    color: #ffffff;
    border: none;
}

.wis-filter-btn--residential {
    background: #f7a825;
}

.wis-filter-btn--residential:hover,
.wis-filter-btn--residential.active {
    background: #d8941a;
}

.wis-filter-btn--remortgage {
    background: #87ceeb;
}

.wis-filter-btn--remortgage:hover {
    background: #6bb6d6;
}

.wis-filter-btn--foreign {
    background: #4a90e2;
}

.wis-filter-btn--foreign:hover {
    background: #357abd;
}

.wis-filter-btn--ftb {
    background: #ffd700;
    color: #171749;
}

.wis-filter-btn--ftb:hover {
    background: #e6c200;
}

.wis-filter-btn--btl {
    background: #274185;
}

.wis-filter-btn--btl:hover {
    background: #1e3263;
}


/* ============================================
   BROKERS GRID SECTION
   ============================================ */
.wis-ris-brokers {
    position: relative;
}

.wis-brokers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    justify-items: center;
    align-items: center;
}

.wis-broker-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: visible;
    transition: all 0.3s ease;
    text-align: center;
    padding: 1.5rem;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 350px;
}

.wis-broker-card:hover {
    transform: translateY(-3px);
}

.wis-broker-card__image-wrapper {
    position: relative;
    width: 250px;
    height: auto;
    margin: 0 auto 1.5rem;
    overflow: hidden;

    display: block;
}

.wis-broker-card__image {
  
    width: 100%;
    height: auto;
    

}


.wis-broker-card__content {
    padding: 0;
    text-align: center;
}

.wis-broker-card__name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #171749;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.wis-broker-card__role {
    font-size: 1rem;
    font-weight: 400;
    color: #171749;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.wis-broker-card__link {
    display: inline-block;
    color: #f7a825;
    text-decoration: underline;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    line-height: 1.5;
}

.wis-broker-card__link:hover {
    color: #d8941a;
    text-decoration: underline;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.wis-ris-contact {
    position: relative;
}

.wis-contact-btn {
    display: block;
    padding: 1.25rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.wis-contact-btn--phone {
    background: #171749;
    color: #ffffff;
}

.wis-contact-btn--phone:hover {
    background: #0f1229;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23, 23, 73, 0.3);
}

.wis-contact-btn--email {
    background: #ffffff;
    color: #171749;
    border: 2px solid #171749;
}

.wis-contact-btn--email:hover {
    background: #171749;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23, 23, 73, 0.2);
}

/* ============================================
   FORM SECTION
   ============================================ */
.wis-ris-form {
    position: relative;
}

.wis-contact-form {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.wis-form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.wis-form-input:focus {
    outline: none;
    border-color: #171749;
    box-shadow: 0 0 0 3px rgba(23, 23, 73, 0.1);
}

.wis-form-input::placeholder {
    color: #9ca3af;
}

.wis-form-submit {
    width: 100%;
    padding: 1.25rem 2rem;
    background: #f7a825;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(247, 168, 37, 0.3);
}

.wis-form-submit:hover {
    background: #d8941a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 168, 37, 0.4);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .wis-brokers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .wis-broker-card {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .wis-ris-hero {
        padding: 3rem 0;
    }
    
    .wis-ris-hero h1 {
        font-size: 2.5rem !important;
    }
    
    .wis-filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .wis-brokers-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 2rem;
        max-width: 100%;
    }
    
    .wis-broker-card {
        max-width: 100%;
    }
    
    .wis-broker-card__image-wrapper {
        width: 200px;
        height: auto;
    }
    
    .wis-contact-form {
        padding: 1.5rem;
    }
    
    .wis-contact-form .grid {
        grid-template-columns: 1fr !important;
    }
    
    .wis-ris-hero__image {
        display: none;
    }
}

@media (max-width: 640px) {
    .wis-brokers-grid {
        gap: 1.5rem;
    }
    
    .wis-broker-card__image-wrapper {
        width: 180px;
        height: auto;
    }
    
    .wis-broker-card__name {
        font-size: 1.1rem;
    }
    
    .wis-broker-card {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .wis-broker-card__image-wrapper {
        width: 150px;
    }
    
    .wis-broker-card__name {
        font-size: 1rem;
    }
    
    .wis-broker-card__role {
        font-size: 0.9rem;
    }
}


