/* WHMCS Domain Search – v2 */
.whmcs-domain-search-wrapper {
    margin: 32px auto;
    text-align: center;
    font-family: inherit;
}

.whmcs-domain-search-wrapper .eyebrow {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.whmcs-domain-search-wrapper .title {
    margin: 0 0 12px;
    line-height: 1.2;
}

.whmcs-domain-search-wrapper .description {
    margin: 0 0 8px;
    line-height: 1.5;
}

.whmcs-domain-search-wrapper .accreditation {
    margin: 0 0 20px;
}

.whmcs-domain-search-wrapper .domain-search-form {
    display: flex;
    align-items: center;
    border: 1px solid #e2e2e2;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    padding: 4px;
    margin: 0 0 16px;
}

.whmcs-domain-search-wrapper .input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.whmcs-domain-search-wrapper .www-prefix {
    padding: 0 0 0 14px;
    color: #888;
    font-size: 16px;
    white-space: nowrap;
    user-select: none;
}

.whmcs-domain-search-wrapper .domain-input {
    width: 100%;
    border: none !important;
    outline: none !important;
    padding: 12px 40px 12px 8px !important;
    background: transparent !important;
    height: 48px !important;
    box-shadow: none !important;
}

.whmcs-domain-search-wrapper .domain-input.has-prefix {
    padding-left: 2px !important;
}

.whmcs-domain-search-wrapper .domain-input::-webkit-search-cancel-button,
.whmcs-domain-search-wrapper .domain-input::-webkit-search-decoration,
.whmcs-domain-search-wrapper .domain-input::-webkit-search-results-button,
.whmcs-domain-search-wrapper .domain-input::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

.whmcs-domain-search-wrapper .clear-input {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    display: none;
    line-height: 1;
    padding: 0 4px;
}

.whmcs-domain-search-wrapper .clear-input:hover {
    color: #333;
}

.whmcs-domain-search-wrapper .domain-submit {
    border: none !important;
    padding: 0 22px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer;
    white-space: nowrap;
    height: 44px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.15s ease;
    position: relative;
    overflow: hidden;
    margin-right: 2px;
}

.whmcs-domain-search-wrapper .domain-submit:hover {
    transform: translateY(-1px);
}

.whmcs-domain-search-wrapper .domain-submit::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
    pointer-events: none;
}

.whmcs-domain-search-wrapper .domain-submit:hover::before {
    left: 120%;
}

.tld-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
    justify-content: center;
}

.tld-pill {
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.tld-pill:hover {
    border-color: #999;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.tld-pill .tld {
    font-weight: 600;
}

.tld-pill .price {
    font-size: 13px;
    opacity: 0.85;
}

.transfer-row {
    margin-top: 14px;
    font-size: 14px;
}

.transfer-link {
    background: none;
    border: none;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
}

.domain-result {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.whmcs-domain-search-wrapper .domain-input.has-error {
    color: transparent !important;
}
.whmcs-domain-search-wrapper .domain-input.has-error::placeholder {
    color: transparent;
}
.whmcs-domain-search-wrapper .input-error {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    display: none;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .whmcs-domain-search-wrapper .title {
        font-size: 28px !important;
    }
    .whmcs-domain-search-wrapper .domain-search-form {
        flex-direction: column;
        padding: 8px;
    }
    .whmcs-domain-search-wrapper .domain-submit {
        width: 100%;
        margin: 6px 0 0;
        height: 46px !important;
    }
    .tld-pills {
        justify-content: center;
    }
}
