@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700&display=swap');

.wantalk-dc-container {
    max-width: 650px;
    margin: 60px auto;
    padding: 50px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    font-family: 'Outfit', sans-serif;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.wantalk-dc-header h2 {
    margin: 0 0 12px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.wantalk-dc-header p {
    font-size: 17px;
    margin-bottom: 40px;
    opacity: 0.8;
}

.wantalk-dc-input-group {
    display: flex;
    gap: 12px;
    background: #f8fafc;
    padding: 10px;
    border-radius: 18px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wantalk-dc-input-group:focus-within {
    border-color: #007bff;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}

.wantalk-dc-container input[type="text"] {
    flex: 1;
    padding: 15px 10px;
    border: none;
    background: transparent;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    outline: none !important;
}

.wantalk-dc-container button {
    padding: 15px 35px;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.wantalk-dc-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.wantalk-dc-container button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.wantalk-dc-result {
    margin-top: 40px;
    padding: 25px;
    border-radius: 20px;
    display: none;
    position: relative;
    overflow: hidden;
}

.wantalk-dc-result::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    z-index: 0;
}

.wantalk-dc-result.available {
    background: #f0fdf4;
    border: 2px solid #bbf7d0;
    color: #166534;
    display: block;
}

.wantalk-dc-result.taken {
    background: #fff7ed;
    border: 2px solid #fed7aa;
    color: #9a3412;
    display: block;
}

.status-icon {
    font-size: 40px;
    margin-bottom: 15px;
    display: block;
}

.wantalk-dc-message {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.wantalk-dc-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.wantalk-dc-text {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    width: 100%;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.wantalk-dc-cta-wrapper {
    margin-top: 10px;
}

.wantalk-dc-cta {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: #166534;
    /* Fallback green */
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.available .wantalk-dc-cta {
    background: #166534;
    /* Darker green for contrast */
}

.wantalk-dc-cta:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.wantalk-dc-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
    /* Reduced since flex container separates them better */
    display: block;
    /* Flex item behaves better as block */
}

/* Spinner */
.wantalk-dc-spinner {
    display: none;
    margin: 30px auto 0;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.wantalk-dc-result {
    animation: fadeInScale 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Mobile Responsiveness - Fix Search button overflow */
@media (max-width: 580px) {
    .wantalk-dc-container {
        padding: 30px 15px;
        margin: 15px auto;
        border-radius: 20px;
        width: 95%;
        box-sizing: border-box;
    }

    .wantalk-dc-header h2 {
        font-size: 24px;
    }

    .wantalk-dc-input-group {
        flex-direction: column;
        padding: 0;
        background: transparent;
        border: none;
        gap: 12px;
        box-shadow: none;
    }

    .wantalk-dc-container input[type="text"] {
        padding: 18px;
        background: #f8fafc;
        border-radius: 16px;
        border: 2px solid #e2e8f0;
        width: 100%;
        box-sizing: border-box;
        font-size: 16px;
        text-align: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .wantalk-dc-container button {
        width: 100%;
        padding: 18px;
        font-size: 18px;
        border-radius: 16px;
        margin: 0;
    }

    .wantalk-dc-text {
        font-size: 18px;
    }

    .wantalk-dc-cta {
        width: 100%;
        box-sizing: border-box;
        padding: 18px;
    }
}