/* Raleway and Open Sans Font */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --font-family: "Open Sans", serif;

    /* Colors */
    --primary-color: #49D3A2;
    --secondary-color: #04100C;
    --tertiary-color: #FFFFFF;
    --stroke-color: #CEF3E7;
    --gray-color: #8A8A8A;
    --light-gray-color: #ECEDED;
    --light-color: #F0F2F5;
    --stroke-color-2: #DFDFDF;
    --light-green-color: #E6FFF7;
    --btn-hover: #2f9e77;
    --bg-color: #effbf7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure domain names wrap in grid view */
.domain-finder-outer-wrapper .prefix-suffix-results.grid-view .domain-result .domain-name {
    word-break: break-all; /* Break long words at any point */
    overflow-wrap: break-word; /* Break words only if necessary */
    white-space: normal; /* Allow text to wrap to next line */
    max-width: 100%; /* Stay within container width */
    text-align: center; /* Maintain centered text */
}

.domain-finder-outer-wrapper body {
    font-family: var(--font-family);
    color: var(--secondary-color);
    line-height: 1.6;
    background-color: var(--tertiary-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 12px;
}

/* Typography */
.h1 {
    font-size: 48px;
    line-height: 58px;
    font-weight: 700;
    margin-top: 32px;
}

.domain-finder-outer-wrapper .cta-text {
    font-size: 17px;
    line-height: 27px;
    font-weight: 600;
    letter-spacing: -0.01rem;
}

.domain-finder-outer-wrapper .title {
    font-size: 18px;
    line-height: 27px;
    font-family: "Raleway", serif;
    font-weight: 600;
}

.domain-finder-outer-wrapper .title2 {
    font-size: 16px;
    line-height: 27px;
    font-family: "Raleway", serif;
    font-weight: 600;
}

.domain-finder-outer-wrapper .title3 {
    font-size: 14px;
    line-height: 27px;
    font-family: "Raleway", serif;
    font-weight: 600;
}

.domain-finder-outer-wrapper .body-text {
    font-size: 12px;
    line-height: 27px;
    font-family: "Raleway", serif;
    font-weight: 600;
}

.domain-finder-outer-wrapper .body-text2 {
    font-size: 10px;
    line-height: 27px;
    font-family: "Raleway", serif;
    font-weight: 600;
}

/* End of Typography */

.outer-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
}

.domain-finder-outer-wrapper .main-wrapper {
    max-width: 100%;
    width: 820px;
}

.domain-finder-outer-wrapper h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.domain-finder-outer-wrapper .highlight {
    color: var(--primary-color);
}

.domain-finder-outer-wrapper .search-container {
    display: flex;
    gap: 1rem;
    margin: 0 auto 1.2rem;
    padding: 0.3rem;
    background: var(--tertiary-color);
    border-radius: 50px;
    border: 5px solid var(--stroke-color);

}

.domain-finder-outer-wrapper .search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    outline: none;
    background: transparent;
    color: var(--gray-color);
    border-radius: 40px;
}

.domain-finder-outer-wrapper .search-button {
    background: var(--primary-color);
    color: var(--tertiary-color);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.domain-finder-outer-wrapper .search-button:hover,
.search-button:focus {
    background: var(--btn-hover);
}

.domain-finder-outer-wrapper .grid-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.domain-finder-outer-wrapper .filter-group-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    margin-right: auto;
}

.domain-finder-outer-wrapper .filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.domain-finder-outer-wrapper .filter-group label {
    white-space: nowrap;
}

.domain-finder-outer-wrapper .df-custom-select {
    position: relative;
    user-select: none;
    min-width: 160px;
}

.domain-finder-outer-wrapper .select-selected {
    background-color: var(--tertiary-color);
    padding: 0.3rem 2.5rem 0.3rem 1rem;
    border: 2px solid var(--stroke-color);
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    z-index: 11;
    line-height: 28px;
}

.domain-finder-outer-wrapper .select-selected::after {
    content: '';
    position: absolute;
    right: 2px;
    top: 2px;
    bottom: 2px;
    height: calc(100% - 4px);
    aspect-ratio: 1/1;
    background: var(--primary-color);
    border-radius: 8px;
}

.domain-finder-outer-wrapper .select-selected::before {
    content: '';
    position: absolute;
    right: 12px;
    top: calc(50% + 3px);
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-top-color: var(--tertiary-color);
    z-index: 1;
}

.domain-finder-outer-wrapper .select-options {
    position: absolute;
    top: calc(100% - 16px);
    left: 0;
    right: 0;
    background: var(--bg-color);
    border: 1px solid var(--stroke-color);
    border-radius: 0 0 20px 20px;
    display: none;
    z-index: 10;
    overflow: hidden;
    padding-top: 15px;
}

.domain-finder-outer-wrapper .df-custom-select.active .select-options {
    display: block;
}

.domain-finder-outer-wrapper .option {
    padding: 0.3rem 1rem;
    cursor: pointer;
    border-left: 4px solid transparent;
    border-bottom: 1px solid var(--stroke-color);
}

.domain-finder-outer-wrapper .option:hover {
    background: var(--light-gray);
    border-left-color: var(--btn-hover);
}

.domain-finder-outer-wrapper .view-toggle {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.domain-finder-outer-wrapper .toggle-btn {
    background: var(--tertiary-color);
    border: 1px solid var(--stroke-color);
    height: 100%;
    cursor: pointer;
    border-radius: 4px;
    padding: 2px;
    display: flex;
}
.domain-finder-outer-wrapper .toggle-btn:hover{
	background-color:white;
}

.domain-finder-outer-wrapper .toggle-btn.active {
    background: var(--primary-color);
    color: var(--tertiary-color);
    border-color: var(--primary-color);
}

.domain-finder-outer-wrapper .toggle-btn:focus,
.toggle-btn:hover {
    background-color: var(--tertiary-color);
}

.domain-finder-outer-wrapper .toggle-btn.active:focus,
.toggle-btn.active:hover {
    background-color: var(--primary-color)
}

.domain-finder-outer-wrapper button.toggle-btn svg {

    color: var(--secondary-color);
}

.domain-finder-outer-wrapper button.toggle-btn.active svg {
    color: var(--tertiary-color);
}

.domain-finder-outer-wrapper .results,
.results-grid {
    margin-bottom: 2rem;
}


.domain-finder-outer-wrapper .domain-result,
.domain-result-more {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 0.2rem 0.2rem 1.7rem;
    background: var(--light-green-color);
    border-radius: 78px;
}


.domain-finder-outer-wrapper .availability {
    color: var(--gray-color);
}

.domain-finder-outer-wrapper .purchase-btn {
    background: var(--primary-color);
    color: var(--tertiary-color);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 90px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    gap: 12px;
    align-items: center;
}

.domain-finder-outer-wrapper .purchase-btn:hover {
    background: var(--btn-hover);
}

.domain-finder-outer-wrapper .more-options {
    text-align: center;
    margin: 2rem 0 1.3rem;
}

.domain-finder-outer-wrapper .results-grid-wrapper {
    display: flex;
    gap: 12px;
    width: 100%;
}

.domain-finder-outer-wrapper .results-grid {
    background-color: var(--light-color);
    border-radius: 18px;
    flex-grow: 1;
    width: 450px;
    max-width: 100%;
}

.domain-finder-outer-wrapper .domain-result-more {
    background-color: transparent;
    border-bottom: 2px solid var(--stroke-color-2);
    border-radius: 0;
    padding: 0.3rem 0.3rem 0.3rem 1.7rem;
    margin-bottom: 0;
}

.domain-finder-outer-wrapper .domain-result-more .purchase-btn {
    border-radius: 12px;
    border: 2px solid var(--tertiary-color);
}

.domain-finder-outer-wrapper .domain-result-more:last-child {
    border-bottom: none;
}

.domain-finder-outer-wrapper .load-more {
    display: block;
    margin: 1rem auto 2rem;
    background: var(--primary-color);
    color: var(--tertiary-color);
    border: 2px solid var(--light-gray-color);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    gap: 6px;
}

.domain-finder-outer-wrapper .load-more:hover {
    background: var(--btn-hover);
}

/* Grid and List View Styles */
/* Grid View */
.grid-view {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 12px;
    /* background: var(--light-color); */
}
/* List View */
.list-view {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.domain-finder-outer-wrapper .domain-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 0.2rem 0.2rem 1.7rem;
    background: var(--light-green-color);
    border-radius: 78px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* .domain-finder-outer-wrapper .domain-result:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
} */

.domain-finder-outer-wrapper .domain-result.grid-view {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
}

.domain-finder-outer-wrapper .domain-result.list-view {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    padding: 0.5rem 1rem;
}

/* .domain-finder-outer-wrapper .domain-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 0;
} */

.domain-finder-outer-wrapper .domain-info .availability {
    color: var(--gray-color);
/* 	font-size: 14px;    
    margin-bottom: 0.5rem; */
}

.domain-finder-outer-wrapper .domain-info .domain-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0;
}

.domain-finder-outer-wrapper .purchase-btn {
    background: var(--primary-color);
    color: var(--tertiary-color);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
/*     font-size: 14px; */
    text-decoration: none;
    white-space: nowrap;
}

.domain-finder-outer-wrapper .purchase-btn:hover {
    background: var(--btn-hover);
}

.domain-finder-outer-wrapper .purchase-btn i {
    font-size: 16px;
}


/* Best Match Section (Always in List View) */
.domain-finder-outer-wrapper .results-section.list-view .domain-result {
    display: flex;
    width: 100%;
    margin-bottom: 10px;
	min-height: 59px;
}

/* More Available Options Section (Grid/List View Toggle) */
/* .domain-finder-outer-wrapper .prefix-suffix-results.grid-view .domain-result {
    display: inline-block;
    width: 100%;
    margin: 1%;
}
 */
/* .domain-finder-outer-wrapper .prefix-suffix-results.list-view .domain-result {
    display: flex;
    width: 100%;
    margin-bottom: 10px;
} */

.domain-finder-outer-wrapper .prefix-suffix-results.list-view .domain-result {
    display: flex;
    width: 100%;
    margin-bottom: 0;
    background-color: var(--light-color);
    border-bottom: 2px solid var(--stroke-color-2);
    border-radius: 0;
    padding: 0.3rem 0.3rem 0.3rem 1.7rem;
    margin-bottom: 0;
}

.domain-finder-outer-wrapper .prefix-suffix-results .domain-result:last-child {
    border-bottom: none;
}

.domain-finder-outer-wrapper .load-more {
    display: block;
    margin: 1rem auto 2rem;
    background: var(--primary-color);
    color: var(--tertiary-color);
    border: 2px solid var(--light-gray-color);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    gap: 6px;
}

.domain-finder-outer-wrapper .load-more:hover {
    background: var(--btn-hover);
}

.domain-finder-outer-wrapper .load-more .rotating {
    animation: rotate 1s linear infinite;
}



.domain-finder-outer-wrapper .prefix-suffix-results .purchase-btn {
    border-radius: 12px;
    border: 2px solid var(--tertiary-color);
}


.domain-finder-outer-wrapper .prefix-suffix-results .domain-info.title {
    font-size: 14px;
    line-height: 27px;
    font-family: "Raleway", serif;
    font-weight: 600;
    white-space: nowrap;
}





.domain-finder-outer-wrapper .prefix-suffix-results .domain-info .domain-name {
    font-size: inherit;
}


.prefix-suffix-results{
    overflow: hidden;
	border-radius: 18px;
}

.prefix-suffix-results.grid-view .availability {
    display: none;
}



.domain-finder-outer-wrapper .prefix-suffix-results.grid-view .domain-result {
    width: 100%;
    background: var(--light-color);
    padding: 0.3rem 0.3rem 0.3rem 0.7rem;
    border-radius: 18px;
    gap: 12px;
}


@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}










@media (max-width: 768px) {
    .domain-finder-outer-wrapper .grid-view {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }

    .domain-finder-outer-wrapper .domain-result {
        padding: 0.8rem;
    }

    .domain-finder-outer-wrapper .domain-info .domain-name {
        font-size: 16px;
    }

    .domain-finder-outer-wrapper .purchase-btn {
        padding: 0.6rem 1rem;
        font-size: 12px;
    }

    .domain-finder-outer-wrapper .purchase-btn i {
        font-size: 14px;
    }
	
	.domain-finder-outer-wrapper .filter-group label {
    	display: none;
	}
	
	.domain-finder-outer-wrapper .view-toggle {
    display: none;
}
}
/* Loading Spinner Styles */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #0073e6; /* Change color as needed */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}
.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader p {
    margin-top: 10px;
    font-size: 16px;
    color: #333;
}