/* Home Hero Banner (custom-agentic-ai-section) */
.custom-agentic-ai-section {
    margin-bottom: 40px;
    height: 600px;
    min-height: 93vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-agentic-ai-section h1 {
    font-size: 44px;
    font-weight: 300;
    line-height: 56px;
    margin: 0;
    font-family: "DM Sans", sans-serif;
    letter-spacing: 2px;
    text-align: center;
}

.custom-agentic-ai-section .gradient-text {
    background: linear-gradient(131deg, #544FF8 70.42%, #2EB6AE 102.7%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brush-stroke-img {
    position: absolute;
    right: 15px;
}

/* CTA buttons */
.agentic-cta-buttons {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 94px;
}

.cta-btn-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.agentic-cta-buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 20px;
    border-radius: 12px;
    color: #FFF;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 160%;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.agentic-cta-buttons .btn img {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.agentic-cta-buttons .btn-scope-requirement {
    background: linear-gradient(131deg, #544FF8 70.42%, #2EB6AE 102.7%);
    color: #fff;
    border: 1px solid transparent;
    cursor: default;
    pointer-events: none;
}

.agentic-cta-buttons .btn-scope-requirement:hover {
    opacity: 0.9;
    color: #fff;
}

.agentic-cta-buttons .btn-find-expert {
    background: #fff;
    color: #1C1C1C;
    border: 1px solid #D9D9D9;
}

.agentic-cta-buttons .btn-find-expert:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}

.agentic-cta-buttons .btn-find-expert:hover img {
    filter: brightness(0) invert(1);
}

.cta-caption {
    text-align: center;
    color: #4D4D4D;
    font-family: "DM Sans";
    font-size: 14px;
    font-style: normal;
    font-weight: 300;
    line-height: 18px;
    margin-top: 5px;
    margin-right: 30px; /* icon (18px) + gap (12px): centers caption under the button text, not the whole button */
}

.cta-caption-meeting {
    text-align: center;
    color: #4D4D4D;
    font-family: "DM Sans";
    font-size: 14px;
    font-style: normal;
    font-weight: 300;
    line-height: 18px;
    margin-top: 5px;
    margin-right: 30px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-find-expert:hover + .cta-caption-meeting {
    visibility: visible;
    opacity: 1;
}

/* Search box */
.search-diamond-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    pointer-events: none;
}

.challenge-input-container {
    position: relative;
    width: 911px;
    max-width: 100%;
    margin: 55px auto 0;
    transform: translateX(13px);
}

.challenge-input-container form {
    display: block;
    width: 100%;
}

.challenge-input-container input {
    width: 100%;
    padding: 15px 15px 15px 64px;
    border: none;
    border-bottom: 2px solid transparent;
    background-color: #fff;
    font-size: 16px;
    outline: none;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    background-size: 2px 40px;
    background-repeat: no-repeat;
    background-position: 20px center;
}

.challenge-input-container input#query::placeholder {
    color: #767676;
    opacity: 1;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-style: italic;
    font-weight: 400;
    line-height: 32px;
}

.challenge-input-container input#query:-webkit-autofill,
.challenge-input-container input#query:-webkit-autofill:hover,
.challenge-input-container input#query:-webkit-autofill:focus,
.challenge-input-container input#query:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #000 !important;
    transition: background-color 5000s ease-in-out 0s;
}

.challenge-input-container button {
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    padding: 5px;
    background-color: transparent;
    display: none;
}

.challenge-input-container .aide-hint-text {
    position: absolute;
    left: 64px;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(28, 28, 28, 0.4);
    visibility: hidden;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-style: italic;
    font-weight: 400;
    line-height: 32px;
    background-color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.challenge-input-container.show-aide-hint .aide-hint-text {
    visibility: visible;
}

.challenge-input-container button:focus:not(:focus-visible) {
    outline: none;
    background: none;
    border: none;
}

.custom-agentic-ai-section .progress-bar {
    height: 8px;
    width: 911px;
    max-width: 100%;
    margin: 0 auto;
    transform: translateX(13px);
    background: linear-gradient(45deg, #2EB6AE, #4FACF8, #544FF8);
    background-size: 600% 100%;
    animation: home-hero-gradient 1.4s linear infinite;
    animation-direction: alternate;
    border-radius: 431.106px;
}

@keyframes home-hero-gradient {
    0% { background-position: 0%; }
    100% { background-position: 100%; }
}

/* Responsive */
@media (max-width: 1200px) {
    .challenge-input-container input#query::placeholder {
        font-size: 14px;
    }
}

@media (max-width: 1199.98px) {
    .custom-agentic-ai-section {
        margin-bottom: 80px;
        height: auto;
        min-height: auto;
    }
    .custom-agentic-ai-section h1 {
        font-size: 38px;
    }
    .challenge-input-container {
        margin-top: 30px;
    }
    .agentic-cta-buttons {
        flex-wrap: nowrap;
        margin-top: 74px;
    }
    .challenge-input-container input {
        width: 100%;
    }
    .brush-stroke-img {
        right: -5px;
    }
}

@media (max-width: 767.98px) {
    .custom-agentic-ai-section {
        margin-bottom: 60px;
    }
    .custom-agentic-ai-section h1 {
        font-size: 40px;
        line-height: 48px;
    }
    .challenge-input-container button img {
        width: 24px;
        height: 24px;
    }
    .challenge-input-container input#query::placeholder {
        font-size: 10px;
        line-height: 14px !important;
    }
    .challenge-input-container input {
        line-height: 10px;
        font-size: 14px;
        width: 100%;
        padding: 10px 0 10px 40px;
    }
    .challenge-input-container {
        position: relative;
        margin-top: 54px;
    }
    .agentic-cta-buttons {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: flex-start;
        margin-top: 65px;
        gap: 16px;
    }
    .cta-btn-group {
        flex: 1;
        min-width: 0;
        align-items: center;
    }
    .agentic-cta-buttons .btn {
        width: 100%;
        flex-direction: column;
        gap: 6px;
        padding: 10px;
        font-size: 11px;
        white-space: normal;
        text-align: center;
    }
    .cta-caption,
    .cta-caption-meeting {
        text-align: center;
        padding-left: 0;
        font-size: 11px !important;
        margin-top: 8px !important;
        margin-bottom: 0;
        margin-right: 0;
    }
    .cta-caption-meeting {
        visibility: visible;
        opacity: 1;
    }
    .search-diamond-icon {
        width: 38px;
        height: 38px;
    }
}
