/**
 * Domain search standalone styles
 * Inspired by the provided mockup
 */
.domain-search-hero {
    padding: 48px 0 60px;
}

.domain-search-panel {
    max-width: 1100px;
    margin: 0 auto;
    margin-top: 24px;
    background: #0f3f8c url('../../../assets/img/uyg.svg') center/cover no-repeat;
    border-radius: 16px;
    padding: 28px 28px 16px;
    box-shadow: 0 18px 36px rgba(5, 30, 84, 0.3);
    color: #ffffff;
}

.domain-search-head {
    margin-bottom: 16px;
}

.domain-search-title {
    font-size: 26px;
    font-weight: 800;
    margin: 0;
}

.domain-search-offer {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #c5d5ff;
}

/* Domain Category Filters */
.domain-category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding: 12px 0;
}

.domain-category-btn {
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #0f3f8c;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(15, 63, 140, 0.24);
}

.domain-category-btn:hover {
    background: #10b9a4;
    color: #ffffff;
    border-color: #10b9a4;
    box-shadow: 0 8px 18px rgba(16, 185, 164, 0.3);
}

.domain-category-btn.active {
    background: #10b9a4;
    color: #ffffff;
    border-color: #10b9a4;
    box-shadow: 0 10px 24px rgba(11, 143, 124, 0.45);
}

.domain-category-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 164, 0.28), 0 6px 16px rgba(15, 63, 140, 0.24);
}

.domain-category-btn.active:focus-visible {
    box-shadow: 0 0 0 3px rgba(16, 185, 164, 0.28), 0 10px 24px rgba(11, 143, 124, 0.45);
}

.domain-category-btn i {
    font-size: 12px;
}

/* Domain Extensions Filter */
.domain-extensions-filter {
    background: rgba(12, 50, 117, 0.5);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.extension-group {
    display: none;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

.extension-group.active {
    display: grid;
}

.extension-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 14px;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    margin: 0;
}

.extension-checkbox:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.toggle-actions {
    display: none;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

.btn-toggle {
    background: none;
    border: none;
    color: #ffffff;
    padding: 0;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-toggle:hover {
    color: #d7f5f0;
}

.extension-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #10b9a4;
    cursor: pointer;
    margin: 0;
}

.extension-checkbox input[type="checkbox"]:checked + .extension-checkbox,
.extension-checkbox:has(input[type="checkbox"]:checked) {
    background: rgba(16, 185, 164, 0.2);
    border-color: rgba(16, 185, 164, 0.5);
}

.campaign-badge {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

.domain-search-input-row {
    margin-bottom: 12px;
}

.domain-search-input-wrap {
    display: flex;
    align-items: center;
    background: rgba(12, 50, 117, 0.45);
    border-radius: 14px;
    padding: 10px 10px 10px 16px;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.domain-search-input {
    flex: 1;
    background: #ffffff;
    border: 2px solid #0f3f8c;
    border-radius: 10px;
    height: 54px;
    font-size: 17px;
    color: #0f2240;
    padding: 0 14px;
    box-shadow: 0 10px 16px rgba(0, 0, 0, 0.08);
}

.domain-search-input::placeholder {
    color: #9fb3d9;
}

.domain-search-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(47, 139, 213, 0.25);
}

.domain-search-actions {
    display: flex;
    gap: 12px;
}

/* Increased specificity to override Bootstrap .btn styles */
.domain-search-actions .btn.btn-domain-search,
.domain-search-actions .btn.btn-domain-transfer {
    border-radius: 16px !important;
    height: 45px !important;
    min-height: 45px !important;
    padding: 0 32px !important;
    font-weight: 700 !important;
    font-size: 17px !important;
    letter-spacing: 0.2px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffffff !important;
    transition: all 0.25s ease;
    cursor: pointer;
    white-space: nowrap;
    text-shadow: none;
    border: none !important;
}

.domain-search-actions .btn.btn-domain-search {
    background: #1db9a8 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(29, 185, 168, 0.35) !important;
}

.domain-search-actions .btn.btn-domain-search:hover {
    background: #18a897 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(29, 185, 168, 0.45) !important;
    transform: translateY(-2px);
}

.domain-search-actions .btn.btn-domain-search:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(29, 185, 168, 0.3) !important;
}

.domain-search-actions .btn.btn-domain-search:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(29, 185, 168, 0.3), 0 4px 12px rgba(29, 185, 168, 0.35) !important;
}

.domain-search-actions .btn.btn-domain-search i {
    font-size: 18px;
}

.domain-search-actions .btn.btn-domain-transfer {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(8px);
}

.domain-search-actions .btn.btn-domain-transfer:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-2px);
}

.domain-search-actions .btn.btn-domain-transfer:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.domain-search-actions .btn.btn-domain-transfer:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.domain-search-captcha {
    margin: 6px 0 12px;
}

.domain-search-captcha p {
    color: #e4edff;
}

.domain-search-captcha #default-captcha-domainchecker {
    align-items: center;
}

.domain-search-captcha #default-captcha-domainchecker > .col-6 {
    display: flex;
    align-items: center;
}

.domain-search-captcha #default-captcha-domainchecker > .captchaimage {
    justify-content: flex-end;
}

.domainchecker-homepage-captcha,
.domainchecker-homepage-captcha .recaptcha-container {
    display: flex;
    justify-content: center;
}

.domainchecker-homepage-captcha .captchaimage img {
    height: 30px;
    border-radius: 10px;
    border: 1px solid #d7e3f7;
    box-shadow: 0 6px 16px rgba(5, 30, 84, 0.18);
}

.domainchecker-homepage-captcha input.form-control {
    border-radius: 10px;
    height: 30px;
}

.domain-search-tlds {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    background: #0c3275;
    padding: 14px 18px;
    border-radius: 12px;
    margin-top: 6px;
}

.domain-tld {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
}

.tld-name {
    font-size: 18px;
}

.tld-price {
    font-size: 14px;
    color: #cbe2ff;
}

.domain-search-footer {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.view-all-pricing {
    color: #c5d5ff;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.view-all-pricing:hover {
    color: #ffffff;
}

@media (max-width: 1199px) {
    .extension-group.active {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 1000px) {
    .domain-search-hero {
        background: none;
    }

    .domain-search-input-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .domain-search-input {
        width: 100%;
    }

    .domain-search-actions {
        width: 100%;
    }

    .domain-search-actions .btn.btn-domain-search,
    .domain-search-actions .btn.btn-domain-transfer {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 1000px) {
    .domain-search-input-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .domain-search-input {
        width: 100%;
    }

    .domain-search-actions {
        width: 100%;
        flex-direction: row;
    }

    .domain-search-actions .btn.btn-domain-search,
    .domain-search-actions .btn.btn-domain-transfer {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 991px) {
    .domain-search-hero {
        padding: 32px 0 42px;
    }

    .domain-search-panel {
        padding: 22px 16px 14px;
    }

    .domain-search-actions {
        width: 100%;
    }

    .domain-search-actions .btn.btn-domain-search,
    .domain-search-actions .btn.btn-domain-transfer {
        flex: 1;
        justify-content: center;
    }

    .domain-category-filters {
        gap: 6px;
        padding: 10px 0;
    }

    .domain-category-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .extension-group.active {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .extension-group.active {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .domain-search-title {
        font-size: 22px;
    }

    .domain-search-panel {
        padding: 18px 14px 12px;
        border-radius: 14px;
    }

    .domain-search-input-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .domain-search-input {
        width: 100%;
    }

    .domain-search-tlds {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .domain-category-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .domain-category-filters::-webkit-scrollbar {
        display: none;
    }

    .domain-category-btn {
        flex-shrink: 0;
        padding: 6px 10px;
        font-size: 11px;
    }

    .domain-extensions-filter {
        padding: 12px;
    }

    .extension-group {
        gap: 8px;
        max-height: 260px;
    }

    .extension-checkbox {
        padding: 6px 10px;
        font-size: 12px;
    }

    .extension-checkbox input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }

    .extension-group.active {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/**
 * -------------------------
 * Browse Products Section
 * -------------------------
 */
.browse-products-section {
    padding: 60px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.browse-products-section .section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0f2240;
    margin-bottom: 40px;
    text-align: center;
}

.browse-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    position: relative;
    background: #ffffff;
    border-radius: 18px;
    padding: 32px 28px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(15, 34, 64, 0.08);
    border: 1px solid rgba(15, 63, 140, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.product-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0f3f8c 0%, #10b9a4 100%);
    border-radius: 18px 18px 0 0;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(15, 63, 140, 0.15);
}

.product-card .product-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #0f3f8c 0%, #1e5bb5 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(15, 63, 140, 0.25);
}

.product-card .product-icon i {
    font-size: 28px;
    color: #ffffff;
}

.product-card .product-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f2240;
    margin-bottom: 10px;
}

.product-card .product-tagline {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.5;
}

.product-card .btn-browse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #0f3f8c 0%, #1e5bb5 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 12px;
    border: none;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 16px rgba(15, 63, 140, 0.2);
}

.product-card .btn-browse:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 63, 140, 0.3);
    color: #ffffff;
    text-decoration: none;
}

.product-card .btn-browse i {
    font-size: 14px;
}

/* Domain Cards - Special Styles */
.product-card.domain-card::before {
    background: linear-gradient(90deg, #10b9a4 0%, #0aa38f 100%);
}

.product-card.domain-card .product-icon {
    background: linear-gradient(135deg, #10b9a4 0%, #0aa38f 100%);
    box-shadow: 0 8px 20px rgba(16, 185, 164, 0.25);
}

.product-card.domain-card .btn-browse {
    background: linear-gradient(135deg, #10b9a4 0%, #0aa38f 100%);
    box-shadow: 0 6px 16px rgba(16, 185, 164, 0.2);
}

.product-card.domain-card .btn-browse:hover {
    box-shadow: 0 10px 24px rgba(16, 185, 164, 0.3);
}

/* Responsive */
@media (max-width: 991px) {
    .browse-products-section {
        padding: 48px 0;
    }

    .browse-products-section .section-title {
        font-size: 1.75rem;
        margin-bottom: 32px;
    }

    .browse-products-grid {
        gap: 20px;
    }
}

@media (max-width: 575px) {
    .browse-products-section {
        padding: 36px 0;
    }

    .browse-products-section .section-title {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }

    .browse-products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-card {
        padding: 24px 20px;
    }

    .product-card .product-icon {
        width: 56px;
        height: 56px;
    }

    .product-card .product-icon i {
        font-size: 24px;
    }
}
