/*
=============================================================
linkUwant Domain Search
Version: 1.0
Corporate responsive stylesheet
=============================================================
*/

:root {
    --brand-orange: #e56a2f;
    --brand-orange-dark: #c95220;

    --page-background: #eef2f6;
    --panel-background: #ffffff;
    --search-background: #263746;
    --column-background: #35495a;
    --border-color: #bdc9d5;
    --card-background: #f7fafc;

    --domain-purple: #68408c;
    --domain-purple-dark: #4f2f70;

    --visit-blue: #2f6f9f;
    --visit-blue-dark: #245779;

    --advertise-green: #547d35;
    --advertise-green-dark: #3f6127;

    --purchase-burgundy: #7f352d;
    --purchase-burgundy-dark: #642820;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 22px;
    background: var(--page-background);
    color: #111827;
    font-family: Arial, Helvetica, sans-serif;
}

.container {
    width: min(1500px, 100%);
    margin: 0 auto;
    padding: 20px;
    background: var(--panel-background);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.domain-search-header {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.1fr);
    align-items: center;
    gap: 28px;
    margin-bottom: 18px;
    padding: 4px 8px 14px;
    border-bottom: 2px solid #d4dce4;
}

.domain-search-brand {
    min-width: 0;
}

.domain-search-logo {
    display: block;
    width:250px !important;
    max-width:250px !important;
    height:auto;
}

.domain-search-header h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 700;
    line-height: 1.08;
    text-align: center;
}

.search-bar {
    padding: 16px;
    border-radius: 8px;
    background: var(--search-background);
    color: #ffffff;
}

.search-row {
    display: grid;
    grid-template-columns:
        minmax(210px, 1fr)
        minmax(210px, 1fr)
        minmax(210px, 1fr)
        minmax(145px, 175px);
    gap: 14px;
    align-items: end;
}

.search-group {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.search-group label {
    font-weight: bold;
}

.search-group select,
.search-button {
    width: 100%;
    height: 42px;
    padding: 8px 10px;
    border: 0;
    border-radius: 5px;
    font-size: 15px;
}

.search-group select:disabled {
    cursor: not-allowed;
    background: #e5e7eb;
    color: #6b7280;
}

.search-button {
    background: linear-gradient(135deg, var(--advertise-green), var(--advertise-green-dark));
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
}

.search-button:hover {
    filter: brightness(0.92);
}

.scope-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 28px;
    margin-top: 15px;
}

.scope-section {
    min-width: 0;
}

.scope-right {
    display: flex;
    justify-content: flex-start;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    cursor: pointer;
    line-height: 1.25;
}

.checkbox-label input {
    width: 19px;
    height: 19px;
    margin: 0;
    flex: 0 0 auto;
}

.checkbox-text {
    white-space: nowrap;
    font-weight: 600;
}

.results-header {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    margin-top: 20px;
    padding: 14px 16px;
    border: 1px solid var(--brand-orange-dark);
    border-radius: 10px;
    background:rgba(229,106,47,.50) !important;
    color: #111111;
    box-shadow: 0 3px 10px rgba(124, 62, 26, 0.18);
}

.results-message {
    display: grid;
    gap: 4px;
}

.results-message strong {
    font-size: 18px;
}

.results-message span {
    font-size: 15px;
}

.page-count {
    align-self: center;
    white-space: nowrap;
    font-weight: bold;
}

.results-scroll {
    width: 100%;
    margin-top: 14px;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 7px;
}

/*
The minimum width protects long city and domain names.
On narrower desktop windows, the results area scrolls horizontally
instead of hiding or cutting off the full domain name.
*/
.results-grid {
    display: grid;
    grid-template-columns:
        42px
        minmax(170px, 1.15fr)
        minmax(285px, 2.15fr)
        116px
        132px
        196px;
    gap: 8px;
    align-items: center;
    min-width: 1085px;
}

.results-grid-header {
    padding: 10px;
    background: var(--column-background);
    color: #ffffff;
    font-weight: bold;
    text-align: center;
}

.results-grid-header a {
    color: #ffffff;
    text-decoration: none;
}

.results-grid-header a:hover {
    text-decoration: underline;
}

.result-row {
    min-height: 64px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-color);
}

.result-row:last-child {
    border-bottom: 0;
}

.result-row:nth-child(odd) {
    background: #f8fafc;
}

.result-number {
    text-align: center;
    font-weight: bold;
}

.area-cell,
.domain-cell,
.action-button {
    font-family:
        "Arial Narrow",
        "Aptos Narrow",
        "Roboto Condensed",
        "Helvetica Neue Condensed",
        Arial,
        sans-serif;
    font-stretch: condensed;
}

.area-cell {
    min-width: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.18;
    text-align: left;
}

.area-line {
    display: block;
    white-space: nowrap;
}

.domain-cell,
.action-cell {
    min-width: 0;
}

.result-actions {
    display: contents;
}

.domain-button,
.action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 5px;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    line-height: 1.1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.domain-button:hover,
.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 11px rgba(0, 0, 0, 0.22);
}

.domain-button {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    width: 100%;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--domain-purple), var(--domain-purple-dark));
    font-size: clamp(12px, 1vw, 14px);
    white-space: nowrap;
}

.domain-view {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 6px;
    border-right: 1px solid rgba(255, 255, 255, 0.45);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.domain-name {
    min-width: 0;
    padding: 7px 9px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.action-button {
    width: 100%;
    padding: 7px 6px;
    font-size: 12px;
    white-space: nowrap;
}

.visit-button {
    background: linear-gradient(135deg, var(--visit-blue), var(--visit-blue-dark));
}

.advertise-button {
    background: linear-gradient(135deg, var(--advertise-green), var(--advertise-green-dark));
}

.buy-button {
    background: linear-gradient(
        135deg,
        var(--purchase-burgundy),
        var(--purchase-burgundy-dark)
    );
}

.no-results {
    min-width: 1085px;
    padding: 28px;
    text-align: center;
    font-weight: bold;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.pagination a,
.pagination span {
    min-width: 36px;
    padding: 7px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    color: #111827;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
}

.pagination a:hover {
    background: #e5e7eb;
}

.pagination .current-page {
    border-color: var(--brand-orange-dark);
    background: var(--brand-orange);
    color: #111111;
}

.pagination .pagination-gap {
    border: 0;
}

.loading-cities {
    position: relative;
}

.loading-cities::after {
    content: "Loading...";
    position: absolute;
    right: 10px;
    bottom: 11px;
    color: #6b7280;
    font-size: 12px;
    pointer-events: none;
}


@media (min-width: 1180px) {
    .area-cell {
        text-align: center;
    }
}

@media (max-width: 1179px) {
    .scope-options {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .checkbox-text {
        white-space: normal;
    }

    .results-scroll {
        overflow: visible;
        border: 0;
    }

    .results-grid-header {
        display: none;
    }

    .results-grid.result-row {
        display: grid;
        grid-template-columns: 42px minmax(155px, 0.8fr) minmax(0, 2.2fr);
        grid-template-areas:
            "number area domain"
            "number area actions";
        gap: 9px 12px;
        min-width: 0;
        margin-bottom: 16px;
        padding: 12px;
        border: 2px solid var(--border-color);
        border-radius: 8px;
        background: var(--card-background);
        box-shadow: 0 2px 7px rgba(0, 0, 0, 0.08);
    }

    .result-number {
        grid-area: number;
        align-self: center;
        text-align: center;
    }

    .area-cell {
        grid-area: area;
        align-self: center;
    }

    .domain-cell {
        grid-area: domain;
    }

    .result-actions {
        grid-area: actions;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .result-row > div::before,
    .result-actions > div::before {
        content: none;
    }

    .domain-button,
    .action-button {
        width: 100%;
    }

    .no-results {
        min-width: 0;
        border: 1px solid var(--border-color);
        border-radius: 7px;
    }
}


@media (max-width: 949px) and (min-width: 751px) {
    .search-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Keep tablet/laptop area centered */
@media (min-width:768px) and (max-width:1225px){
    .area-cell{
        text-align:center !important;
    }
}

@media (max-width: 750px) {
    .domain-search-header {
        grid-template-columns: 1fr;
        gap: 10px;
        padding-bottom: 12px;
    }

    .domain-search-logo{
        width:150px !important;
        max-width:150px !important;
    }
    .domain-search-header h1 {
        font-size: clamp(25px, 8vw, 36px);
    }

    body {
        padding: 10px;
    }

    .container {
        padding: 14px;
    }

    .search-row {
        grid-template-columns: 1fr;
    }

    .scope-options {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .checkbox-text {
        white-space: normal;
    }

    .results-header {
        display: grid;
        gap: 10px;
    }

    .page-count {
        justify-self: start;
    }

    .results-grid.result-row {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas:
            "number area"
            "domain domain"
            "actions actions";
        column-gap: 10px;
        row-gap: 10px;
    }

    .result-number {
        align-self: center;
        text-align: left;
        font-size: 16px;
    }

    .result-number::before {
        content: "# ";
    }

    .area-cell {
        align-self: center;
        text-align: left;
        white-space: nowrap;
    }

    .area-line {
        display: inline;
        white-space: nowrap;
    }

    .area-line + .area-line::before {
        content: " ";
    }

    .result-actions {
        grid-template-columns: 1fr;
    }

    .domain-button {
        white-space: normal;
    }

    .domain-name {
        overflow-wrap: anywhere;
        text-overflow: clip;
    }
}

/*
=============================================================
DOMAIN SEARCH VERSION 1.2 FINAL RELEASE
=============================================================
*/

/*
The Search button keeps its original shape and behavior but now
uses the established linkUwant orange.
*/

.search-button,
button.search-button,
input.search-button,
.domain-search-button {
    border-color: var(--brand-orange-dark);
    background: linear-gradient(
        135deg,
        var(--brand-orange),
        var(--brand-orange-dark)
    );
}

/*
Desktop results use five matching columns:
1. Number
2. Area
3. Domain Name
4. Advertising
5. Acquisition Options

The header and result rows use identical column measurements so
the labels line up directly over their buttons.
*/

.results-grid {
    grid-template-columns:
        42px
        minmax(180px, 1.05fr)
        minmax(390px, 2.55fr)
        minmax(190px, 1.05fr)
        minmax(255px, 1.35fr);
    min-width: 1125px;
}

.results-grid-header {
    align-items: stretch;
}

.results-grid-header > div {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.results-grid-header > div:nth-child(2) {
    justify-content: center;
}

.results-grid-header > div:nth-child(3) {
    justify-content: center;
}

.results-grid-header > div:nth-child(4),
.results-grid-header > div:nth-child(5) {
    padding-left: 4px;
    padding-right: 4px;
}

/*
The purple VIEW button uses the entire Domain Name column.
The domain name is slightly larger on desktop screens.
*/

.domain-button {
    width: 100%;
    min-height: 50px;
}

.domain-view {
    font-size: 12px;
}

.domain-name {
    font-size: 16px;
}

/*
Advertising is blue.
Acquisition Options is green.
The existing button shape, shadow, and hover effect remain.
*/

.advertise-button {
    min-height: 50px;
    padding: 8px 10px;
    background: linear-gradient(
        135deg,
        var(--visit-blue),
        var(--visit-blue-dark)
    );
    font-size: 15px;
}

.buy-button,
.acquisition-button {
    min-height: 50px;
    padding: 8px 10px;
    background: linear-gradient(
        135deg,
        var(--advertise-green),
        var(--advertise-green-dark)
    );
    font-size: 15px;
    white-space: nowrap;
}

/*
Protect the orange results summary from collapsing into a narrow
column at any screen width.
*/

.results-header {
    width: 100%;
    min-width: 0;
}

.results-message {
    width: 100%;
    min-width: 0;
}

.results-message strong,
.results-message span {
    display: block;
    max-width: 100%;
}

/*
=============================================================
TABLET AND MEDIUM-WIDTH SCREENS
=============================================================
The purple Domain button fills the top of the right-side area.
Advertising and Acquisition Options share the row below.
*/

@media (max-width: 1179px) {
    .results-grid.result-row {
        grid-template-columns:
            42px
            minmax(155px, 0.8fr)
            minmax(0, 2.2fr);
        grid-template-areas:
            "number area domain"
            "number area actions";
    }

    .domain-cell {
        width: 100%;
        min-width: 0;
    }

    .result-actions {
        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        min-width: 0;
    }

    .action-cell {
        width: 100%;
        min-width: 0;
    }

    .domain-button,
    .action-button {
        width: 100%;
        max-width: none;
    }

    .domain-button {
        min-height: 48px;
    }

    .domain-name {
        font-size: 15px;
    }

    .advertise-button,
    .buy-button,
    .acquisition-button {
        min-height: 48px;
        padding-left: 10px;
        padding-right: 10px;
        font-size: 15px;
    }
}

/*
=============================================================
PHONE SCREENS
=============================================================
The summary uses the full orange box width.
Global, Worldwide displays on one line.
The purple button fills the row.
Advertising and Acquisition Options each fill a complete row.
*/

@media (max-width: 750px) {
    .results-header {
        display: block;
        width: 100%;
        padding: 14px 16px;
    }

    .results-message {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .results-message strong {
        width: 100%;
        font-size: 18px;
        line-height: 1.3;
    }

    .results-message span {
        width: 100%;
        margin-top: 6px;
        font-size: 15px;
        line-height: 1.35;
    }

    .page-count {
        width: 100%;
        margin-top: 10px;
        white-space: normal;
        text-align: left;
    }

    .results-grid.result-row {
        width: 100%;
        grid-template-columns:
            auto
            minmax(0, 1fr);
        grid-template-areas:
            "number area"
            "domain domain"
            "actions actions";
    }

    .area-cell {
        min-width: 0;
        white-space: normal;
    }

    .area-line {
        display: inline;
        white-space: nowrap;
    }

    .area-line + .area-line::before {
        content: " ";
    }

    .domain-cell,
    .result-actions,
    .action-cell {
        width: 100%;
        min-width: 0;
    }

    .domain-button {
        width: 100%;
        min-height: 48px;
    }

    .domain-name {
        font-size: 15px;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .result-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .advertise-button,
    .buy-button,
    .acquisition-button {
        width: 100%;
        max-width: none;
        min-height: 48px;
        padding: 10px 12px;
        font-size: 16px;
        white-space: normal;
    }
}

/*
=============================================================
DOMAIN SEARCH VERSION 1.2 RESPONSIVE STYLE UPDATE
=============================================================

/*
City/state and other Area values remain centered on desktop.
*/

.area-cell {
    text-align: center;
}

/*
Long domain names must remain inside the purple button.

The VIEW section remains visible while the domain-name section
shrinks and displays an ellipsis.
*/

.domain-button {
    grid-template-columns: 50px minmax(0, 1fr);
    width: 100%;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.domain-view {
    min-width: 0;
}

.domain-name {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow-wrap: normal;
}

/*
=============================================================
DESKTOP TO TABLET BREAKPOINT
=============================================================
Desktop:
    1226px and wider

Laptop and tablet:
    768px through 1225px
=============================================================
*/

@media (max-width: 1225px) {
    .results-scroll {
        overflow: visible;
        border: 0;
    }

    .results-grid-header {
        display: none;
    }

    .results-grid.result-row {
        display: grid;
        grid-template-columns:
            42px
            minmax(155px, 0.8fr)
            minmax(0, 2.2fr);
        grid-template-areas:
            "number area domain"
            "number area actions";
        gap: 9px 12px;
        width: 100%;
        min-width: 0;
        margin-bottom: 16px;
        padding: 12px;
        border: 2px solid var(--border-color);
        border-radius: 8px;
        background: var(--card-background);
        box-shadow: 0 2px 7px rgba(0, 0, 0, 0.08);
    }

    .result-number {
        grid-area: number;
        align-self: center;
        text-align: center;
    }

    /*
    Laptop and tablet Area values are centered.
    This includes approximately 1024px and 768px screens.
    */

    .area-cell {
        grid-area: area;
        align-self: center;
        text-align: center;
    }

    .domain-cell {
        grid-area: domain;
        width: 100%;
        min-width: 0;
    }

    .result-actions {
        grid-area: actions;
        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        min-width: 0;
    }

    .action-cell {
        width: 100%;
        min-width: 0;
    }

    .domain-button,
    .action-button {
        width: 100%;
        max-width: none;
    }

    .domain-name {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow-wrap: normal;
    }

    .no-results {
        min-width: 0;
        border: 1px solid var(--border-color);
        border-radius: 7px;
    }
}

/*
=============================================================
MOBILE
=============================================================
Mobile:
    767px and below

The Area value becomes left aligned.
The purple domain name still uses ellipsis.
=============================================================
*/

@media (max-width: 767px) {
    .domain-search-logo {
        width: min(211px, 100%);
        margin: 0 auto;
    }

    .domain-search-header {
        grid-template-columns: 1fr;
        gap: 10px;
        padding-bottom: 12px;
    }

    body {
        padding: 10px;
    }

    .container {
        padding: 14px;
    }

    .search-row {
        grid-template-columns: 1fr;
    }

    .scope-options {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .results-header {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .results-message {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .page-count {
        width: 100%;
        margin-top: 10px;
        justify-self: start;
        white-space: normal;
        text-align: left;
    }

    .results-grid.result-row {
        grid-template-columns:
            auto
            minmax(0, 1fr);
        grid-template-areas:
            "number area"
            "domain domain"
            "actions actions";
        column-gap: 10px;
        row-gap: 10px;
    }

    .result-number {
        align-self: center;
        text-align: left;
        font-size: 16px;
    }

    .result-number::before {
        content: "# ";
    }

    /*
    Mobile Area values are left aligned.
    Global, Worldwide and city/state values display inline.
    */

    .area-cell {
        align-self: center;
        min-width: 0;
        text-align: left;
        white-space: normal;
    }

    .area-line {
        display: inline;
        white-space: nowrap;
    }

    .area-line + .area-line::before {
        content: " ";
    }

    .domain-cell,
    .result-actions,
    .action-cell {
        width: 100%;
        min-width: 0;
    }

    .domain-button {
        width: 100%;
        min-width: 0;
        white-space: nowrap;
    }

    .domain-name {
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow-wrap: normal;
    }

    .result-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .advertise-button,
    .buy-button,
    .acquisition-button {
        width: 100%;
        max-width: none;
        white-space: normal;
    }
}

/*
=============================================================
DOMAIN SEARCH VERSION 1.3 - PHASE 2 SEARCH FORM
=============================================================
*/

.search-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.search-group input,
.search-group select {
    width: 100%;
    height: 42px;
    padding: 8px 10px;
    border: 0;
    border-radius: 5px;
    background: #ffffff;
    color: #111827;
    font-size: 15px;
}

.search-group input::placeholder {
    color: #6b7280;
    opacity: 1;
}

.scope-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 28px;
    margin-top: 15px;
}

.scope-left {
    display: flex;
    justify-content: flex-start;
    min-width: 0;
}

.scope-right {
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

.search-button-row {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-top: 16px;
}

.search-button-row .search-button {
    width: 200px;
    flex: 0 0 200px;
}

/*
Laptop and tablet: four fields become two equal columns.
*/

@media (min-width: 768px) and (max-width: 1225px) {
    .search-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .scope-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .scope-left {
        justify-content: flex-start;
    }

    .scope-right {
        justify-content: flex-end;
    }
}

/*
Mobile: fields and checkboxes stack; Search fills the row.
*/

@media (max-width: 767px) {
    .search-row {
        grid-template-columns: 1fr;
    }

    .scope-options {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .scope-left,
    .scope-right {
        justify-content: flex-start;
        width: 100%;
    }

    .search-button-row {
        justify-content: center;
    }

    .search-button-row .search-button {
        width: 100%;
        flex-basis: 100%;
    }
}

/*
=============================================================
DOMAIN SEARCH VERSION 1.3 - FINAL SOURCE OVERRIDES
=============================================================
*/

/* Logo: 250px on normal screens; 150px only at 320px and below. */
.domain-search-logo {
    width: min(250px, 100%) !important;
    max-width: 250px !important;
    height: auto;
}

/* Four equal fields on desktop. */
.search-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.search-group input,
.search-group select {
    width: 100%;
    height: 42px;
    padding: 8px 10px;
    border: 0;
    border-radius: 5px;
    background: #ffffff;
    color: #111827;
    font-size: 15px;
}

/* Keep the Search button on its own row. */
.search-button-row {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-top: 16px;
}

.search-button-row .search-button {
    width: 200px;
    flex: 0 0 200px;
    border-color: var(--brand-orange-dark);
    background: linear-gradient(
        135deg,
        var(--brand-orange),
        var(--brand-orange-dark)
    );
}

/* Checkbox placement on desktop, laptop, and tablet. */
.scope-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 28px;
    margin-top: 15px;
}

.scope-left {
    display: flex;
    justify-content: flex-start;
    min-width: 0;
}

.scope-right {
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

/* Results header remains a lighter 50-percent orange. */
.results-header {
    background: rgba(229, 106, 47, 0.50) !important;
}

/* Area is centered except on mobile. */
.area-cell {
    text-align: center !important;
}

/* Domain names stay on one line and end in an ellipsis. */
.domain-button {
    grid-template-columns: 50px minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    white-space: nowrap !important;
}

.domain-name {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow-wrap: normal !important;
}

/* Laptop and tablet: two equal fields per row. */
@media (min-width: 768px) and (max-width: 1225px) {
    .search-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .scope-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .scope-left {
        justify-content: flex-start;
    }

    .scope-right {
        justify-content: flex-end;
    }

    .area-cell {
        text-align: center !important;
    }
}

/* Mobile: stack all fields and both checkbox sections. */
@media (max-width: 767px) {
    .domain-search-logo {
        width: min(250px, 100%) !important;
        max-width: 250px !important;
        margin: 0 auto;
    }

    .search-row {
        grid-template-columns: 1fr;
    }

    .scope-options {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .scope-left,
    .scope-right {
        justify-content: flex-start;
        width: 100%;
    }

    .search-button-row {
        justify-content: center;
    }

    .search-button-row .search-button {
        width: 100%;
        flex-basis: 100%;
    }

    .area-cell {
        text-align: left !important;
    }

    .domain-button,
    .domain-name {
        white-space: nowrap !important;
    }
}

/* Small 320px phones only. */
@media (max-width: 320px) {
    .domain-search-logo {
        width: 150px !important;
        max-width: 150px !important;
    }
}

