/* Modern Domain Search Section Styles */

/* Section Container */
.modern-domain-search-section {
    position: relative;
    padding: 80px 0;
    background: #f8f9fa;
    overflow: hidden;
    z-index: 1;
}

.domain-search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Background Decorations */
.domain-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.decoration-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.decoration-orb.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(102, 126, 234, 0.3);
    top: -100px;
    left: -100px;
    animation: floatOrb 15s infinite ease-in-out;
}

.decoration-orb.orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(118, 75, 162, 0.25);
    bottom: -50px;
    right: -50px;
    animation: floatOrb 12s infinite ease-in-out reverse;
}

.decoration-orb.orb-3 {
    width: 200px;
    height: 200px;
    background: rgba(67, 233, 123, 0.2);
    top: 40%;
    left: 60%;
    animation: floatOrb 10s infinite ease-in-out 2s;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }
}

/* Header */
.domain-search-header {
    text-align: center;
    margin-bottom: 50px;
}

.header-icon-wrapper {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    animation: pulseIcon 2s infinite;
}

@keyframes pulseIcon {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(102, 126, 234, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

.domain-search-title {
    font-size: 36px;
    font-weight: 800;
    color: #1a1f4d;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.domain-search-subtitle {
    font-size: 18px;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto 25px;
    line-height: 1.6;
}

.title-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.divider-dot {
    width: 6px;
    height: 6px;
    background: #667eea;
    border-radius: 50%;
}

.divider-line {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* Search Form */
.domain-search-form-wrapper {
    max-width: 800px;
    margin: 0 auto 60px;
    position: relative;
}

.modern-domain-form {
    position: relative;
    z-index: 5;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.search-input-group:focus-within {
    border-color: #667eea;
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.input-icon-wrapper {
    padding-left: 25px;
    color: #a0aec0;
    font-size: 20px;
}

.modern-domain-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 15px 20px;
    font-size: 18px;
    color: #2d3748;
    outline: none;
    font-weight: 500;
}

.modern-domain-input::placeholder {
    color: #cbd5e0;
}

.domain-length-indicator {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    margin-right: 15px;
    background: #edf2f7;
    color: #a0aec0;
    transition: all 0.3s ease;
}

.domain-length-indicator.short {
    color: #e53e3e;
    background: #fff5f5;
}

.domain-length-indicator.medium {
    color: #d69e2e;
    background: #fffff0;
}

.domain-length-indicator.long {
    color: #38a169;
    background: #f0fff4;
}

.modern-search-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 15px 35px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.modern-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(118, 75, 162, 0.3);
}

.modern-search-btn:active {
    transform: translateY(0);
}

.modern-search-btn.loading .btn-text {
    display: none;
}

.modern-search-btn.loading::after {
    content: "";
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.search-form-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    filter: blur(40px);
    opacity: 0.15;
    z-index: -1;
    border-radius: 50px;
}

/* Quick Tips */
.search-quick-tips {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.tip-label {
    font-size: 14px;
    color: #718096;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tip-label i {
    color: #ecc94b;
}

.tip-badges {
    .tld-price-card.is-popular {
        border: 2px solid #667eea;
        background: linear-gradient(to bottom, #fff, #f7fafc);
    }

    .tld-badge {
        position: absolute;
        top: 10px;
        right: 10px;
        background: #667eea;
        color: #fff;
        font-size: 10px;
        padding: 4px 8px;
        border-radius: 10px;
        font-weight: 700;
        text-transform: uppercase;
    }

    .tld-icon-wrapper {
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 15px;
    }

    .tld-logo {
        max-height: 40px;
        max-width: 80%;
    }

    .tld-text {
        font-size: 24px;
        font-weight: 800;
        color: #2d3748;
    }

    .tld-price-wrapper {
        margin-bottom: 20px;
    }

    .price-display {
        display: flex;
        align-items: center;
        justify-content: center;
        color: #2d3748;
        font-weight: 800;
        font-size: 22px;
    }

    .currency-symbol {
        font-size: 16px;
        margin-right: 2px;
        color: #718096;
    }

    .price-label {
        font-size: 12px;
        color: #a0aec0;
        display: block;
        margin-top: 2px;
    }

    .tld-quick-check {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #edf2f7;
        color: #4a5568;
        transition: all 0.3s;
        text-decoration: none;
    }

    .tld-price-card:hover .tld-quick-check {
        background: #667eea;
        color: #fff;
        transform: rotate(-45deg);
    }

    /* Bottom Info */
    .domain-bottom-info {
        text-align: center;
        margin-top: 50px;
    }

    .price-info-card {
        display: inline-block;
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(10px);
        padding: 15px 30px;
        border-radius: 50px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.5);
    }

    .price-from-label,
    .price-to-label {
        color: #718096;
        font-size: 14px;
        font-weight: 500;
    }

    .price-amount-display {
        color: #667eea;
        font-weight: 800;
        font-size: 20px;
        margin: 0 8px;
    }

    /* RESPONSIVE STYLES */
    @media (max-width: 768px) {
        .modern-domain-search-section {
            padding: 50px 0;
        }

        .domain-search-title {
            font-size: 28px;
        }

        .domain-search-subtitle {
            font-size: 15px;
            padding: 0 15px;
        }

        /* Stack the search form */
        .search-input-group {
            flex-direction: column;
            padding: 15px;
            border-radius: 20px;
        }

        .input-icon-wrapper {
            display: none;
            /* Hide icon on mobile to save space */
        }

        .modern-domain-input {
            width: 100%;
            text-align: center;
            padding: 10px 0;
            margin-bottom: 15px;
            border-bottom: 1px solid #edf2f7;
        }

        .domain-length-indicator {
            margin: 0 0 15px 0;
        }

        .modern-search-btn {
            width: 100%;
            justify-content: center;
            padding: 12px;
        }

        /* Adjust TLD Grid */
        .tld-cards-wrapper {
            grid-template-columns: repeat(2, 1fr);
            /* 2 columns on mobile */
            gap: 15px;
        }

        .tld-price-card {
            padding: 15px 10px;
        }

        .tld-text {
            font-size: 18px;
        }

        .price-display {
            font-size: 18px;
        }
    }

    @media (max-width: 480px) {
        .tld-cards-wrapper {
            grid-template-columns: 1fr;
            /* 1 column on very small screens */
        }

        .search-quick-tips {
            flex-direction: column;
        }

        .tip-badges {
            justify-content: center;
        }
    }