/* Reset & basic styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    color: #333;
    line-height: 1.6;
    background-image: url('/images/landing_background_white.png');
    background-size: contain;
    background-attachment: fixed;
}

/* Navbar styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #fff;
}

.nav-link,
.nav-button {
    font-size: 16px;
    color: #333;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 20px;
}

.nav-link:hover,
.nav-button:hover {
    color: #007aff;
}

.nav-right {
    display: flex;
    align-items: center;
}

.nav-left .brand {
    color: red;
    text-decoration: none;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    max-width: 400px;
    text-align: center;
    border-radius: 4px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

#login-form input[type="email"] {
    width: 80%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#login-form button {
    padding: 10px 20px;
    background: #007aff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* SitesAI Main Styles */
.sitesai-container {
    min-height: calc(100vh - 81px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px 20px 40px 20px;
}

.sitesai-content {
    max-width: 750px;
    width: 100%;
    text-align: center;
}

.sitesai-header {
    margin-bottom: 15px;
}

.sitesai-header h1 {
    font-size: 3.5rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
}

.sitesai-header p {
    font-size: 1.3rem;
    color: #666;
    margin: 15px 0;
    line-height: 1.5;
}

.limit-text {
    font-size: 1.0rem;
    color: #888;
    font-style: italic;
}

.sitesai-input-section {
    margin-bottom: 30px;
}

.address-input-container {
    max-width: 750px;
    margin: 0 auto;
}

#search-container {
    width: 100%;
}

/* Google Places Autocomplete Input Styling */
.google-autocomplete-input {
    width: 100%;
    /* padding: 16px 20px; */
    font-size: 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.google-autocomplete-input:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.google-autocomplete-input::placeholder {
    color: #999;
    text-align: left;
}

/* Google Places Autocomplete dropdown styling */
.pac-container {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 4px;
    text-align: left !important;
}

.pac-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    text-align: left !important;
}

.pac-item:last-child {
    border-bottom: none;
}

.pac-item:hover {
    background-color: #f8f9fa;
}

.pac-item-selected {
    background-color: #007aff;
    color: white;
}

.pac-matched {
    font-weight: 600;
}

/* Ensure the search container doesn't inherit center alignment */
.address-input-container {
    text-align: left !important;
}

.sitesai-addresses-section {
    text-align: left;
}

.sitesai-addresses-section h3 {
    font-size: 1.6rem;
    color: #333;
    margin-bottom: 25px;
    font-weight: 600;
    text-align: center;
}

.addresses-list {
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    background-color: #fff;
    min-height: 220px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.empty-state {
    text-align: center;
    color: #999;
    padding: 70px 20px;
    font-style: italic;
    margin: 0;
    font-size: 1.2rem;
}

.address-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: background-color 0.3s ease;
}

.address-item:last-child {
    border-bottom: none;
}

.address-item:hover {
    background-color: #f8f9fa;
}

.address-info {
    flex: 1;
    min-width: 0;
}

.address-main {
    font-weight: 500;
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 0;
    word-wrap: break-word;
}

.address-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.custom-name-input {
    width: 180px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.custom-name-input:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}

.site-status-select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    min-width: 100px;
}

.site-status-select:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}

.site-status-select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Status badges in saved sites table */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.status-badge.status-prospect {
    background-color: #e3f2fd;
    color: #1976d2;
}

.status-badge.status-active {
    background-color: #e8f5e9;
    color: #388e3c;
}

.custom-name-input:read-only,
.custom-name-input:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    border-color: #e9ecef;
}

.custom-name-input:read-only:focus,
.custom-name-input:disabled:focus {
    border-color: #e9ecef;
    box-shadow: none;
}

.remove-btn {
    background: rgba(220, 53, 69, 0.08);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: 700;
}

.remove-btn:hover {
    background: rgba(220, 53, 69, 0.15);
    border-color: rgba(220, 53, 69, 0.35);
    transform: scale(1.1);
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .sitesai-container {
        padding: 20px 15px;
        min-height: calc(100vh - 81px);
    }

    .sitesai-content {
        max-width: 100%;
    }

    .sitesai-header h1 {
        font-size: 2.5rem;
    }

    .sitesai-header p {
        font-size: 1.1rem;
    }

    .sitesai-header {
        margin-bottom: 40px;
    }

    .sitesai-input-section {
        margin-bottom: 40px;
    }

    .address-input-container {
        max-width: 100%;
    }

    .google-autocomplete-input {
        font-size: 1.1rem;
        padding: 14px 18px;
    }

    .address-item {
        padding: 12px 15px;
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .address-actions {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }

    .custom-name-input {
        flex: 1;
        min-width: 0;
        width: auto;
    }

    .site-status-select {
        min-width: 90px;
        padding: 12px 10px;
    }

    .remove-btn {
        flex-shrink: 0;
    }

    .navbar {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .sitesai-header h1 {
        font-size: 2rem;
    }

    .sitesai-header p {
        font-size: 1rem;
    }

    .address-item {
        padding: 10px 12px;
    }

    .address-main {
        font-size: 1rem;
    }

    .custom-name-input {
        font-size: 0.9rem;
        padding: 10px 12px;
    }

    .google-autocomplete-input {
        font-size: 1rem;
        padding: 12px 16px;
    }

    .navbar {
        padding: 12px;
    }

    .nav-link,
    .nav-button {
        font-size: 14px;
        margin-left: 15px;
    }
}

/* Next Step Button Styles */
.next-step-container {
    margin-top: 30px;
    text-align: center;
    padding: 20px 0;
}

.next-step-btn {
    background: linear-gradient(135deg, #007aff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.next-step-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
}

.next-step-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 122, 255, 0.3);
}

.next-step-text {
    font-size: 1.1rem;
}

.next-step-arrow {
    font-size: 1.3rem;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.next-step-btn:hover .next-step-arrow {
    transform: translateX(4px);
}

/* Mobile responsiveness for next step button */
@media (max-width: 768px) {
    .next-step-container {
        margin-top: 25px;
        padding: 15px 0;
    }

    .next-step-btn {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .next-step-text {
        font-size: 1rem;
    }

    .next-step-arrow {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .next-step-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .next-step-text {
        font-size: 0.95rem;
    }
}

/* Step Container Styles */
.step-container {
    display: none;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.step-container.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.step-container.sliding-out-left {
    transform: translateX(-100%);
    opacity: 0;
}

.step-container.sliding-in-right {
    transform: translateX(0);
    opacity: 1;
}

.step-container.sliding-out-right {
    transform: translateX(100%);
    opacity: 0;
}

.step-container.sliding-in-left {
    transform: translateX(0);
    opacity: 1;
}

/* Step 6: Trade Area Selection Styles */
.step-6-content {
    padding: 30px;
}

.step-6-header {
    text-align: center;
    margin-bottom: 40px;
}

.step-6-header h2 {
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-weight: 600;
}

.step-6-header p {
    font-size: 16px;
    color: #666;
}

.trade-area-content {
    max-width: 900px;
    margin: 0 auto;
}

.sites-table-container {
    margin-bottom: 30px;
}

.sites-trade-area-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.sites-trade-area-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
}

.sites-trade-area-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    color: #666;
}

.sites-trade-area-table tr:last-child td {
    border-bottom: none;
}

.sites-trade-area-table tr:hover {
    background: #f8f9fa;
}

.trade-area-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.trade-area-select:hover {
    border-color: #007bff;
}

.trade-area-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.trade-area-select option:disabled {
    color: #999;
    font-style: italic;
}

.trade-area-info {
    background: #f0f8ff;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 30px;
}

.trade-area-info .info-text {
    color: #0066cc;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.trade-area-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
}

.trade-area-actions .secondary-btn,
.trade-area-actions .primary-btn {
    padding: 12px 24px;
    font-size: 16px;
}

/* Saved Sites Section */
.saved-sites-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 450px;
    overflow-y: auto;
}

.saved-sites-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.saved-sites-header h3 {
    font-size: 18px;
    color: #333;
    margin: 0;
}

.toggle-saved-sites {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    transition: transform 0.3s ease;
}

.toggle-saved-sites:hover {
    transform: scale(1.1);
}

.toggle-icon {
    font-size: 16px;
    color: #666;
    transition: transform 0.3s ease;
}

/* When expanded, keep down arrow (▼) pointing down */
.toggle-icon:not(.collapsed) {
    transform: rotate(0deg) !important;
}

/* When collapsed, rotate down arrow (▼) 90 degrees counter-clockwise to point left (◄) */
.toggle-icon.collapsed {
    transform: rotate(90deg) !important;
}

.saved-sites-content {
    overflow: hidden;
    transition: all 0.3s ease;
}

.saved-sites-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.saved-sites-table th,
.saved-sites-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.saved-sites-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.saved-sites-table th.sortable:hover {
    background: #e9ecef;
}

.saved-sites-table th[data-column="select"] {
    width: 50px;
    text-align: center;
}

.sort-icon {
    position: absolute;
    right: 12px;
    color: #999;
    font-size: 12px;
}

.sort-icon.asc::after {
    content: '↑';
}

.sort-icon.desc::after {
    content: '↓';
}

.saved-sites-table td {
    color: #666;
}

.saved-sites-table tr:hover {
    background: #f8f9fa;
}

.saved-sites-table input[type="checkbox"] {
    cursor: pointer;
}

.saved-sites-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.saved-sites-empty p {
    margin: 0;
    font-size: 14px;
}

/* Address source indicator */
.address-source {
    font-size: 12px;
    color: #007aff;
    font-style: italic;
    margin-top: 2px;
}

/* Saved Profiles Section */
.saved-profiles-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 450px;
    overflow-y: auto;
}

.saved-profiles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.saved-profiles-header h3 {
    font-size: 18px;
    color: #333;
    margin: 0;
}

.toggle-saved-profiles {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    transition: transform 0.3s ease;
}

.toggle-saved-profiles:hover {
    transform: scale(1.1);
}

.toggle-profiles-icon {
    font-size: 16px;
    color: #666;
    transition: transform 0.3s ease;
}

.toggle-profiles-icon.collapsed {
    transform: rotate(-90deg);
}

.saved-profiles-content {
    overflow: hidden;
    transition: all 0.3s ease;
}

.saved-profiles-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.saved-profiles-table th,
.saved-profiles-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.saved-profiles-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.saved-profiles-table th.sortable-profiles:hover {
    background: #e9ecef;
}

.sort-profiles-icon {
    position: absolute;
    right: 12px;
    color: #999;
    font-size: 12px;
}

.sort-profiles-icon.asc::after {
    content: '↑';
}

.sort-profiles-icon.desc::after {
    content: '↓';
}

.saved-profiles-table td {
    color: #666;
}

.saved-profiles-table tr:hover {
    background: #f8f9fa;
}

.use-profile-btn {
    background: #007aff;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.use-profile-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.saved-profiles-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.saved-profiles-empty p {
    margin: 0;
    font-size: 14px;
}

/* Step 2 Styles */
.step-2-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

.step-2-header {
    margin-bottom: 40px;
}

.step-2-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
}

.step-2-header p {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
}

.step-2-header #selected-count {
    font-weight: 600;
    color: #007aff;
}

.email-input-section {
    margin-bottom: 30px;
}

.email-input-container {
    margin-bottom: 30px;
}

.email-input-step2 {
    width: 100%;
    max-width: 400px;
    padding: 16px 20px;
    font-size: 1.1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.email-input-step2:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.email-input-step2::placeholder {
    color: #999;
    text-align: center;
}

.step-2-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.back-btn {
    background: #fff;
    color: #666;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    border-color: #007aff;
    color: #007aff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.2);
}

.back-arrow {
    font-size: 1.2rem;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.back-btn:hover .back-arrow {
    transform: translateX(-4px);
}

.submit-btn {
    background: linear-gradient(135deg, #007aff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 122, 255, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit-arrow {
    font-size: 1.2rem;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.submit-btn:hover .submit-arrow {
    transform: translateX(4px);
}

/* Mobile responsive for step 2 */
@media (max-width: 768px) {
    .step-2-content {
        padding: 30px 15px;
    }

    .step-2-header h2 {
        font-size: 2rem;
    }

    .step-2-header p {
        font-size: 1.1rem;
    }

    .email-input-step2 {
        font-size: 1rem;
        padding: 14px 18px;
    }

    .step-2-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .back-btn,
    .submit-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .step-2-header h2 {
        font-size: 1.8rem;
    }

    .step-2-header p {
        font-size: 1rem;
    }

    .email-input-step2 {
        font-size: 0.95rem;
        padding: 12px 16px;
    }

    .back-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .submit-btn {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

/* OTP Verification Styles */
.otp-verification-section {
    margin-top: 20px;
}

.otp-header {
    text-align: center;
    margin-bottom: 20px;
}

.otp-header p {
    color: #666;
    font-size: 16px;
}

.otp-input-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.otp-input {
    width: 200px;
    padding: 12px;
    font-size: 18px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    letter-spacing: 0.5em;
    font-family: monospace;
}

.otp-input:focus {
    outline: none;
    border-color: #007aff;
}

.otp-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Step 3 Business Description UI Styles */
.step-3-content {
    padding: 40px 20px;
    text-align: center;
}

.step-3-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #333;
}

.step-3-header p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.business-description-content {
    max-width: 600px;
    margin: 0 auto;
}

.business-description-form {
    margin-bottom: 30px;
}

.textarea-container {
    margin-bottom: 30px;
}

.business-description-textarea {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    line-height: 1.5;
}

.business-description-textarea:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.business-description-textarea::placeholder {
    color: #999;
}

.business-description-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.secondary-btn {
    padding: 12px 24px;
    font-size: 16px;
    border: 2px solid #007aff;
    background: white;
    color: #007aff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    background: #f0f7ff;
}

.primary-btn {
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    background: #007aff;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.primary-btn:hover {
    background: #0056b3;
}

.primary-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #ccc;
}

.submit-arrow {
    font-size: 1.2rem;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.primary-btn:hover .submit-arrow {
    transform: translateX(4px);
}

/* Loading Container */
.loading-container {
    text-align: center;
    padding: 40px 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007aff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Multi-phase loading overlay */
.multi-phase-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.multi-phase-container {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    min-width: 400px;
}

.phase-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #007aff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

.phase-spinner.complete {
    border: 5px solid #4CAF50;
    animation: none;
    position: relative;
}

.phase-spinner.complete svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: -2px;
    left: -2px;
}

.phase-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #333;
    font-weight: 600;
}

.phase-description {
    margin: 0;
    font-size: 16px;
    color: #666;
}

/* Progress bar container for batch processing */
.progress-container {
    margin-top: 20px;
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background-color: #007aff;
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    margin: 0;
    font-size: 14px;
    color: #666;
    text-align: center;
}

/* Global loading overlay (used by other loading states) */
.global-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.global-loading-container {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.global-spinner-wheel {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007aff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px auto;
}

.global-loading-message {
    margin: 0;
    font-size: 16px;
    color: #333;
}

/* Success message overlay */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.success-container {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 400px;
}

.success-checkmark {
    width: 60px;
    height: 60px;
    border: 4px solid #4CAF50;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    color: #4CAF50;
    background-color: #f8fff8;
}

.success-message {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #333;
    white-space: pre-line;
}

.success-close-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.success-close-button:hover {
    background-color: #45a049;
}

.loading-text {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Success Container */
.success-container {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 60px;
    color: #4CAF50;
    margin-bottom: 20px;
}

.success-text {
    font-size: 18px;
    color: #333;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .step-3-content {
        padding: 30px 15px;
    }

    .step-3-header h2 {
        font-size: 24px;
    }

    .step-3-header p {
        font-size: 16px;
    }

    .business-description-content {
        max-width: 100%;
    }

    .business-description-textarea {
        font-size: 16px;
        padding: 14px 16px;
    }

    .business-description-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .secondary-btn,
    .primary-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .step-3-header h2 {
        font-size: 20px;
    }

    .step-3-header p {
        font-size: 14px;
    }

    .business-description-textarea {
        font-size: 14px;
        padding: 12px 14px;
        min-height: 100px;
    }

    .secondary-btn,
    .primary-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Analysis Results Container */
.analysis-results-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.analysis-results-content {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.business-description-display {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007aff;
}

.description-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.business-description-display h3 {
    font-size: 18px;
    color: #333;
    margin: 0;
}

.edit-description-btn {
    background: #007aff;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-description-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.original-description {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

.description-edit-mode {
    margin-top: 10px;
}

.edit-description-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 15px;
}

.edit-description-textarea:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.edit-description-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.explanation-text {
    margin-bottom: 20px;
    padding: 15px;
    background: #f0f7ff;
    border-radius: 8px;
    border-left: 4px solid #007aff;
}

.explanation-text p {
    color: #444;
    line-height: 1.6;
    margin: 0;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.info-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 4px;
    color: #007aff;
    font-size: 14px;
    cursor: help;
    position: relative;
}

.info-icon:hover {
    color: #0056b3;
}

/* Native tooltip styling enhancement */
.info-icon[title] {
    cursor: help;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.income-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.income-range .form-select {
    flex: 1;
}

.range-separator {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.multiselect-container {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px;
    min-height: 44px;
    background: #fff;
}

.multiselect-item {
    display: inline-flex;
    align-items: center;
    background: #007aff;
    color: white;
    padding: 4px 8px;
    margin: 2px;
    border-radius: 4px;
    font-size: 12px;
    gap: 6px;
}

.multiselect-item.unselected {
    background: #f0f0f0;
    color: #666;
}

.multiselect-remove,
.multiselect-add {
    cursor: pointer;
    font-weight: bold;
    padding: 0 2px;
}

.multiselect-remove:hover {
    color: #ff4444;
}

.multiselect-add:hover {
    color: #4CAF50;
}

/* Consumer Spending Categories */
.consumer-categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.consumer-category-item {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 200px;
}

.consumer-category-item:hover {
    border-color: #007aff;
    background: #f0f7ff;
}

.consumer-category-item.active {
    border-color: #007aff;
    background: #f0f7ff;
}

.consumer-category-item.dimmed {
    opacity: 0.5;
    background: #f8f8f8;
    border-color: #ccc;
}

.consumer-category-item.dimmed:hover {
    background: #f0f0f0;
    border-color: #bbb;
}

.category-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.category-toggle {
    color: #666;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.category-toggle:hover {
    background: rgba(0, 122, 255, 0.1);
    color: #007aff;
}

.consumer-category-item.dimmed .category-toggle {
    color: #999;
}

.analysis-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .analysis-results-container {
        padding: 15px;
    }

    .analysis-results-content {
        padding: 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .income-range {
        flex-direction: column;
        gap: 10px;
    }

    .income-range .form-select {
        width: 100%;
    }

    .consumer-categories-list {
        flex-direction: column;
    }

    .consumer-category-item {
        min-width: unset;
        width: 100%;
    }

    .analysis-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .analysis-actions .secondary-btn,
    .analysis-actions .primary-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .analysis-results-content {
        padding: 15px;
    }

    .form-section h3 {
        font-size: 18px;
    }

    .form-input,
    .form-select {
        padding: 10px 12px;
        font-size: 14px;
    }

    .consumer-category-item {
        padding: 10px 14px;
    }

    .category-name {
        font-size: 13px;
    }
}

/* Step 4 & 5 Styles - Competition and Complimentary Businesses */
.step-4-content,
.step-5-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
}

.step-4-header,
.step-5-header {
    margin-bottom: 40px;
}

.step-4-header h2,
.step-5-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}

.step-4-header p,
.step-5-header p {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
}

.competition-content,
.compliments-content {
    text-align: left;
}

.description-display {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border-left: 4px solid #007aff;
}

.description-display h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.description-text {
    color: #555;
    line-height: 1.6;
    font-size: 16px;
    margin: 0;
}

.modification-section {
    margin-bottom: 30px;
}

.modification-section label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 12px;
    font-size: 16px;
}

.modification-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.modification-input:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.modification-input::placeholder {
    color: #999;
}

.update-btn {
    margin-top: 15px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.update-btn:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.description-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* Mobile Responsive for Steps 4 & 5 */
@media (max-width: 768px) {

    .step-4-content,
    .step-5-content {
        padding: 30px 15px;
    }

    .step-4-header h2,
    .step-5-header h2 {
        font-size: 2rem;
    }

    .step-4-header p,
    .step-5-header p {
        font-size: 1.1rem;
    }

    .description-display {
        padding: 20px;
    }

    .description-display h3 {
        font-size: 16px;
    }

    .description-text {
        font-size: 15px;
    }

    .modification-section label {
        font-size: 15px;
    }

    .modification-input {
        font-size: 15px;
        padding: 14px 18px;
    }

    .description-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .description-actions .secondary-btn,
    .description-actions .primary-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {

    .step-4-header h2,
    .step-5-header h2 {
        font-size: 1.8rem;
    }

    .step-4-header p,
    .step-5-header p {
        font-size: 1rem;
    }

    .description-display {
        padding: 15px;
    }

    .description-display h3 {
        font-size: 15px;
    }

    .description-text {
        font-size: 14px;
    }

    .modification-input {
        font-size: 14px;
        padding: 12px 16px;
    }

    .update-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}