/* ========================================
   Home Page - Role-Based Section Layout - ENHANCED
   ======================================== */

.equibook-role-section {
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 50%, #f8f8f8 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Animated background pattern */
.equibook-role-section::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background:
        radial-gradient(circle at 15% 20%, rgba(197, 166, 83, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(197, 166, 83, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(197, 166, 83, 0.03) 0%, transparent 50%);
    pointer-events: none;
    animation: floatBackground 25s ease-in-out infinite;
    z-index: 0;
}

@keyframes floatBackground {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(20px, -20px) rotate(1deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-1deg);
    }
}

/* Decorative corner elements */
.equibook-role-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(197, 166, 83, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.equibook-role-wrapper {
    display: flex;
    align-items: center;
    min-height: 600px;
    margin: 0;
}

.equibook-role-images-side {
    display: flex;
    align-items: center;
    padding: 40px;
    padding-left: 60px;
}

.equibook-role-info-side {
    display: flex;
    align-items: center;
    padding: 40px;
    padding-right: 60px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 242, 235, 0.9) 100%);
}

.equibook-role-info-wrapper {
    width: 100%;
}

.equibook-role-title {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 40px;
    margin-top: 15px;
    line-height: 1.3;
    position: relative;
    display: inline-block;
}

.equibook-role-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #C5A653 0%, #8A6E11 100%);
    border-radius: 2px;
    animation: expandLine 2s ease-in-out infinite;
}

@keyframes expandLine {

    0%,
    100% {
        width: 80px;
        opacity: 1;
    }

    50% {
        width: 120px;
        opacity: 0.7;
    }
}

.equibook-role-tabs-content {
    width: 100%;
}

.role-images-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    width: 100%;
}

.role-image-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transition: all 0.4s ease;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: 2px solid transparent;
}

.role-image-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #C5A653, #8A6E11, #C5A653);
    border-radius: 12px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}



.role-image-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(197, 166, 83, 0.25);
    border-color: rgba(197, 166, 83, 0.3);
}

.role-image-item:hover::before {
    opacity: 0.6;
}

.role-image-item img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    max-height: 500px;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.role-image-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.95);
}

.role-image-item .tilter__figure {
    width: 100%;
    height: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tab Navigation - Enhanced Pill Style */
.equibook-role-tabs-vertical {
    list-style: none;
    padding: 0;
    margin: 40px 0 30px 0;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    flex-wrap: wrap;
}

.equibook-role-tabs-vertical li {
    display: inline-block;
    margin: 0;
}

.equibook-role-tabs-vertical li a {
    color: #666;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    position: relative;
    display: inline-block;
    padding: 12px 28px;
    border-radius: 25px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.equibook-role-tabs-vertical li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 25px;
    background: linear-gradient(135deg, #C5A653 0%, #8A6E11 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.equibook-role-tabs-vertical li.active a {
    color: #ffffff;
    border-color: #C5A653;
    background: linear-gradient(135deg, #C5A653 0%, #8A6E11 100%);
    box-shadow: 0 6px 20px rgba(197, 166, 83, 0.4);
    transform: translateY(-2px);
}

.equibook-role-tabs-vertical li a:hover {
    color: #C5A653;
    border-color: #C5A653;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 166, 83, 0.2);
}

.equibook-role-tabs-vertical li.active a:hover {
    color: #ffffff;
}

/* Role Descriptions */
.role-descriptions {
    margin-top: 50px;
}

.role-description {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.role-description.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.role-title-small {
    font-size: 24px;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 700;
}

.role-description-text {
    font-size: 15px;
    color: #666;
    line-height: 1.9;
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 3px solid #C5A653;
    position: relative;
}

.role-description-text::before {
    content: '"';
    position: absolute;
    left: -10px;
    top: -10px;
    font-size: 48px;
    color: rgba(197, 166, 83, 0.2);
    font-family: Georgia, serif;
    line-height: 1;
}

.role-features {
    list-style: none;
    padding: 0;
    text-align: right;
}

.role-features li {
    color: #555;
    font-size: 14px;
    margin-bottom: 16px;
    padding-right: 35px;
    position: relative;
    transition: all 0.3s ease;
}

.role-features li:hover {
    color: #C5A653;
    transform: translateX(-5px);
}

.role-features li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: #C5A653;
    font-weight: bold;
    font-size: 18px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, rgba(197, 166, 83, 0.15) 0%, rgba(197, 166, 83, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.role-features li:hover::before {
    background: linear-gradient(135deg, #C5A653 0%, #8A6E11 100%);
    color: #ffffff;
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(197, 166, 83, 0.4);
}

/* Tab Content Switching */
.tab-pane.fade {
    opacity: 0;
    display: none;
}

.tab-pane.fade.in.active {
    opacity: 1;
    display: block;
}

/* Responsive */
@media (max-width: 1199px) {
    .equibook-role-wrapper {
        min-height: auto;
    }

    .equibook-role-images-side {
        padding-left: 30px;
    }

    .equibook-role-info-side {
        padding-right: 30px;
    }

    .role-images-grid {
        gap: 20px;
    }

    /* keep default image flow on smaller screens */
}

@media (max-width: 991px) {
    .equibook-role-wrapper {
        flex-direction: column;
    }

    .equibook-role-images-side {
        width: 100%;
        padding-left: 40px;
        padding-right: 40px;
        padding-top: 60px;
    }

    .equibook-role-info-side {
        width: 100%;
        padding-left: 40px;
        padding-right: 40px;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .equibook-role-title {
        font-size: 36px;
    }

    .equibook-role-tabs-vertical {
        text-align: left;
        margin-bottom: 40px;
    }

    .equibook-role-tabs-vertical li {
        display: block;
        margin-left: 0;
        margin-bottom: 15px;
    }

    .equibook-role-tabs-vertical li a::after {
        right: auto;
        left: 0;
    }

    .role-features {
        text-align: left;
    }

    .role-features li {
        padding-right: 0;
        padding-left: 20px;
    }

    .role-features li::before {
        right: auto;
        left: 0;
    }
}

@media (max-width: 767px) {
    .equibook-role-section {
        padding: 50px 0;
    }

    .equibook-role-wrapper {
        margin: 0;
    }

    .equibook-role-images-side,
    .equibook-role-info-side {
        padding-left: 20px;
        padding-right: 20px;
    }

    .equibook-role-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .role-images-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .equibook-role-tabs-vertical {
        margin-bottom: 30px;
    }

    .equibook-role-tabs-vertical li {
        margin-bottom: 12px;
    }

    .role-description-text {
        font-size: 13px;
    }

    .role-features li {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .role-image-item {
        min-height: 250px;
    }

    .role-image-item img {
        min-height: 250px;
        max-height: 350px;
    }
}

/* ==========================
   Contact / Get in Touch
   ========================== */

.b-contacts--equibook {
    align-items: center;
    gap: 30px;
}

.b-contacts__img-wrapper {
    padding: 20px 60px 20px 20px;
}

.about-illustration {
    width: 105%;
    max-width: none;
    display: block;
    margin-left: -2.5%;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    background: #fff;
    /* Override global img grayscale; boost contrast & color slightly */
    filter: contrast(1.12) saturate(1.06);
    -webkit-filter: contrast(1.12) saturate(1.06);
    transition: transform 0.35s ease, filter 0.35s ease;
}

.about-illustration:hover {
    transform: scale(1.02);
    filter: contrast(1.16) saturate(1.08);
    -webkit-filter: contrast(1.16) saturate(1.08);
}

.equibook-contacts-label {
    color: #C5A653;
    font-weight: 600;
    letter-spacing: 2px;
}

.contact-details__label {
    color: #C5A653;
    font-weight: 700;
    margin-bottom: 12px;
}

.contact-email {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.contact-email i {
    font-size: 20px;
    color: #C5A653;
}

.contact-email__addr {
    font-weight: 700;
    color: #333;
}

.contact-email__note {
    color: #777;
    font-size: 13px;
}

.contact-extra__item {
    margin-top: 20px;
}

.contact-extra__title {
    font-weight: 700;
    margin-bottom: 6px;
}

.contact-extra__desc {
    color: #777;
    font-size: 14px;
}

.contact-hours {
    display: flex;
    gap: 20px;
    margin-top: 24px;
}

.contact-hours__col {
    flex: 1;
    background: rgba(197, 166, 83, 0.03);
    padding: 12px 16px;
    border-radius: 6px;
}

.contact-hours__title {
    font-weight: 700;
    margin-bottom: 6px;
}

.contact-hours__desc {
    color: #666;
    font-size: 14px;
}

/* ==========================
   Enhanced Contact Form Styles
   ========================== */

.equibook-contact-form {
    width: 100%;
}

.equibook-contact-form .form-group {
    margin-bottom: 20px;
}

.equibook-contact-form .form-control {
    width: 100%;
    padding: 16px 20px;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    background-color: #ffffff;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.equibook-contact-form .form-control::placeholder {
    color: #999;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.equibook-contact-form .form-control:focus {
    border-color: #C5A653;
    background-color: #ffffff;
    box-shadow: 0 4px 16px rgba(197, 166, 83, 0.15);
    transform: translateY(-1px);
}

.equibook-contact-form .form-control:focus::placeholder {
    opacity: 0.6;
}

.equibook-contact-form textarea.form-control {
    min-height: 140px;
    resize: none;
    line-height: 1.6;
}

/* Enhanced Submit Button Wrapper */
.equibook-contact-form .b-btn {
    display: inline-block;
    position: relative;
    margin-top: 12px;
}

.equibook-contact-form .b-btn .ui-decor-line {
    display: none;
}

.equibook-contact-form .b-btn__inner {
    display: inline-block;
    padding: 16px 40px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffffff;
    background: linear-gradient(135deg, #C5A653 0%, #8A6E11 100%);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(197, 166, 83, 0.3);
}

.equibook-contact-form .b-btn__inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.equibook-contact-form .b-btn:hover .b-btn__inner {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(197, 166, 83, 0.45);
    background: linear-gradient(135deg, #d4b65f 0%, #9a7a1a 100%);
}

.equibook-contact-form .b-btn:hover .b-btn__inner::before {
    left: 100%;
}

.equibook-contact-form .b-btn__inner:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(197, 166, 83, 0.35);
}

/* Optional: Add focus ring for accessibility */
.equibook-contact-form .b-btn__inner:focus {
    outline: 3px solid rgba(197, 166, 83, 0.3);
    outline-offset: 3px;
}

/* Disabled state */
.equibook-contact-form .b-btn__inner:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.equibook-contact-form .b-btn__inner:disabled:hover {
    transform: none;
    box-shadow: 0 6px 20px rgba(197, 166, 83, 0.3);
}

@media (max-width: 991px) {
    .b-contacts__img-wrapper {
        padding: 10px 20px;
    }

    .contact-hours {
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    .equibook-contact-form {
        max-width: 100% !important;
    }

    .equibook-contact-form .form-control {
        padding: 14px 16px;
        font-size: 13px;
    }

    .equibook-contact-form .b-btn__inner {
        padding: 14px 32px;
        font-size: 12px;
    }
}